openEuler Security Advisory
OESA-2022-1827
mod_wsgi security update
Details
The mod_wsgi adapter is an Apache module that provides a WSGI compliant interface for hosting Python based web applications within Apache. The adapter is written completely in C code against the Apache C runtime andfor hosting WSGI applications within Apache has a lower overhead than using existing WSGI adapters for mod_python or CGI.
Security Fix(es):
A vulnerability was found in mod_wsgi. The X-Client-IP header is not removed from a request from an untrusted proxy (trusted proxies are configured via the WSGITrustedProxies directive) allowing an attacker to pass the X-Client-IP header to the target WSGI application because the condition to remove it is missing.
References: https://github.com/GrahamDumpleton/mod_wsgi/blob/4.9.2/src/server/mod_wsgi.c#L13940-L13941 https://github.com/GrahamDumpleton/mod_wsgi/blob/4.9.2/src/server/mod_wsgi.c#L14046-L14082(CVE-2022-2255)
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| openEuler:20.03-LTS-SP1 | mod_wsgi | All versions before 4.6.4-3.oe1 (fixed in 4.6.4-3.oe1) |
| openEuler:20.03-LTS-SP3 | mod_wsgi | All versions before 4.6.4-3.oe1 (fixed in 4.6.4-3.oe1) |
| openEuler:22.03-LTS | mod_wsgi | All versions before 4.6.4-3.oe2203 (fixed in 4.6.4-3.oe2203) |