CVE-2022-39957Response body bypass in OWASP ModSecurity Core Rule Set via a specialy crafted charset…
The OWASP ModSecurity Core Rule Set (CRS) is affected by a response body bypass. A client can issue an HTTP Accept header field containing an optional "charset" parameter in order to receive the response in an encoded form. Depending on the "charset", this response can not be decoded by the web application firewall. A restricted resource, access to which would ordinarily be detected, may therefore bypass detection. The legacy CRS versions 3.0.x and 3.1.x are affected, as well as the currently supported versions 3.2.1 and 3.3.2. Integrators and users are advised to upgrade to 3.2.2 and 3.3.3 respectively.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | modsecurity-crs | Fix pending | UBUNTU-CVE-2022-39957 | |
| Ubuntu 26.04 | modsecurity-crs | Under investigation | UBUNTU-CVE-2022-39957 | |
| Ubuntu 25.10 | modsecurity-crs | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-39957 | |
| Ubuntu 24.04 | modsecurity-crs | Under investigation | UBUNTU-CVE-2022-39957 | |
| Ubuntu 22.04 | modsecurity-crs | Under investigation | UBUNTU-CVE-2022-39957 | |
| Ubuntu 20.04 | modsecurity-crs | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-39957 | |
| Ubuntu 18.04 | modsecurity-crs | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-39957 | |
| Ubuntu 16.04 | modsecurity-crs | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-39957 | |
| Ubuntu 14.04 | modsecurity-crs | Will not fix Ubuntu decided not to fix this in this release | ||
| Debian 14 | modsecurity-crs | Fixed | 3.3.4-1 | DEBIAN-CVE-2022-39957 |
| Debian 13 | modsecurity-crs | Fixed | 3.3.4-1 | DEBIAN-CVE-2022-39957 |
| Debian 12 | modsecurity-crs | Fixed | 3.3.4-1 | DEBIAN-CVE-2022-39957 |
| Red Hat Enterprise Linux 9 | mod_security_crs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | mod_security_crs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | mod_security_crs | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by NCSC.ch, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OWASP ModSecurity Core Rule Set: affected: 3.0.x, 3.1.x, unspecified to 3.2.1, unspecified to 3.3.2
Solution: upgrade to 3.2.2 or 3.3.3
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202305-25 (vendor-advisory)
References
- https://coreruleset.org/20220919/crs-version-3-3-3-and-3-2-2-covering-several-cves/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PD56EAYNGB6E6QQH62LAYCONOP6OH5DZ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YPQ6CCMX3MU4A7MTCGQJA7VMJW3IQDXV/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HL2L2GF7GOCWPMJZDUE5OXDSXHGG3XUJ/
- https://lists.debian.org/debian-lts-announce/2023/01/msg00033.html
- https://security.gentoo.org/glsa/202305-25
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.