Skip to content
OpenAdvisories
Medium · 5.3 CVE-2022-36032 EUVD-2022-6955GHSA-w3w9-vrf5-8mx8

ReactPHP's HTTP server parses encoded cookie names so malicious `__Host-` and `__Secure-` cookies can be sent

Published Sep 6, 2022 · Updated Apr 23, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
reactphp http >= 0.7.0, < 1.7.0 —

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.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 icinga-php-thirdparty +1 No fix yet —
Ubuntu 26.04 LTS icinga-php-thirdparty +1 No fix yet —
Ubuntu 25.10 icinga-php-thirdparty +1 No fix yet —
Ubuntu 24.04 LTS icinga-php-thirdparty +1 No fix yet —
Ubuntu 22.04 LTS icinga-php-thirdparty +1 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist react/http >= 0.7.0, < 1.7.0 1.7.0 GHSA-w3w9-vrf5-8mx8

References