CVE-2026-6722: PHP · Use After Free
Affects PHPSource CVE Database V5
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
- 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:RedExploitation evidence
Disclosed: evidence found.
CVE published 10 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| PHP GroupPHP | Affected
| Fixed in– |
GitHubphp/php-srcpkg:github/php/php-srcOther threats | Affected
| Fixed in
|
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
- github.com/php/php-src/security/advisories/GHSA-85c2-q967-79q5 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2026-6722 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2468560 (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6722.json (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:23388 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:22649 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:34354 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:22305 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:22142 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:22143 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:33449 (opens in a new tab)