Vulnerability advisory
CVE-2023-29197
Improper header name validation in guzzlehttp/psr7
Also known as GHSA-wxmh-65f7-jcvw
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/guzzle/psr7 ↗ | |
| All commits before e4490cabc77465aaee90b20cfc9a770f8c04be6b | e4490cabc77465aaee90b20cfc9a770f8c04be6b |
| 1dc8d9cba3897165e16d12bb13d813afb1eb3fe7 to before 0454e12ef0cd597ccd2adb036f7bda4e7fface66 | 0454e12ef0cd597ccd2adb036f7bda4e7fface66 |
Also listed as affected (35)
| |
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.
References
- Webcve.mitre.org/cgi-bin/cvename.cgi?name=2022-24775 ↗
- Weblists.debian.org/debian-lts-announce/2023/12/msg00028.html ↗
- Weblists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FJANWDXJZE5BGLN4MQ4FEHV5LJ6CMKQF/ ↗
- Weblists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O35UN4IK6VS2LXSRWUDFWY7NI73RKY2U/ ↗
- Webwww.rfc-editor.org/rfc/rfc7230#section-3.2.4 ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2023/29xxx/CVE-2023-29197.json ↗
- Advisorygithub.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96 ↗
- Advisorygithub.com/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvw ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-29197 ↗