CVE-2023-24021

NameCVE-2023-24021
DescriptionIncorrect handling of '\0' bytes in file uploads in ModSecurity before 2.9.7 may allow for Web Application Firewall bypasses and buffer over-reads on the Web Application Firewall when executing rules that read the FILES_TMP_CONTENT collection.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3283-1, ELA-779-1
Debian Bugs1029329

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
modsecurity-apache (PTS)jessie, jessie (lts)2.8.0-3+deb8u2fixed
stretch (security)2.9.1-2+deb9u1vulnerable
stretch (lts), stretch2.9.1-2+deb9u2fixed
buster (security), buster, buster (lts)2.9.3-1+deb10u2fixed
bullseye2.9.3-3+deb11u2fixed
bullseye (security)2.9.3-3+deb11u1vulnerable
bookworm2.9.7-1fixed
sid, trixie2.9.8-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
modsecurity-apachesourcejessie(not affected)
modsecurity-apachesourcestretch2.9.1-2+deb9u2ELA-779-1
modsecurity-apachesourcebuster2.9.3-1+deb10u2DLA-3283-1
modsecurity-apachesourcebullseye2.9.3-3+deb11u2
modsecurity-apachesource(unstable)2.9.7-11029329

Notes

https://github.com/SpiderLabs/ModSecurity/pull/2857
https://github.com/SpiderLabs/ModSecurity/commit/4324f0ac59f8225aa44bc5034df60dbeccd1d334 (v2.9.7)
[jessie] - modsecurity-apache <not-affected> (Vulnerable code introduced later)

Search for package or bug name: Reporting problems