CVE-2023-29197 Improper header name validation in guzzlehttp/psr7
- Published
- Updated
- Exploit status
- Proof-of-concept only
- Technology
- PHPUbuntuDebian
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.
Upgrade path
19 packages: 15 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/php-guzzlehttp-psr7(Ubuntu 16.04) | = 1.1.0-1; = 1.2.0-1; = 1.2.1-1; = 1.2.2-1 +3 more | No fix listed | No fix yet |
| ubuntu/php-nyholm-psr7(Ubuntu 20.04) | = 1.1.0-2; = 1.2.1-2; All versions | No fix listed | No fix yet |
| debian/php-guzzlehttp-psr7(Debian 12) | < 2.4.5-1 | 2.4.5-1 | Fixed |
| debian/php-guzzlehttp-psr7(Debian 13) | < 2.4.5-1 | 2.4.5-1 | Fixed |
| debian/php-guzzlehttp-psr7(Debian 14) | < 2.4.5-1 | 2.4.5-1 | Fixed |
| debian/php-nyholm-psr7(Debian 12) | < 1.5.1-2 | 1.5.1-2 | Fixed |
| debian/php-nyholm-psr7(Debian 13) | < 1.5.1-2 | 1.5.1-2 | Fixed |
| debian/php-nyholm-psr7(Debian 14) | < 1.5.1-2 | 1.5.1-2 | Fixed |
| guzzlehttp/psr7(Packagist) | < 1.9.1; = 1.0.0; = 1.1.0; = 1.2.0 +35 more | 1.9.1, 2.4.5 | Fixed |
| guzzlephp psr-7 | < 1.9.1; >= 2.0.0, < 2.4.5 | 1.9.1, 2.4.5 | Fixed |
| ubuntu/php-guzzlehttp-psr7(Ubuntu 20.04) | < 1.4.2-0.1+deb10u2build0.20.04.1; = 1.4.2-0.1 | 1.4.2-0.1+deb10u2build0.20.04.1 | Fixed |
| ubuntu/php-guzzlehttp-psr7(Ubuntu 22.04) | < 1.8.3-1ubuntu0.1~esm1 | 1.8.3-1ubuntu0.1~esm1 | Fixed |
| ubuntu/php-guzzlehttp-psr7(Ubuntu Pro 22.04) | < 1.8.3-1ubuntu0.1~esm1; = 1.7.0-1; = 1.8.3-1 | 1.8.3-1ubuntu0.1~esm1 | Fixed |
| ubuntu/php-nyholm-psr7(Ubuntu 22.04) | < 1.5.0-1ubuntu0.1~esm1 | 1.5.0-1ubuntu0.1~esm1 | Fixed |
| ubuntu/php-nyholm-psr7(Ubuntu Pro 22.04) | < 1.5.0-1ubuntu0.1~esm1; = 1.3.2-2; = 1.5.0-1 | 1.5.0-1ubuntu0.1~esm1 | Fixed |
| wordpress amazon-s3-and-cloudfront(WordPress) | < 3.2.2 | 3.2.2 | Fixed |
| wordpress wp-ses(WordPress) | < 1.6.4 | 1.6.4 | Fixed |
| fedoraproject fedora | = 37; = 38 | No fix listed | Versions listed |
| guzzle psr7 | = < 1.9.1; = >= 2.0.0, < 2.4.5 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| guzzlehttp/psr7(Packagist) | < 1.9.1 | 1.9.1 |
| guzzlehttp/psr7(Packagist) | = 1.0.0 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.1.0 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.2.0 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.2.1 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.2.2 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.2.3 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.3.0 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.3.1 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.4.0 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.4.1 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.4.2 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.5.0 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.5.1 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.5.2 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.6.0 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.6.1 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.7.0 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.8.0 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.8.1 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.8.2 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.8.3 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.8.4 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.8.5 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 1.9.0 | No fix listed |
Show 48 more
| Product | Affected versions | Fixed in |
|---|---|---|
| guzzlehttp/psr7(Packagist) | >= 2.0.0, < 2.4.5 | 2.4.5 |
| guzzlehttp/psr7(Packagist) | = 2.0.0 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 2.1.0 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 2.1.1 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 2.1.2 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 2.2.0 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 2.2.1 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 2.2.2 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 2.3.0 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 2.4.0 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 2.4.1 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 2.4.2 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 2.4.3 | No fix listed |
| guzzlehttp/psr7(Packagist) | = 2.4.4 | No fix listed |
| debian/php-guzzlehttp-psr7(Debian:12) | < 2.4.5-1 | 2.4.5-1 |
| debian/php-guzzlehttp-psr7(Debian:13) | < 2.4.5-1 | 2.4.5-1 |
| debian/php-guzzlehttp-psr7(Debian:14) | < 2.4.5-1 | 2.4.5-1 |
| debian/php-nyholm-psr7(Debian:12) | < 1.5.1-2 | 1.5.1-2 |
| debian/php-nyholm-psr7(Debian:13) | < 1.5.1-2 | 1.5.1-2 |
| debian/php-nyholm-psr7(Debian:14) | < 1.5.1-2 | 1.5.1-2 |
| guzzle psr7 | = < 1.9.1 | No fix listed |
| guzzle psr7 | = >= 2.0.0, < 2.4.5 | No fix listed |
| wordpress wp-ses(WordPress) | < 1.6.4 | 1.6.4 |
| wordpress amazon-s3-and-cloudfront(WordPress) | < 3.2.2 | 3.2.2 |
| ubuntu/php-guzzlehttp-psr7(Ubuntu:22.04) | < 1.8.3-1ubuntu0.1~esm1 | 1.8.3-1ubuntu0.1~esm1 |
| ubuntu/php-nyholm-psr7(Ubuntu:22.04) | < 1.5.0-1ubuntu0.1~esm1 | 1.5.0-1ubuntu0.1~esm1 |
| guzzlephp psr-7 | < 1.9.1 | 1.9.1 |
| guzzlephp psr-7 | >= 2.0.0, < 2.4.5 | 2.4.5 |
| fedoraproject fedora | = 37 | No fix listed |
| fedoraproject fedora | = 38 | No fix listed |
| ubuntu/php-guzzlehttp-psr7(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/php-guzzlehttp-psr7(Ubuntu:16.04) | = 1.1.0-1 | No fix listed |
| ubuntu/php-guzzlehttp-psr7(Ubuntu:16.04) | = 1.2.0-1 | No fix listed |
| ubuntu/php-guzzlehttp-psr7(Ubuntu:16.04) | = 1.2.1-1 | No fix listed |
| ubuntu/php-guzzlehttp-psr7(Ubuntu:16.04) | = 1.2.2-1 | No fix listed |
| ubuntu/php-guzzlehttp-psr7(Ubuntu:16.04) | = 1.2.2-1build1 | No fix listed |
| ubuntu/php-guzzlehttp-psr7(Ubuntu:16.04) | = 1.2.2-1ubuntu1 | No fix listed |
| ubuntu/php-guzzlehttp-psr7(Ubuntu:20.04) | < 1.4.2-0.1+deb10u2build0.20.04.1 | 1.4.2-0.1+deb10u2build0.20.04.1 |
| ubuntu/php-guzzlehttp-psr7(Ubuntu:20.04) | = 1.4.2-0.1 | No fix listed |
| ubuntu/php-nyholm-psr7(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/php-nyholm-psr7(Ubuntu:20.04) | = 1.1.0-2 | No fix listed |
| ubuntu/php-nyholm-psr7(Ubuntu:20.04) | = 1.2.1-2 | No fix listed |
| ubuntu/php-guzzlehttp-psr7(Ubuntu:Pro:22.04) | < 1.8.3-1ubuntu0.1~esm1 | 1.8.3-1ubuntu0.1~esm1 |
| ubuntu/php-guzzlehttp-psr7(Ubuntu:Pro:22.04) | = 1.7.0-1 | No fix listed |
| ubuntu/php-guzzlehttp-psr7(Ubuntu:Pro:22.04) | = 1.8.3-1 | No fix listed |
| ubuntu/php-nyholm-psr7(Ubuntu:Pro:22.04) | < 1.5.0-1ubuntu0.1~esm1 | 1.5.0-1ubuntu0.1~esm1 |
| ubuntu/php-nyholm-psr7(Ubuntu:Pro:22.04) | = 1.3.2-2 | No fix listed |
| ubuntu/php-nyholm-psr7(Ubuntu:Pro:22.04) | = 1.5.0-1 | No fix listed |
References
- https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96 issue-tracking not-applicable vendor-advisory
- https://github.com/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvw issue-tracking vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=2022-24775 issue-tracking not-applicable
- github.com exploit
- github.com product
- lists.debian.org
- lists.fedoraproject.org mailing-list third-party-advisory
- lists.fedoraproject.org mailing-list third-party-advisory
- https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4 issue-tracking technical-description
- github.com
- Debian Security Tracker CVE-2023-29197 vendor-advisory
- Wordfence Intelligence third-party-advisory
- www.cve.org issue-tracking
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6670-1 vendor-advisory
- USN-6671-1 vendor-advisory
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking
- github.com issue-tracking
- github.com issue-tracking
- github.com issue-tracking