Description
guzzlehttp/psr7 is a PSR-7 HTTP message library implementation in PHP. Prior to 2.12.1, guzzlehttp/psr7 did not reject CR/LF characters in certain first-party HTTP start-line fields: the request method, protocol version, and response reason phrase. If an application placed attacker-controlled data into one of those fields and later serialized the PSR-7 message as raw HTTP/1.x, for example with Message::toString() or an equivalent serializer, the serialized message could contain attacker-controlled header lines. The issue can also be reached through Message::parseRequest() or Message::parseResponse() when malformed raw messages are parsed into first-party PSR-7 objects and then serialized again. Creating or modifying a Request, Response, or other PSR-7 object alone is not sufficient. The issue requires the malformed message to be serialized and written to the network, forwarded, replayed, or otherwise processed by software that does not independently reject the malformed start line. This vulnerability is fixed in 2.12.1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| guzzle | psr7 | < 2.12.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | php-guzzlehttp-psr7 | 2.12.1-1 | — |
| Debian 13 | php-guzzlehttp-psr7 | 2.7.1-1+deb13u2 | — |
| Debian 12 | php-guzzlehttp-psr7 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | php-guzzlehttp-psr7 | No fix yet | — |
| Ubuntu 25.10 | php-guzzlehttp-psr7 | No fix yet | — |
| Ubuntu 24.04 LTS | php-guzzlehttp-psr7 | No fix yet | — |
| Ubuntu 20.04 LTS | php-guzzlehttp-psr7 | No fix yet | — |
| Ubuntu 16.04 LTS | php-guzzlehttp-psr7 | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | php-guzzlehttp-psr7 | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | nextcloud-server-33 | 33.0.5-r3 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | guzzlehttp/psr7 | < 2.12.1 | 2.12.1 | GHSA-vm85-hxw5-5432 |