CVE-2023-29197
Guzzlephp Psr-7 vulnerability
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 products
Psr-7, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Guzzlephp Psr-7 runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvw · Vendor Advisory
- lists.fedoraproject.org/archives/list/[email protected]/message/FJA · Third Party Advisory
- lists.fedoraproject.org/archives/list/[email protected]/message/O35 · Third Party Advisory
- cve.mitre.org/cgi-bin/cvename.cgi?name=2022-24775
- github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96
- lists.debian.org/debian-lts-announce/2023/12/msg00028.html
- www.rfc-editor.org/rfc/rfc7230#section-3.2.4
- nvd.nist.gov/vuln/detail/CVE-2023-29197
- cve.org/CVERecord?id=CVE-2023-29197
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.