# CVE-2022-31081: libhttp-daemon-perl: HTTP::Daemon is a simple http server class written in perl

CVE-2022-31081 is fixed in 3 products on 1 platform, first by libhttp-daemon-perl 6.01-1ubuntu0.1, released June 27, 2022. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2022-31081
- Priority: Routine
- CVSS: 6.5 (Medium)
- EPSS: 0.0235
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 27, 2022

## 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-&gt;get_request()` one could inspect the returned `HTTP::Request` object. Querying the 'Content-Length' (`my $cl = $rqst-&gt;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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libhttp-daemon-perl Debian 12.15 (bookworm) | 6.14-1.1 | [DEBIAN-CVE-2022-31081](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31081.md) | Jun 27, 2022 |
| Linux | libhttp-daemon-perl Debian 13.5 (trixie) | 6.14-1.1 | [DEBIAN-CVE-2022-31081](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31081.md) | Jun 27, 2022 |
| Linux | libhttp-daemon-perl Debian 14 | 6.14-1.1 | [DEBIAN-CVE-2022-31081](https://patchblox.com/security/data/fix/linux/debian-cve-2022-31081.md) | Jun 27, 2022 |
| Linux | libhttp-daemon-perl Ubuntu 18.04.6 LTS (bionic) | 6.01-1ubuntu0.1 | [libhttp-daemon-perl 6.01-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libhttp-daemon-perl-6.01-1ubuntu0.1.md) | Jun 27, 2022 |
| Linux | libhttp-daemon-perl Ubuntu 20.04 LTS (focal) | 6.06-1ubuntu0.1 | [libhttp-daemon-perl 6.06-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libhttp-daemon-perl-6.06-1ubuntu0.1.md) | Jun 27, 2022 |
| Linux | libhttp-daemon-perl Ubuntu 22.04.1 LTS (jammy) | 6.13-1ubuntu0.1 | [libhttp-daemon-perl 6.13-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libhttp-daemon-perl-6.13-1ubuntu0.1.md) | Jun 27, 2022 |
| Linux | perl-HTTP-Daemon amzn 2023 | 6.16-1.amzn2023 | [ALAS2023-2023-247](https://patchblox.com/security/data/fix/linux/alas2023-2023-247.md) | Jul 5, 2023 |
| Linux | perl-HTTP-Daemon-tests amzn 2023 | 6.16-1.amzn2023 | [ALAS2023-2023-247](https://patchblox.com/security/data/fix/linux/alas2023-2023-247.md) | Jul 5, 2023 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
