VDB
Sign up
HIGH8.2

GHSA-qjfw-cvjf-f4fm

AMPHP Denial of Service via HTTP/2 CONTINUATION Frames

Quick fix

GHSA-qjfw-cvjf-f4fm — amphp/http: upgrade to the fixed version with the command below.

composer require amphp/http:^2.1.1

Details

`amphp/http` will collect HTTP/2 `CONTINUATION` frames in an unbounded buffer and will not check the header size limit until it has received the `END_HEADERS` flag, resulting in an OOM crash. `amphp/http-client` and `amphp/http-server` are indirectly affected if they're used with an unpatched version of `amphp/http`. Early versions of `amphp/http-client` with HTTP/2 support (v4.0.0-rc10 to 4.0.0) are also directly affected.

## Acknowledgements

Thank you to [Bartek Nowotarski](https://nowotarski.info/) for reporting the vulnerability.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/amphp/http
Introduced in: 2.0.0Fixed in: 2.1.1
Fixcomposer require amphp/http:^2.1.1
Packagist/amphp/http
Introduced in: 0Fixed in: 1.7.3
Fixcomposer require amphp/http:^1.7.3
Packagist/amphp/http-client
Introduced in: 4.0.0-rc10

No fixed version published yet for amphp/http-client (composer). Pin to a known-safe version or switch to an alternative.

References