CVE Watchtower

CVE-2026-129538PHP sapi-cgi >= 8.2.0, Out-of-bounds Read

NVD

Vulnerability Summary

PHP-CGI out-of-bounds read and write during PATH_INFO correction. The PHP CGI binary (php-cgi) can access memory outside the supplied path information when a web server passes inconsistent script and path values. Depending on the request and configuration, an unauthenticated attacker may be able to crash the PHP process, expose process memory, or corrupt memory. This affects php-cgi in both CGI and FastCGI mode when cgi.fix_pathinfo=1, the default. PHP-FPM and PHP running as an Apache module are not affected.
Severity Level
MEDIUM(6.9)
Published Date
Nov 19, 2026
Last Modified
Nov 19, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Published
Root Weakness (CWE)
The software reads data past the end, or before the beginning, of the intended buffer.
CVSS v4.0 Base Metrics — Score 6.9 (MEDIUM)
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Attack VectorNetwork
Attack ComplexityLow
Attack RequirementsNone
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)Low
Integrity (Vulnerable System)Low
Availability (Vulnerable System)Low
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None

Affected & Patched Versions

Affected Versions
  • PHP sapi-cgi >= 8.2.0, < 8.2.36
  • PHP sapi-cgi >= 8.3.0, < 8.3.37
  • PHP sapi-cgi >= 8.4.0, < 8.4.28
  • PHP sapi-cgi >= 8.5.0, < 8.5.13
Patched Versions
  • PHP 8.2.36
  • PHP 8.3.37
  • PHP 8.4.28
  • PHP 8.5.13

What to do

Fix it during your normal patch cycle. No exploitation is confirmed yet.

  1. Check whether you run PHP sapi-cgi >= 8.2.0, and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Until you can update, follow the vendor workaround: As a workaround, set cgi.fix_pathinfo=0 in the configuration used by php-cgi, and check that the application's routing still works.

Timeline

  • Nov 19, 2026Published
  • Nov 19, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new PHP sapi-cgi >= 8.2.0, CVEsYou are reading CVE-2026-129538. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 19, 2026 14:43 UTC