CVE-2023-29197
JSON

5.3medium

Improper header name validation in guzzlehttp/psr7

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.22% (higher than 69% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-wxmh-65f7-jcvw

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.

Affected

Product or packageVersionsReported by
guzzle psr7< 1.9.1, >= 2.0.0, < 2.4.5CVE List
guzzlehttp/psr7 (Packagist)before 1.9.1, from 2.0.0 before 2.4.5GitHub Advisory Database
guzzlephp psr-7before 1.9.1, from 2.0.0 before 2.4.5NVD
fedoraproject fedora37, 38NVD

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Classification

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

Patches

The issue is patched in 1.9.1 and 2.4.5.

Workarounds

There are no known workarounds.

References

References

https://github.com/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvwvendor-advisory, web
https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96not-applicable, web
https://cve.mitre.org/cgi-bin/cvename.cgi?name=2022-24775not-applicable, web
https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4technical-description, web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O35UN4IK6VS2LXSRWUDFWY7NI73RKY2U/mailing-list, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FJANWDXJZE5BGLN4MQ4FEHV5LJ6CMKQF/mailing-list, third-party-advisory
https://lists.debian.org/debian-lts-announce/2023/12/msg00028.htmlweb
https://nvd.nist.gov/vuln/detail/CVE-2023-29197advisory
https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/psr7/CVE-2023-29197.yamlweb
https://github.com/guzzle/psr7package
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FJANWDXJZE5BGLN4MQ4FEHV5LJ6CMKQFweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O35UN4IK6VS2LXSRWUDFWY7NI73RKY2Uweb

Related

Sources

SourceRecordLicence
CVE ListCVE-2023-29197 changed 2025-02-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-wxmh-65f7-jcvw changed 2026-02-04CC-BY-4.0
NVDCVE-2023-29197 changed 2026-06-17Public domain