CVE-2022-2255 is a high-severity (CVSS 7.5) CWE-348 vulnerability in mod-wsgi. 2 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for mod-wsgi — see the affected versions and patch details below.
Incorrect header handling in mod-wsgi
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
mod-wsgiReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | mod-wsgi | all versions | 4.9.3pip install --upgrade 'mod-wsgi==4.9.3' |
Affected Products
debian linuxdebianmod wsgimodwsgiResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for mod-wsgi, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update mod-wsgi to 4.9.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-2255 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Enterprise Linux 8 | python39:3.9-8100020250430153343.d47b87a4 | RHSA-2025:4791 |
Frequently Asked Questions
Is CVE-2022-2255 in your dependencies?
Find it across PyPI, including transitive dependencies.