CVE-2023-29197
Published: 17 April 2023
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.
Notes
Author | Note |
---|---|
gianz |
php-guzzlehttp-psr7 Version 1.4.2 requires refactoring of core functions to be fixed. Same story for php-nyholm-psr7 version 1.2.1. Applying the patches to this version is likely to cause regressions. |
Priority
Status
Package | Release | Status |
---|---|---|
php-guzzlehttp-psr7
Launchpad, Ubuntu, Debian |
bionic |
Does not exist
|
focal |
Released
(1.4.2-0.1+deb10u2build0.20.04.1)
|
|
jammy |
Released
(1.8.3-1ubuntu0.1~esm1)
Available with Ubuntu Pro |
|
kinetic |
Ignored
(end of life, was needs-triage)
|
|
lunar |
Ignored
(end of life, was needs-triage)
|
|
mantic |
Not vulnerable
(2.6.0-1)
|
|
noble |
Not vulnerable
(2.6.2-1)
|
|
trusty |
Ignored
(end of standard support)
|
|
upstream |
Released
(2.4.5)
|
|
xenial |
Ignored
(backporting risks regressions)
|
|
php-nyholm-psr7
Launchpad, Ubuntu, Debian |
bionic |
Does not exist
|
focal |
Ignored
(backporting risks regressions)
|
|
jammy |
Released
(1.5.0-1ubuntu0.1~esm1)
Available with Ubuntu Pro |
|
kinetic |
Ignored
(end of life, was needs-triage)
|
|
lunar |
Ignored
(end of life, was needs-triage)
|
|
mantic |
Not vulnerable
(1.5.1-2)
|
|
noble |
Not vulnerable
(1.8.1-1)
|
|
trusty |
Ignored
(end of standard support)
|
|
upstream |
Released
(1.6.1)
|
|
xenial |
Ignored
(end of standard support)
|
Severity score breakdown
Parameter | Value |
---|---|
Base score | 7.5 |
Attack vector | Network |
Attack complexity | Low |
Privileges required | None |
User interaction | None |
Scope | Unchanged |
Confidentiality | None |
Integrity impact | High |
Availability impact | None |
Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
References
- 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)
- https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=2022-24775
- https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4
- https://ubuntu.com/security/notices/USN-6670-1
- https://ubuntu.com/security/notices/USN-6671-1
- https://www.cve.org/CVERecord?id=CVE-2023-29197
- NVD
- Launchpad
- Debian