CVE-2023-29197

Improper header name validation in guzzlehttp/psr7

Published Apr 17, 2023 CVSS 3.1 · 5.3 Medium EPSS 1.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3705-1 php-guzzlehttp-psr7 security update
EUVD EUVD EUVD-2023-1416 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 GHSA Github GHSA GHSA-wxmh-65f7-jcvw Improper header name validation in guzzlehttp/psr7
Ubuntu USN Ubuntu USN USN-6670-1 php-guzzlehttp-psr7 vulnerabilities
Ubuntu USN Ubuntu USN USN-6671-1 php-nyholm-psr7 vulnerability
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 13, 2025, 4:49 PM
Reserved
Apr 3, 2023, 1:37 PM
Status
Modified
Published
Apr 17, 2023, 10:15 PM
Modified
Jun 17, 2026, 5:49 AM