CVE-2023-29197
Improper header name validation in guzzlehttp/psr7
Reported by github_m · Published April 17, 2023
guzzlehttp/psr7 is fixed in 2.4.5 and 1.9.1 (Packagist)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| guzzlehttp/psr7 | Packagist | 2.4.5, 1.9.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| guzzle | psr7 | < 1.9.1, >= 2.0.0, < 2.4.5 |
| guzzlehttp | psr7 | 0, 2.0.0 |
| guzzle | psr7 | 0, 2.0.0 |
Timeline
- Apr 17, 2023 CVE Published
- Apr 18, 2023 EPSS Score (30 in total, the first dated here)
- Oct 27, 2023 PoC Published
- Nov 21, 2024 CVE Updated
- Feb 17, 2026 Security Advisory (2 in total, the first dated here)
- Mar 21, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-29197
vulnetix vdb fixes CVE-2023-29197
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-29197/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvw x_refsource_CONFIRM
- https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96 x_refsource_MISC
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=2022-24775 x_refsource_MISC
- https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2023-29197 advisory
- https://github.com/advisories/GHSA-wxmh-65f7-jcvw advisory