CVE-2023-29197

NameCVE-2023-29197
Descriptionguzzlehttp/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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub advisories/code/issues, web search, more)
Debian Bugs1034581, 1034597

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php-guzzlehttp-psr7 (PTS)buster1.4.2-0.1+deb10u1vulnerable
bullseye1.7.0-1+deb11u1vulnerable
bookworm, sid2.4.5-1fixed
php-nyholm-psr7 (PTS)bullseye1.3.2-2vulnerable
bookworm, sid1.5.1-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php-guzzlehttp-psr7source(unstable)2.4.5-11034581
php-nyholm-psr7source(unstable)1.5.1-21034597

Notes

[bullseye] - php-guzzlehttp-psr7 <no-dsa> (Minor issue; can be fixed via point release)
[buster] - php-guzzlehttp-psr7 <no-dsa> (Minor issue)
[bullseye] - php-nyholm-psr7 <no-dsa> (Minor issue; can be fixed via point release)
https://github.com/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvw
https://github.com/guzzle/psr7/commit/0454e12ef0cd597ccd2adb036f7bda4e7fface66 (2.4.5)
https://github.com/Nyholm/psr7/security/advisories/GHSA-wjfc-pgfp-pv9c
https://github.com/Nyholm/psr7/commit/1029a2671cbdd3e075a21952082c2be7c8018426 (1.6.1)

Search for package or bug name: Reporting problems