Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling') in HTTP::Daemon
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| libwww-perl | HTTP-Daemon | before 6.15 | 6.15 | Patch available | CNA |
- HTTP-Daemon Vendorlibwww-perl Affected before 6.15 Fixed in 6.15 Patch available CNA
Remediation
- Fix · CNA HTTP-Daemon (libwww-perl) Fixed in 6.15
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Software Collections | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2022-31081
References
Patch 3
Advisory 7
- https://cwe.mitre.org/data/definitions/444.html
- https://datatracker.ietf.org/doc/html/rfc7230#section-9.5
- http://metacpan.org/release/HTTP-Daemon/
- [debian-lts-announce] 20220930 [SECURITY] [DLA 3127-1] libhttp-daemon-perl security update
- FEDORA-2023-c230cc08c4
- FEDORA-2023-424636c7cb
- FEDORA-2023-748e811334
Sources
- CVE-2022-31081 · CVE Program
- CVE-2022-31081 · NVD
- FIRST EPSS
- CVE-2022-31081 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences