CVE-2022-31081 Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling') in HTTP::Daemon
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- NginxUbuntuDebian
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.
Upgrade path
11 packages: 9 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libhttp-daemon-perl(Debian 12) | < 6.14-1.1 | 6.14-1.1 | Fixed |
| debian/libhttp-daemon-perl(Debian 13) | < 6.14-1.1 | 6.14-1.1 | Fixed |
| debian/libhttp-daemon-perl(Debian 14) | < 6.14-1.1 | 6.14-1.1 | Fixed |
| httpdaemon project httpdaemon | < 6.15 | 6.15 | Fixed |
| ubuntu/libhttp-daemon-perl(Ubuntu 18.04) | < 6.01-1ubuntu0.1; = 6.01-1 | 6.01-1ubuntu0.1 | Fixed |
| ubuntu/libhttp-daemon-perl(Ubuntu 20.04) | < 6.06-1ubuntu0.1; = 6.04-1; = 6.06-1 | 6.06-1ubuntu0.1 | Fixed |
| ubuntu/libhttp-daemon-perl(Ubuntu 22.04) | < 6.13-1ubuntu0.1; = 6.12-1; = 6.13-1 | 6.13-1ubuntu0.1 | Fixed |
| ubuntu/libhttp-daemon-perl(Ubuntu Pro 14.04) | < 6.01-1ubuntu0.14.04~esm1; = 6.01-1 | 6.01-1ubuntu0.14.04~esm1 | Fixed |
| ubuntu/libhttp-daemon-perl(Ubuntu Pro 16.04) | < 6.01-1ubuntu0.16.04~esm1; = 6.01-1 | 6.01-1ubuntu0.16.04~esm1 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
| libwww-perl HTTP-Daemon | = < 6.15 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| libwww-perl HTTP-Daemon | = < 6.15 | No fix listed |
| ubuntu/libhttp-daemon-perl(Ubuntu:22.04) | < 6.13-1ubuntu0.1 | 6.13-1ubuntu0.1 |
| httpdaemon project httpdaemon | < 6.15 | 6.15 |
| debian linux | = 10.0 | No fix listed |
| debian/libhttp-daemon-perl(Debian:12) | < 6.14-1.1 | 6.14-1.1 |
| debian/libhttp-daemon-perl(Debian:14) | < 6.14-1.1 | 6.14-1.1 |
| debian/libhttp-daemon-perl(Debian:13) | < 6.14-1.1 | 6.14-1.1 |
| ubuntu/libhttp-daemon-perl(Ubuntu:Pro:14.04) | < 6.01-1ubuntu0.14.04~esm1 | 6.01-1ubuntu0.14.04~esm1 |
| ubuntu/libhttp-daemon-perl(Ubuntu:Pro:14.04) | = 6.01-1 | No fix listed |
| ubuntu/libhttp-daemon-perl(Ubuntu:Pro:16.04) | < 6.01-1ubuntu0.16.04~esm1 | 6.01-1ubuntu0.16.04~esm1 |
| ubuntu/libhttp-daemon-perl(Ubuntu:Pro:16.04) | = 6.01-1 | No fix listed |
| ubuntu/libhttp-daemon-perl(Ubuntu:18.04) | < 6.01-1ubuntu0.1 | 6.01-1ubuntu0.1 |
| ubuntu/libhttp-daemon-perl(Ubuntu:18.04) | = 6.01-1 | No fix listed |
| ubuntu/libhttp-daemon-perl(Ubuntu:20.04) | < 6.06-1ubuntu0.1 | 6.06-1ubuntu0.1 |
| ubuntu/libhttp-daemon-perl(Ubuntu:20.04) | = 6.04-1 | No fix listed |
| ubuntu/libhttp-daemon-perl(Ubuntu:20.04) | = 6.06-1 | No fix listed |
| ubuntu/libhttp-daemon-perl(Ubuntu:22.04) | = 6.12-1 | No fix listed |
| ubuntu/libhttp-daemon-perl(Ubuntu:22.04) | = 6.13-1 | No fix listed |
References
- Debian Security Tracker CVE-2022-31081 vendor-advisory
- portswigger.net exploit issue-tracking third-party-advisory
- github.com issue-tracking patch third-party-advisory
- github.com patch third-party-advisory
- github.com patch third-party-advisory
- cwe.mitre.org issue-tracking third-party-advisory
- datatracker.ietf.org issue-tracking third-party-advisory
- metacpan.org issue-tracking release-notes vendor-advisory
- [debian-lts-announce] 20220930 [SECURITY] [DLA 3127-1] libhttp-daemon-perl security update mailing-list third-party-advisory
- FEDORA-2023-c230cc08c4 vendor-advisory
- FEDORA-2023-424636c7cb vendor-advisory
- FEDORA-2023-748e811334 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-5520-1 vendor-advisory
- USN-5520-2 vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking