Skip to content

CVE-2022-31081 Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling') in HTTP::Daemon

MediumCVSS 6.5 EPSS 2.4%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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