CVE-2026-30923: Modsecurity Libinjection Error Mishandling

Treating the return value of `libinjection` functions as a simple boolean (or comparing with 0) fails to properly handle libinjection v4 parser errors. Negative error codes evaluate to true, falsely indicating an attack and potentially causing out-of-bounds reads on uninitialized fingerprint arrays. Use `injection_result_t` and check against explicitly defin

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C
greprules fetch cve-2026-30923-modsecurity-libinjection-error-mishandling --engine opengrep

Description

Treating the return value of `libinjection` functions as a simple boolean (or comparing with 0) fails to properly handle libinjection v4 parser errors. Negative error codes evaluate to true, falsely indicating an attack and potentially causing out-of-bounds reads on uninitialized fingerprint arrays. Use `injection_result_t` and check against explicitly defin