CVE-2023-29197
published medium CVSS 3.1 · 5.3Improper header name validation in guzzlehttp/psr7
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| guzzle | — | psr7< 1.9.1 · >= 2.0.0, < 2.4.5 | Affected | Not stated | GitHub_M |
| Debian | buster | php-guzzlehttp-psr7 | Advisory build | 1.4.2-0.1+deb10u2 | DLA-3705-1 |
| Ubuntu | focal | php-guzzlehttp-psr7 | Advisory build | 1.4.2-0.1+deb10u2build0.20.04.1 | USN-6670-1 |
| Ubuntu | jammy | php-guzzlehttp-psr7 | Advisory build | 1.8.3-1ubuntu0.1~esm1 | USN-6670-1 |
| Ubuntu | jammy | php-nyholm-psr7 | Advisory build | 1.5.0-1ubuntu0.1~esm1 | USN-6671-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| guzzle | psr7 | < 1.9.1 (affected)>= 2.0.0, < 2.4.5 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-436 CWE-436: Interpretation Conflict
References
7- https://cve.mitre.org/cgi-bin/cvename.cgi?name=2022-24775
- https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96
- https://github.com/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvw
- https://lists.debian.org/debian-lts-announce/2023/12/msg00028.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/FJANWDXJZE5BGLN4MQ4FEHV5LJ6CMKQF/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/O35UN4IK6VS2LXSRWUDFWY7NI73RKY2U/
- https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4
Provider assertions
2GitHub_M · cna
Improper header name validation in guzzlehttp/psr7
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 9e0ef9dd7a45e77d7d01af408bf22f876d72684d595edb790c8adf15377a36d7
- Ingested
- 23 Sep 2026, 08:07:56 UTC
- Source record
- Official CVE record