Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. react/http
  4. ›
  5. CVE-2022-36032

CVE-2022-36032: Improper Input Validation

September 6, 2022 (updated September 10, 2022)

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.

References

  • github.com/reactphp/http/commit/663c9a3b77b71463fa7fcb76a6676ffd16979dd6
  • github.com/reactphp/http/pull/175
  • github.com/reactphp/http/releases/tag/v1.7.0
  • github.com/reactphp/http/security/advisories/GHSA-w3w9-vrf5-8mx8
  • nvd.nist.gov/vuln/detail/CVE-2022-36032

Code Behaviors & Features

Detect and mitigate CVE-2022-36032 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.7.0 before 1.7.0

Fixed versions

  • 1.7.0

Solution

Upgrade to version 1.7.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

packagist/react/http/CVE-2022-36032.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:01 +0000.