Security News cve security-updates
SEC News Critical

PHP fixes CVE-2026-126714, a session-handler flaw that can lead to code execution

PHP released fixes for CVE-2026-126714, a 9.2-severity flaw in the files session save handler that can lead to remote code execution.

KT Kusal Tharindu

CVE-2026-126714 is a PHP vulnerability in the files session save handler that can lead to remote code execution, meaning an attacker can run their own code on the server. The CVE record was published on November 19, 2026, and rates the flaw 9.2 on the CVSS (Common Vulnerability Scoring System) 4.0 base scale, in the critical band. According to The Hacker News, the flaw is called phpAfterShell.

What is affected

The CVE record lists PHP 8.2.* before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13 as affected. It also ties the flaw to CWE-367 and CWE-662, identifiers from the Common Weakness Enumeration (CWE) catalog.

Why it matters

The report says the flaw is in the files session handler, which PHP uses by default. The October 21 PHP releases, which fixed two critical flaws known as PHP2Shell, do not contain this fix, the report adds. Depthfirst, a security company, says it found the flaw and reported it to the maintainers, according to the report. Neither the maintainers nor the company reports any attacks using phpAfterShell.

What to do

Upgrade to 8.2.36, 8.3.37, 8.4.28 or 8.5.13, the releases that end the affected ranges. The report notes that PHP 8.6.0, also released that day, includes the fix. The updates also switch upload progress off by default, the report says.

Sources

  1. NVD: CVE-2026-126714
  2. The Hacker News: phpAfterShell Explained: How Hackers Could Turn a PHP Session Flaw Into Code Execution
3 posts

Discussion

Spotted an error? Send corrections to [email protected] .

Search Oxelan Signal

Type to search the archive.

Search by title, tag, summary or body text.