CVEfocus › CVE database › CVE-2023-29197

CVE-2023-29197Improper header name validation in guzzlehttp/psr7

CVSS 5.3 MediumEPSS 1.3% (higher than 71% of CVEs)Published 2023-04-17Updated 2025-02-13Assigner: GitHub_M

guzzlehttp/psr7 is a PSR-7 HTTP message library implementation in PHP. Affected versions are subject to improper header parsing. An attacker could sneak in a newline (\n) into both the header names and values. While the specification states that \r\n\r\n is used to terminate the header list, many servers in the wild will also accept \n\n. This is a follow-up to CVE-2022-24775 where the fix was incomplete. The issue has been patched in versions 1.9.1 and 2.4.5. There are no known workarounds for this vulnerability. Users are advised to upgrade.

CWE-436

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

8Fixed
2Fix pending
2Will not fix
6Not 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 26.04php-nyholm-psr7Not affected
vulnerable_code_not_present
Ubuntu 25.10php-guzzlehttp-psr7Not affected
vulnerable_code_not_present
Ubuntu 25.10php-nyholm-psr7Not affected
vulnerable_code_not_present
Ubuntu 24.04php-guzzlehttp-psr7Not affected
vulnerable_code_not_present
Ubuntu 24.04php-nyholm-psr7Not affected
vulnerable_code_not_present
Ubuntu 22.04php-guzzlehttp-psr7Fix pending1.8.3-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-29197
Ubuntu 22.04php-nyholm-psr7Fix pending1.5.0-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-29197
Ubuntu 20.04php-guzzlehttp-psr7Fixed1.4.2-0.1+deb10u2build0.20.04.1UBUNTU-CVE-2023-29197
Ubuntu 20.04php-nyholm-psr7Will not fix
php-guzzlehttp-psr7 Version 1.4.2 requires refactoring of core functions to be fixed. Same story for php-nyholm-psr7 version 1.2.1. Applying the patches to…
UBUNTU-CVE-2023-29197
Ubuntu 16.04php-guzzlehttp-psr7Will not fix
php-guzzlehttp-psr7 Version 1.4.2 requires refactoring of core functions to be fixed. Same story for php-nyholm-psr7 version 1.2.1. Applying the patches to…
UBUNTU-CVE-2023-29197
Debian 14php-guzzlehttp-psr7Fixed2.4.5-1DEBIAN-CVE-2023-29197
Debian 14php-nyholm-psr7Fixed1.5.1-2DEBIAN-CVE-2023-29197
Debian 13php-guzzlehttp-psr7Fixed2.4.5-1DEBIAN-CVE-2023-29197
Debian 13php-nyholm-psr7Fixed1.5.1-2DEBIAN-CVE-2023-29197
Debian 12php-guzzlehttp-psr7Fixed2.4.5-1DEBIAN-CVE-2023-29197
Debian 12php-nyholm-psr7Fixed1.5.1-2DEBIAN-CVE-2023-29197
Packagist libraryguzzlehttp/psr7Fixed2.4.5GHSA-wxmh-65f7-jcvw

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.