# CVE-2023-29197: Improper header name validation in guzzlehttp/psr7

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.22%, higher than 69% of CVEs (2026-12-01)
- Published: 2023-04-17T21:08:46.675Z
- Modified: 2026-06-17T05:49:35.320Z
- Also known as: GHSA-wxmh-65f7-jcvw
- Related: CVE-2023-29530, CVE-2025-24013
- Weaknesses: CWE-436
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- guzzle psr7: < 1.9.1; >= 2.0.0, < 2.4.5
- guzzlehttp/psr7 (Packagist): before 1.9.1; from 2.0.0 before 2.4.5
- guzzlephp psr-7: before 1.9.1; from 2.0.0 before 2.4.5
- fedoraproject fedora: 37; 38

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 7.5 High `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> (vendor-advisory, web)
- <https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96> (not-applicable, web)
- <https://cve.mitre.org/cgi-bin/cvename.cgi?name=2022-24775> (not-applicable, web)
- <https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4> (technical-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.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-29197> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/psr7/CVE-2023-29197.yaml> (web)
- <https://github.com/guzzle/psr7> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FJANWDXJZE5BGLN4MQ4FEHV5LJ6CMKQF> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O35UN4IK6VS2LXSRWUDFWY7NI73RKY2U> (web)

## Sources

- CVE List: [CVE-2023-29197](https://www.cve.org/CVERecord?id=CVE-2023-29197), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-wxmh-65f7-jcvw](https://github.com/advisories/GHSA-wxmh-65f7-jcvw), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-29197](https://nvd.nist.gov/vuln/detail/CVE-2023-29197), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-29197 · Whole record: https://cve.day/CVE-2023-29197.json · Rebuilt by cve.day 2026-11-25T22:58:23.567Z
