CVEfocus › CVE database › CVE-2022-24775

CVE-2022-24775Improper Input Validation in guzzlehttp/psr7

CVSS 7.5 HighEPSS 2.3% (higher than 84% of CVEs)Published 2022-03-21Updated 2025-04-23Assigner: GitHub_M

guzzlehttp/psr7 is a PSR-7 HTTP message library. Versions prior to 1.8.4 and 2.1.1 are vulnerable to improper header parsing. An attacker could sneak in a new line character and pass untrusted values. The issue is patched in 1.8.4 and 2.1.1. There are currently no known workarounds.

CWE-20

What to do

Fixed builds are available from Debian, Packagist, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
1Fix pending
1Will not fix
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04php-guzzlehttp-psr7Not affected
vulnerable_code_not_present
Ubuntu 25.10php-guzzlehttp-psr7Not affected
vulnerable_code_not_present
Ubuntu 24.04php-guzzlehttp-psr7Not affected
vulnerable_code_not_present
Ubuntu 22.04php-guzzlehttp-psr7Fix pending1.8.3-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-24775
Ubuntu 20.04php-guzzlehttp-psr7Fixed1.4.2-0.1+deb10u2build0.20.04.1UBUNTU-CVE-2022-24775
Ubuntu 16.04php-guzzlehttp-psr7Will not fix
Version 1.4.2 requires refactoring of core functions to be fixed. Applying the patches to this version is likely to cause regressions.
UBUNTU-CVE-2022-24775
Debian 14php-guzzlehttp-psr7Fixed1.8.5-1DEBIAN-CVE-2022-24775
Debian 13php-guzzlehttp-psr7Fixed1.8.5-1DEBIAN-CVE-2022-24775
Debian 12php-guzzlehttp-psr7Fixed1.8.5-1DEBIAN-CVE-2022-24775
Packagist libraryguzzlehttp/psr7Fixed1.8.4GHSA-q7rv-6hp3-vh96

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.