CVE-2022-31081 Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling') in HTTP::Daemon
HTTP request smuggling in HTTP::Daemon allows attackers to poison caches or access privileged APIs, primarily affecting local development environments.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-31081?
CVE-2022-31081 is a high-severity vulnerability in Debian Debian Linux, published on 27 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
HTTP::Daemon is a simple http server class written in perl. Versions prior to 6.15 are subject to a vulnerability which could potentially be exploited to gain privileged access to APIs or poison intermediate caches. It is uncertain how large the risks are, most Perl based applications are served on top of Nginx or Apache, not on the `HTTP::Daemon`. This library is commonly used for local development and tests. Users are advised to update to resolve this issue. Users unable to upgrade may add additional request handling logic as a mitigation. After calling `my $rqst = $conn->get_request()` one could inspect the returned `HTTP::Request` object. Querying the 'Content-Length' (`my $cl = $rqst->header('Content-Length')`) will show any abnormalities that should be dealt with by a `400` response. Expected strings of 'Content-Length' SHOULD consist of either a single non-negative integer, or, a comma separated repetition of that number. (that is `42` or `42, 42, 42`). Anything else MUST be rejected.
Weakness: CWE-444
Which versions are affected by CVE-2022-31081?
It affects 2 products.
Linux distribution packages (7)
perl-HTTP-Daemon SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 6.01-150000.3.5.1 |
perl-HTTP-Daemon SUSE:Linux Enterprise Module for Basesystem 15 SP4 | All versions | 6.01-150000.3.5.1 |
perl-HTTP-Daemon SUSE:Linux Enterprise Server 12 SP5 | All versions | 6.01-9.5.1 |
perl-HTTP-Daemon SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 6.01-9.5.1 |
perl-HTTP-Daemon openSUSE:Leap 15.3 | All versions | 6.01-150000.3.5.1 |
perl-HTTP-Daemon openSUSE:Leap 15.4 | All versions | 6.01-150000.3.5.1 |
perl-HTTP-Daemon openSUSE:Tumbleweed | All versions | 6.14-2.1 |
Products include Debian Debian Linux, Http\ \.
How do I fix CVE-2022-31081?
Upgrade to a fixed version.
Is CVE-2022-31081 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-31081 exists.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BELL-CVE-2022-31081, DEBIAN-CVE-2022-31081, DLA-3127-1, GHSA-cg8c-pxmv-w7cf, MGASA-2022-0349, SUSE-SU-2022:2872-1 and 5 more.