CVE-2026-12184: PHP HTTP Stream Wrapper NULL Pointer Dereference
CVE-2026-12184 is a NULL pointer dereference in PHP's HTTP stream wrapper function php_stream_url_wrap_http_ex. When php_stream_xport_crypto_setup or php_stream_xport_crypto_enable fails during TLS initialization, PHP closes the stream and sets its reference to NULL. Subsequent cleanup unconditionally attempts to reset the peer name through the invalid stream reference. A remote server can trigger this condition through TLS failures, including an expired certificate or failed peer-name validation, causing denial of service.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can crash PHP-FPM and terminate its workers, potentially causing a complete outage of the affected PHP service. The vulnerability has high availability impact; no confidentiality or integrity impact is identified.
Mitigation
If you can’t patch tonight, do this now.
Review application use of external connections to reduce exposure to the affected HTTP stream wrapper. No specific temporary workaround is established.
Remediation
Patch, then assume compromise.
Upgrade to PHP 8.3.32, 8.4.21, or 8.5.6, or a later supported release containing the fix. For distribution-managed installations, install the corresponding vendor security updates. The patch corrects the cleanup logic following TLS setup failure; PHP pull request #21031 contains the fix.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-12184 exploited in the wild?
- As of Nov 25, 2026, Mallory has no reports of CVE-2026-12184 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-12184?
- As of Nov 25, 2026, Mallory has found no public exploit for CVE-2026-12184.
- Is there a patch for CVE-2026-12184?
- Upgrade to PHP 8.3.32, 8.4.21, or 8.5.6, or a later supported release containing the fix. For distribution-managed installations, install the corresponding vendor security updates.
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.