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, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3705-1
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
buster (security)1.4.2-0.1+deb10u2fixed
bullseye1.7.0-1+deb11u2fixed
bookworm2.4.5-1fixed
sid, trixie2.6.2-3fixed
php-nyholm-psr7 (PTS)bullseye1.3.2-2+deb11u1fixed
bookworm1.5.1-2fixed
sid, trixie1.8.1-2fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php-guzzlehttp-psr7sourcebuster1.4.2-0.1+deb10u2DLA-3705-1
php-guzzlehttp-psr7sourcebullseye1.7.0-1+deb11u2
php-guzzlehttp-psr7source(unstable)2.4.5-11034581
php-nyholm-psr7sourcebullseye1.3.2-2+deb11u1
php-nyholm-psr7source(unstable)1.5.1-21034597

Notes

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