Skip to main content
VulnerabilityPublished Updated

CVE-2026-6722: PHP · Use After Free

Affects PHPSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 9.5 Critical · fixed in 8.5.6 : patch PHP as a priority.

Data as of 10 Nov 2026, 23:24 UTC

CVSS 4.0 base score
9.5Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.8% chance of exploitation in 30 days – higher than 59% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 8.5.6, 8.4.21, 8.3.31 +1
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/RE:M/U:Red

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 10 Nov 2026.

What to do

Upgrade php/php-src to 8.5.6, 8.4.21, 8.3.31 or 8.2.31.

Affected software

ProductAffectedFixed in
PHP GroupPHPAffected
  • ≥ 8.2.*, < 8.2.31
  • ≥ 8.3.*, < 8.3.31
  • ≥ 8.4.*, < 8.4.21
  • ≥ 8.5.*, < 8.5.6
Fixed in–
GitHubphp/php-srcpkg:github/php/php-srcOther threatsAffected
  • <8.2.31
  • <8.3.31
  • <8.4.21
  • <8.5.6
Fixed in
  • 8.2.31
  • 8.3.31
  • 8.4.21
  • 8.5.6

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Red Hat has released updated PHP packages that fix this vulnerability. Users of affected Red Hat Enterprise Linux versions should apply the security updates provided in RHSA-2026:23388 or later. Since this is not a cloud service, remediation requires applying the vendor-supplied patches. Patch status is confirmed by the Red Hat advisory. No alternative mitigations are specified in the advisory; applying the official update is the recommended action.

Description

In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, the SOAP extension's object deduplication mechanism stores pointers to PHP objects in a global map without incrementing their reference counts. When an apache:Map node contains duplicate keys, processing the second entry overwrites the first in the temporary result map, freeing the original PHP object while its stale pointer remains in the map. A subsequent href reference to the freed node can copy the dangling pointer into the result. As PHP string allocations can reclaim the freed memory region, an attacker with control over the SOAP request body can exploit this use-after-free to achieve remote code execution.

References

Community reviews

Loading reviews…