CVE-2023-29197Guzzlephp Psr-7
High 7.5 No auth needed
Follow: this CVE · Guzzlephp · Guzzlephp Psr-7 We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 71
- Auth required
- No
- Published
- Apr 17, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-436
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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
- Apply the vendor's security update for Psr-7.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | guzzlehttp/psr7 |
< 1.9.1 |
1.9.1 |
composer require "guzzlehttp/psr7:^1.9.1" |
| Packagist | guzzlehttp/psr7 |
≥ 2.0.0 < 2.4.5 |
2.4.5 |
composer require "guzzlehttp/psr7:^2.4.5" |
Per OSV / GitHub Advisories (GHSA-wxmh-65f7-jcvw). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| guzzlephp | psr-7 | < 1.9.1 |
| guzzlephp | psr-7 | ≥ 2.0.0 < 2.4.5 |
| fedoraproject | fedora | 37 |
| fedoraproject | fedora | 38 |
Official sources
References
Links published by the sources. Open them with care.
- cve.mitre.org Not Applicable
- github.com Not Applicable
- github.com Vendor Advisory
- lists.debian.org
- lists.fedoraproject.org Mailing List Third Party Advisory
- lists.fedoraproject.org Mailing List Third Party Advisory
- www.rfc-editor.org Technical Description