Vulnerability · Published Sep 6, 2022 · Assigned by GitHub_M
CVE-2022-36032ReactPHP's HTTP server parses encoded cookie names so malicious `__Host-` and `__Secure-` cookies can be sent
Medium 5.3
In plain English
A medium-severity improper input validation in http from reactphp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
ReactPHP HTTP is a streaming HTTP client and server implementation for ReactPHP. In ReactPHP's HTTP server component versions starting with 0.7.0 and prior to 1.7.0, when ReactPHP is processing incoming HTTP cookie values, the cookie names are url-decoded. This may lead to cookies with prefixes like `__Host-` and `__Secure-` confused with cookies that decode to such prefix, thus leading to an attacker being able to forge cookie which is supposed to be secure. This issue is fixed in ReactPHP HTTP version 1.7.0. As a workaround, Infrastructure or DevOps can place a reverse proxy in front of the ReactPHP HTTP server to filter out any unexpected `Cookie` request headers.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | react/http | 1.7.0 | GHSA-w3w9-vrf5-8mx8 |
| Ubuntu:22.04:LTS | icinga-php-thirdparty | no fix listed | UBUNTU-CVE-2022-36032 |
| Ubuntu:24.04:LTS | icinga-php-thirdparty | no fix listed | UBUNTU-CVE-2022-36032 |
| Ubuntu:25.10 | icinga-php-thirdparty | no fix listed | UBUNTU-CVE-2022-36032 |
| Ubuntu:26.04:LTS | icinga-php-thirdparty | no fix listed | UBUNTU-CVE-2022-36032 |
| Ubuntu:26.10 | icinga-php-thirdparty | no fix listed | UBUNTU-CVE-2022-36032 |
| Ubuntu:22.04:LTS | icingaweb2-module-reactbundle | no fix listed | UBUNTU-CVE-2022-36032 |
| Ubuntu:24.04:LTS | icingaweb2-module-reactbundle | no fix listed | UBUNTU-CVE-2022-36032 |
| Ubuntu:25.10 | icingaweb2-module-reactbundle | no fix listed | UBUNTU-CVE-2022-36032 |
| Ubuntu:26.04:LTS | icingaweb2-module-reactbundle | no fix listed | UBUNTU-CVE-2022-36032 |
| Ubuntu:26.10 | icingaweb2-module-reactbundle | no fix listed | UBUNTU-CVE-2022-36032 |
Affected products (as reported)
Weakness: CWE-20, CWE-565 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
References
- https://github.com/reactphp/http/security/advisories/GHSA-w3w9-vrf5-8mx8 x_refsource_CONFIRM
- https://github.com/reactphp/http/pull/175 x_refsource_MISC
- https://github.com/reactphp/http/commit/663c9a3b77b71463fa7fcb76a6676ffd16979dd6 x_refsource_MISC
- https://github.com/reactphp/http/releases/tag/v1.7.0 x_refsource_MISC