The Hacker News
PHP flaw enables code execution through crafted session files
Part of the CVE-2026-126714 story · since 19 Nov
- Thu 19 Nov, 15:30 UTC. Infosecurity, first report. PHP patches 18 flaws, including seven marked critical.
- Thu 19 Nov, 15:30 UTC. The Hacker News, its first report on the story. PHP fixes eight flaws that could enable remote code execution.
- Thu 19 Nov, 16:01 UTC. SecurityWeek, its first report on the story. PHP fixes seven critical RCE flaws in latest four week patch batch.
- Thu 19 Nov, 16:01 UTC. SecurityOnline, its first report on the story. PHP Nov 2026 Update Fixes 12 Flaws, Incl. RCE CVE-2026-129289.
- Thu 19 Nov, 18:00 UTC. The Hacker News. PHP flaw enables code execution through crafted session files. This article, 5th of 5.
The Hacker News reports that PHP has a critical flaw in its default file-based session storage that can be exploited to execute code on the server, tracked as CVE-2026-126714. Depthfirst security researchers say the bug arises when PHP writes session data during an upload progress operation and the write is cut off at the right moment.
In that scenario, a maliciously crafted session file can cause PHP to interpret partially written data as a new serialized object, which when loaded on a subsequent request can yield code execution. PHP’s maintainers have assigned a CVSS v4 score of 9.2/10 and say this flaw is addressed in today’s PHP 8.6.0 release; earlier stable branches require upgrading to specific fixed releases listed in the advisory.
The advisory from PHP and Depthfirst identifies affected branches and the corresponding fixed releases: PHP 8.2 before 8.2.36 (fix in 8.2.36), PHP 8.3 before 8.3.37 (fix in 8.3.37), PHP 8.4 before 8.4.28 (fix in 8.4.28), PHP 8.5 before 8.5.13 (fix in 8.5.13). PHP 8.6.0 includes the fix by default. The flaw does not affect sessions stored in external stores like Redis or other databases, though those stores may need their own validation for session handling.
In addition to upgrading, Depthfirst’s guidance advises rebuilding containers and redeploying, and ensuring the web-facing PHP version is the updated one. If upgrading is not yet possible and upload progress is not used, they suggest disabling session.upload_progress in php.ini as a temporary measure, while noting that this is not a complete fix. The article notes that no attacks have been reported to date.
How the story developed
5 articles from 4 outlets since 19 Nov. Still developing; the latest report was 3 hours ago. This was the 5th report, 3 hours after the first.
- Thu 19 Nov, 15:30 UTC. Infosecurity, first report. PHP patches 18 flaws, including seven marked critical.
- Thu 19 Nov, 15:30 UTC. The Hacker News, its first report on the story. PHP fixes eight flaws that could enable remote code execution.
- Thu 19 Nov, 16:01 UTC. SecurityWeek, its first report on the story. PHP fixes seven critical RCE flaws in latest four week patch batch.
- Thu 19 Nov, 16:01 UTC. SecurityOnline, its first report on the story. PHP Nov 2026 Update Fixes 12 Flaws, Incl. RCE CVE-2026-129289.
- Thu 19 Nov, 18:00 UTC. The Hacker News. PHP flaw enables code execution through crafted session files. This article, 5th of 5.
- CVE not in KEV
- No CVE
- Larger: an outlet’s first report
- Coverage over time
Show all 5 articles as a listHide the list
- Thu 19 NovDay 05
- PHP patches 18 flaws, including seven marked critical15:30 · Infosecurity · First report
- PHP fixes eight flaws that could enable remote code execution15:30 · The Hacker News
- PHP flaw enables code execution through crafted session files18:00 · The Hacker News · This article, 5th of 5
Show 2 more from 19 Nov
- PHP fixes seven critical RCE flaws in latest four week patch batch16:01 · SecurityWeek
- PHP Nov 2026 Update Fixes 12 Flaws, Incl. RCE CVE-2026-12928916:01 · SecurityOnline