5.3medium
Improper header name validation in guzzlehttp/psr7
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.22% (higher than 69% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-wxmh-65f7-jcvw
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| guzzle psr7 | < 1.9.1, >= 2.0.0, < 2.4.5 | CVE List |
| guzzlehttp/psr7 (Packagist) | before 1.9.1, from 2.0.0 before 2.4.5 | GitHub Advisory Database |
| guzzlephp psr-7 | before 1.9.1, from 2.0.0 before 2.4.5 | NVD |
| fedoraproject fedora | 37, 38 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
The issue is patched in 1.9.1 and 2.4.5.
Workarounds
There are no known workarounds.
References
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-29197 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wxmh-65f7-jcvw changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2023-29197 changed 2026-06-17 | Public domain |