{"id":"UBUNTU-CVE-2023-24021","details":"Incorrect 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.","modified":"2026-02-04T04:29:22.496001Z","published":"2023-01-20T19:15:00Z","related":["USN-6370-1"],"upstream":["CVE-2023-24021"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-24021"},{"type":"REPORT","url":"https://github.com/SpiderLabs/ModSecurity/pull/2857"},{"type":"REPORT","url":"https://github.com/SpiderLabs/ModSecurity/commit/4324f0ac59f8225aa44bc5034df60dbeccd1d334"},{"type":"REPORT","url":"https://github.com/SpiderLabs/ModSecurity/pull/2857/commits/4324f0ac59f8225aa44bc5034df60dbeccd1d334"},{"type":"REPORT","url":"https://github.com/SpiderLabs/ModSecurity/releases/tag/v2.9.7"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6370-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-24021"}],"affected":[{"package":{"name":"modsecurity-apache","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/modsecurity-apache@2.9.0-1ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.0-1ubuntu0.1~esm1"}]}],"versions":["2.9.0-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"libapache2-mod-security2","binary_version":"2.9.0-1ubuntu0.1~esm1"},{"binary_name":"libapache2-modsecurity","binary_version":"2.9.0-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-24021.json"}},{"package":{"name":"modsecurity-apache","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/modsecurity-apache@2.9.2-1ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.2-1ubuntu0.1~esm1"}]}],"versions":["2.9.1-3","2.9.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libapache2-mod-security2","binary_version":"2.9.2-1ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-24021.json"}},{"package":{"name":"modsecurity-apache","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/modsecurity-apache@2.9.3-1ubuntu0.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.3-1ubuntu0.1"}]}],"versions":["2.9.3-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libapache2-mod-security2","binary_version":"2.9.3-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-24021.json"}},{"package":{"name":"modsecurity-apache","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/modsecurity-apache@2.9.5-1ubuntu0.1~esm1?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.5-1ubuntu0.1~esm1"}]}],"versions":["2.9.3-3","2.9.5-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"libapache2-mod-security2","binary_version":"2.9.5-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-24021.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}