PHP: use-after-free (CVE-2026-129474) and php-cgi out-of-bounds flaw (CVE-2026-129538) fixed in 8.5.13
CVE-2026-129474 CVE-2026-129538
Published 20/11/2026 15:37 · Updated 21/11/2026 19:25 (revision 4)
Timeline
7 events over 2 d 2 h
- 19/11/2026 17:17UnconfirmedCommunity post+8 h
- 20/11/2026 02:01Confirmedoss-security mailing list+12 h
- 20/11/2026 14:52CorroboratedNCSC-NL advisories+45 min
- 20/11/2026 15:37Published on WatchtowerPro CISO+4 min
- 20/11/2026 15:42UpdatedAn oss-security post (19/11/2026) lists the full set of PHP fixes with CVE ids for the…+1 d 1 h
- 21/11/2026 16:59UpdatedVulnCheck's KEV list reports exploitation of the PHP-FPM request smuggling flaw…+2 h
- 21/11/2026 19:25UpdatedVulnCheck's KEV list now reports exploitation of the PHP-FPM request smuggling flaw…
In short
PHP released 8.2.36, 8.3.37, 8.4.28 and 8.5.13 on 19/11/2026 (8.6.0 the same day, per oss-security) fixing a use-after-free (CVE-2026-129474) and a php-cgi out-of-bounds flaw (CVE-2026-129538), among many others. NCSC-NL has issued an advisory, and VulnCheck reports exploitation of a PHP-FPM request smuggling flaw (CVE-2026-129289) from the same release, which an unauthenticated attacker can use to run PHP code when the front end reuses backend connections. Update to the fixed version for your branch. Shodan estimates about 4.0 million internet-facing PHP servers worldwide, 908,149 of them…
Shodan estimates about 4.2 million internet-facing PHP servers worldwide, 926,028 of them in the EU (29/11/2026); how many run an affected version is not yet known.
How bad is it
Critical. An attacker who can trigger a fatal error on a vulnerable PHP 8.5 server under specific settings could corrupt memory and possibly run their own code, without logging in; a related PHP-FPM flaw is reported exploited.
Confirmed by the vendor or a CERT - no exploitation reported yet.
Severity score
The worst of 2 CVEs · CVSS 4.0 from NVD, from php.net, read 29/11/2026.
What an attacker needs
- Internet access to itEnough
- A loginNot needed
- A user to clickNo
- Special settingsUsually yes
Red helps the attacker, blue holds them back, grey is not published yet.
If it works, an attacker can
- Read the data it holds
- Change or delete that data
- Take it offline
Type: memory corruption.
A score is the worst case for the flaw, not a verdict on any one system. How we score · ReconX customers see which of their own systems are affected.
Affected versions
- CVE-2026-129474: PHP 8.5.0 up to before 8.5.13, and PHP 8.6 builds before 8.6.0 where applicable (the release notes list 8.5 and 8.6).
- CVE-2026-129538: PHP 8.2.0 up to before 8.2.36, 8.3.0 up to before 8.3.37, 8.4.0 up to before 8.4.28 and 8.5.0 up to before 8.5.13, only when running php-cgi in CGI or FastCGI mode with cgi.fix_pathinfo enabled (the default). PHP-FPM and the Apache module are not affected by this flaw. The release notes also list branch 8.6 (fixed in 8.6.0).
- CVE-2026-129289 (PHP-FPM request smuggling, per VulnCheck): PHP before 8.2.36, 8.3 before 8.3.37, 8.4 before 8.4.28 and 8.5 before 8.5.13, when the front end reuses backend connections.
- Other flaws fixed in the same release (SOAP, session handling, timezone cache, HTTP stream wrapper, PHP-FPM) are described by NCSC-NL without version ranges in the excerpt read.
Fixed in
- 8.2 branch: 8.2.36 (released 19/11/2026 15:00 Amsterdam time)
- 8.3 branch: 8.3.37 (released 19/11/2026 15:00 Amsterdam time)
- 8.4 branch: 8.4.28 (released 19/11/2026 15:00 Amsterdam time)
- 8.5 branch: 8.5.13 (released 19/11/2026 15:00 Amsterdam time)
- 8.6 branch: 8.6.0 (released 19/11/2026, per an oss-security post)
What to do now
- Update PHP to 8.2.36, 8.3.37, 8.4.28 or 8.5.13 (whichever matches your branch), then restart PHP processes.
- If you use Docker images or distribution packages, rebuild or update them to include the fixed PHP version. Ubuntu 24.04's archive offers php8.4 8.4.28 packages, but Ubuntu's CVE data does not yet list them as the fix; install and verify the version.
- Until updated: keep zend.exception_ignore_args enabled (php.ini-production does this).
- Until updated, if you run php-cgi: set cgi.fix_pathinfo=0 and check that routing still works, correct inconsistent web server path mappings, and do not expose FastCGI listeners to untrusted clients.
- Until updated, if you use PHP-FPM behind a proxy that reuses backend connections (nginx fastcgi_keep_conn on, Apache mod_proxy_fcgi enablereuse=on): turning that reuse off removes the condition VulnCheck describes for CVE-2026-129289.
- These interim measures reduce exposure and do not make a server safe; only the update does.
ReconX customers see the full notice - and their own systems
Our customers are alerted at every phase. Until a patch exists, the ReconX agent watches their servers from the inside for anomalies, and our outside view - the attacker's view - shows which systems to fix first.
In ReconX: the full analysis, 4 open questions, followed up as sources answer, all 5 sources with their dates and every revision. And technology matching: which of your systems run PHP, at which version, fixed or not - and what each one needs.
Main sources
NCSC-2026-0509 [1.01] [M/H] Kwetsbaarheden verholpen in PHP CERT · Re: Upcoming Critical PHP Security Release Research · CVE Record: CVE-2026-129474 Research