CVE-2023-29197
guzzlehttp/psr7 is a PSR-7 HTTP message library implementation in PHP. ...
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness: CWE-436
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Composer (PHP) | guzzlehttp/psr7 | <1.9.1>=2.0.0, <2.4.5>=2, <2.4.5 | 1.9.12.4.5 |
Open a package to see all its vulnerabilities.
Operating systems · 14 fixes
debian 5 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | php-guzzlehttp-psr7 | 1.4.2-0.1+deb10u2 |
| 11 | php-nyholm-psr7 | 1.3.2-2+deb11u1 |
| 11 | php-guzzlehttp-psr7 | 1.7.0-1+deb11u2 |
| 12 | php-nyholm-psr7 | 1.5.1-2 |
| 12 | php-guzzlehttp-psr7 | 2.4.5-1 |
| 13 | php-nyholm-psr7 | 1.5.1-2 |
3 more rows
echo 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| php-nyholm-psr7 | 1.5.1-2 | |
| php-guzzlehttp-psr7 | 2.4.5-1 |
ubuntu 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 20.04 | php-guzzlehttp-psr7 | 1.4.2-0.1+deb10u2build0.20.04.1 |
| 20.04-ESM | php-guzzlehttp-psr7 | 1.4.2-0.1+deb10u2build0.20.04.1 |
| 22.04 | php-guzzlehttp-psr7 +1 | affected |
References
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=2022-24775
- github.com https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/psr7/CVE-2023-29197.yaml
- github.com https://github.com/Nyholm/psr7/commit/1029a2671cbdd3e075a21952082c2be7c8018426 (1.6.1)
- github.com https://github.com/Nyholm/psr7/security/advisories/GHSA-wjfc-pgfp-pv9c
- github.com https://github.com/guzzle/psr7
- github.com https://github.com/guzzle/psr7/commit/0454e12ef0cd597ccd2adb036f7bda4e7fface66 (2.4.5)
- github.com https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96
- github.com https://github.com/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvw
- lists.debian.org https://lists.debian.org/debian-lts-announce/2023/12/msg00028.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FJANWDXJZE5BGLN4MQ4FEHV5LJ6CMKQF
Show all 18 references
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FJANWDXJZE5BGLN4MQ4FEHV5LJ6CMKQF/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O35UN4IK6VS2LXSRWUDFWY7NI73RKY2U
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O35UN4IK6VS2LXSRWUDFWY7NI73RKY2U/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-29197
- ubuntu.com https://ubuntu.com/security/notices/USN-6670-1
- ubuntu.com https://ubuntu.com/security/notices/USN-6671-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-29197
- www.rfc-editor.org https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.