Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. guzzlehttp/psr7
  4. ›
  5. CVE-2023-29197

CVE-2023-29197: Interpretation Conflict

April 19, 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.

References

  • github.com/advisories/GHSA-wxmh-65f7-jcvw
  • github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96
  • github.com/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvw
  • nvd.nist.gov/vuln/detail/CVE-2023-29197
  • www.rfc-editor.org/rfc/rfc7230

Code Behaviors & Features

Detect and mitigate CVE-2023-29197 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.9.1, all versions starting from 2.0.0 before 2.4.5

Fixed versions

  • 1.9.1
  • 2.4.5

Solution

Upgrade to versions 1.9.1, 2.4.5 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-436: Interpretation Conflict

Source file

packagist/guzzlehttp/psr7/CVE-2023-29197.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:07 +0000.