Skip to content
Fencer Intel
high 7.5

CVE-2022-2255 json

Incorrect header handling in mod-wsgi

published 4y ago modified 2mo 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

  • mod_wsgi CBL-Mariner 2.0 4.9.3-2

azure linux advisories AZL-10734

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Is CVE-2022-2255 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

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_wsgi
    affected: no fix planned “Will not fix”
  • Red Hat Software Collections python27-mod_wsgi, rh-python38-python-mod_wsgi
    affected: 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 more
    fixed: vendor fix RHSA-2025:4791
  • Red Hat Enterprise Linux 6 mod_wsgi Red Hat Enterprise Linux 7 mod_wsgi
    not 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-09).

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

Weakness
  • CWE-348 Use of Less Trusted Source
  • CWE-345 Insufficient Verification of Data Authenticity

References

Sources

Fencer Intel 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.