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.
The description is about a completely different bug in an unrelated software. The HTTP-Deamon bug is reported to upstream at <https://github.com/libwww-perl/HTTP-Daemon/issues/56>.
I think CVE-2022-31081 <https://nvd.nist.gov/vuln/detail/CVE-2022-31081> is for HTTP-Deamon. CVE-2022-31082 <https://nvd.nist.gov/vuln/detail/CVE-2022-31082> is for the unrelated GLPI.
@amctagga Could you please rename this ticket to mention CVE-2022-31081 only? For issue with perl-HTTP-Daemon.
In reply to comment #3: > @amctagga Could you please rename this ticket to mention > CVE-2022-31081 only? For issue with perl-HTTP-Daemon. Made the edit, both were in the same initial report so this was filed together. Hope that helps!
Upstream commits supposedly fixing this vulnerability: e84475de51d6fd7b29354a997413472a99db70b2 Fix Content-Length ', '-separated string issues 8dc5269d59e2d5d9eb1647d82c449ccd880f7fd0 Include reason in response body content faebad54455c2c2919e234202362570925fb99d1 Add new test for Content-Length issues ef8c1265c9558e92bac3178a0ed42eb937d943c6 Remove 'trailing spaces' to satisfy some authors c10445d014584546f99f85d240000b4a140ec37a (HEAD -> master, origin/master, origin/HEAD) Add CVE-2022-31081 fix to the Revision History
https://ubuntu.com/security/notices/USN-5520-1 The issue is fixed upstream in 6.15: https://github.com/libwww-perl/HTTP-Daemon/security/advisories/GHSA-cg8c-pxmv-w7cf
Created perl-HTTP-Daemon tracking bugs for this issue: Affects: fedora-all [bug 2119270]
Upstream has not released a new version of distribution with fixes, because there are some failing tests related to the issue.
Fix was delivered by upstream version of HTTP::Daemon 6.15