CVE-2023-29197Improper header name validation in guzzlehttp/psr7
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | php-guzzlehttp-psr7 | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | php-nyholm-psr7 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | php-guzzlehttp-psr7 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | php-nyholm-psr7 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | php-guzzlehttp-psr7 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | php-nyholm-psr7 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | php-guzzlehttp-psr7 | Fix pending | 1.8.3-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-29197 |
| Ubuntu 22.04 | php-nyholm-psr7 | Fix pending | 1.5.0-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-29197 |
| Ubuntu 20.04 | php-guzzlehttp-psr7 | Fixed | 1.4.2-0.1+deb10u2build0.20.04.1 | UBUNTU-CVE-2023-29197 |
| Ubuntu 20.04 | php-nyholm-psr7 | Will 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.04 | php-guzzlehttp-psr7 | Will 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 14 | php-guzzlehttp-psr7 | Fixed | 2.4.5-1 | DEBIAN-CVE-2023-29197 |
| Debian 14 | php-nyholm-psr7 | Fixed | 1.5.1-2 | DEBIAN-CVE-2023-29197 |
| Debian 13 | php-guzzlehttp-psr7 | Fixed | 2.4.5-1 | DEBIAN-CVE-2023-29197 |
| Debian 13 | php-nyholm-psr7 | Fixed | 1.5.1-2 | DEBIAN-CVE-2023-29197 |
| Debian 12 | php-guzzlehttp-psr7 | Fixed | 2.4.5-1 | DEBIAN-CVE-2023-29197 |
| Debian 12 | php-nyholm-psr7 | Fixed | 1.5.1-2 | DEBIAN-CVE-2023-29197 |
| Packagist library | guzzlehttp/psr7 | Fixed | 2.4.5 | GHSA-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.
- guzzle psr7: affected: < 1.9.1, >= 2.0.0, < 2.4.5
References
- https://github.com/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvw
- https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=2022-24775
- https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O35UN4IK6VS2LXSRWUDFWY7NI73RKY2U/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FJANWDXJZE5BGLN4MQ4FEHV5LJ6CMKQF/
- https://lists.debian.org/debian-lts-announce/2023/12/msg00028.html
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.