CVE-2022-2255 json
Incorrect header handling in mod-wsgi
published 2022-08-25 4 y ago modified 2026-09-08 2 mo ago also BIT-mod_wsgi-2022-2255 , EUVD-2022-0159 , GHSA-7527-8855-9cf8 , PYSEC-2022-254
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 61%
- public exploits
- 0
- none known
Summary
A vulnerability was found in mod_wsgi. The X-Client-IP header is not removed from a request from an untrusted proxy, allowing an attacker to pass the X-Client-IP header to the target WSGI application because the condition to remove it is missing.
Patch / fix
- pypi mod-wsgi 4.9.3
- bitnami mod_wsgi 4.9.3
- modwsgi mod_wsgi 4.9.3
- mod-wsgi Debian 14, Debian 13, Debian 12 4.9.0-1.1
debian advisories DEBIAN-CVE-2022-2255
- mod-wsgi Ubuntu 18.04 LTS 4.5.17-1ubuntu1.1
- mod-wsgi Ubuntu 20.04 LTS 4.6.8-1ubuntu3.1
- mod-wsgi Ubuntu 22.04 LTS 4.9.0-1ubuntu0.1
ubuntu advisories UBUNTU-CVE-2022-2255
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- numpy RHEL 8 1.19.4-3.module+el8.9.0+19644+d68f775d
- scipy RHEL 8 1.5.4-5.module+el8.9.0+19644+d68f775d
- PyYAML RHEL 8 5.4.1-1.module+el8.9.0+19644+d68f775d
- mod_wsgi RHEL 8 4.7.1-7.module+el8.10.0+23075+0aa18782.1
- python39 RHEL 8 3.9.20-1.module+el8.10.0+22342+478c159e
- python-ply RHEL 8 3.11-10.module+el8.9.0+19644+d68f775d
- python-cffi RHEL 8 1.14.3-2.module+el8.9.0+19644+d68f775d
- python-idna RHEL 8 2.10-4.module+el8.10.0+21815+bb024982
red hat advisories RHSA-2025:4791
- apache2-mod_wsgi SLE Module for Public Cloud 15 SP3, SLE Module for Public Cloud 15 SP2, SLE Module for Public Cloud 15 SP1 +1 more 4.5.18-150000.4.6.1
- apache2-mod_wsgi-python3 SLE Module for Server Applications 15 SP4, SLE Module for Server Applications 15 SP3, openSUSE Leap 15.4 +4 more 4.5.18-150000.4.6.1
- apache2-mod_wsgi SLE Module for Web and Scripting 12, SLE Module for Public Cloud 12, OpenStack Cloud Crowbar 8 +2 more 4.4.13-3.3.1
- apache2-mod_wsgi SLE Module for Public Cloud 15 SP4, openSUSE Leap 15.4 4.7.1-150400.3.3.1
suse advisories SUSE-SU-2022:4488-1SUSE-SU-2022:4013-1SUSE-SU-2022:4010-1
- apache2-mod_wsgi openSUSE Tumbleweed 4.9.4-1.1
opensuse advisories openSUSE-SU-2024:12535-1
- python39 AlmaLinux 8 3.9.20-1.module_el8.10.0+3902+1690be06
- python39-pip AlmaLinux 8 20.2.4-9.module_el8.10.0+3765+2f9a457d
- python39-ply AlmaLinux 8 3.11-10.module_el8.6.0+2780+a40f65e1
- python39-six AlmaLinux 8 1.15.0-3.module_el8.6.0+2780+a40f65e1
- python39-cffi AlmaLinux 8 1.14.3-2.module_el8.6.0+2780+a40f65e1
- python39-cffi AlmaLinux 8 1.14.3-2.module_el8.6.0+3248+c431e88c
- python39-idle AlmaLinux 8 3.9.20-1.module_el8.10.0+3902+1690be06
- python39-idna AlmaLinux 8 2.10-4.module_el8.10.0+3849+a48d89aa
almalinux advisories ALSA-2025:4791
- numpy Rocky Linux 8 1.19.4-3.module+el8.10.0+1582+bc278001
- numpy Rocky Linux 8 1.19.4-3.module+el8.10.0+1860+afcc1c71
- scipy Rocky Linux 8 1.5.4-5.module+el8.10.0+1582+bc278001
- scipy Rocky Linux 8 1.5.4-5.module+el8.10.0+1860+afcc1c71
- PyYAML Rocky Linux 8 5.4.1-1.module+el8.10.0+1582+bc278001
- PyYAML Rocky Linux 8 5.4.1-1.module+el8.10.0+1860+afcc1c71
- PyYAML Rocky Linux 8 5.4.1-1.module+el8.9.0+1418+f0d66789
- mod_wsgi Rocky Linux 8 4.7.1-7.module+el8.10.0+1582+bc278001
rocky linux advisories RLSA-2025:4791
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-2255 updated cvss 7.3
mod_wsgi: Trusted Proxy Headers Removing Bypass
-
Red Hat Enterprise Linux 8 mod_wsgi, python38-mod_wsgi, python39-mod_wsgi Red Hat Enterprise Linux 9 python3-mod_wsgiaffected: no fix planned “Will not fix”
-
Red Hat Software Collections python27-mod_wsgi, rh-python38-python-mod_wsgiaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux AppStream (v. 8) scipy 1.5.4-5.module+el8.9.0+19644+d68f775d, numpy 1.19.4-3.module+el8.9.0+19644+d68f775d, PyYAML 5.4.1-1.module+el8.9.0+19644+d68f775d, python-ply 3.11-10.module+el8.9.0+19644+d68f775d, python39 3.9.20-1.module+el8.10.0+22342+478c159e, mod_wsgi 4.7.1-7.module+el8.10.0+23075+0aa18782.1, +49 morefixed: vendor fix RHSA-2025:4791
-
Red Hat Enterprise Linux 6 mod_wsgi Red Hat Enterprise Linux 7 mod_wsginot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.94% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/GrahamDumpleton/mod_wsgi/blob/4.9.2/src/server/mod_wsgi.c#L13940-L13941 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/GrahamDumpleton/mod_wsgi/blob/4.9.2/src/server/mod_wsgi.c#L14046-L14082 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | mod-wsgi | <4.9.3 |
4.9.3 |
| bitnami | mod_wsgi | <4.9.3 |
4.9.3 |
Affected products
- n/a mod_wsgi
Classification
References
-
github.com
/GrahamDumpleton/mod_wsgi/commit/af3c0c2736bc0b0b01fa0f0aad3c904b7fa9c751
web
-
github.com
/GrahamDumpleton/mod_wsgi/blob/4.9.2/src/server/mod_wsgi.c#L13940-L13941
web, exploit, third-party-advisory, advisory
-
github.com
/GrahamDumpleton/mod_wsgi/blob/4.9.2/src/server/mod_wsgi.c#L14046-L14082
web, exploit, third-party-advisory, advisory
-
modwsgi.readthedocs.io
/en/latest/release-notes/version-4.9.3.html
web, release-notes, third-party-advisory, advisory
-
lists.debian.org
/debian-lts-announce/2022/09/msg00021.html
mailing-list, web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-2255
advisory, web
-
github.com
/GrahamDumpleton/mod_wsgi
package
-
github.com
/pypa/advisory-database/tree/main/vulns/mod-wsgi/PYSEC-2022-254.yaml
web
-
github.com
/advisories/GHSA-7527-8855-9cf8
advisory
Sources
- CVE List CVE-2022-2255
- GitHub Advisory GHSA-7527-8855-9cf8
- NVD CVE-2022-2255
- OSV BIT-mod_wsgi-2022-2255
- OSV PYSEC-2022-254
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.