CVE-2026-6722: php group php Use After Free
Vulnerability summary
CVE-2026-6722 is a critical (CVSS 9.8) Use After Free vulnerability in php group php. EPSS estimates a 1.29% chance of exploitation in the next 30 days, higher than 70% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 11 · Related 4Timeline
- 10-05-2026PublishedVulnerability first disclosed.
- 23-07-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated9.5CriticalCVSS: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
- NVDNIST9.5CriticalCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:Y/R:X/V:X/RE:M/U:Red
- CVE.orgCNA7.7HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.29%
Chance of exploitation in the next 30 days
Percentile
70%
Versus all other CVEs
30-day change
+0.40 pp
From 0.89% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-416Use After FreeThe product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
- CWE-825Expired Pointer DereferenceThe product dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid.
Affected systems
Ubuntu8 products
- php5All versions (No fix recorded)
- php7.0< 7.0.33-0ubuntu0.16.04.16+esm19
- php7.2All versions (No fix recorded)
- php7.4All versions (No fix recorded)
- php8.1< 8.1.2-1ubuntu2.24
Debian2 products
- php8.2< 8.2.31-1~deb12u1
- php8.4< 8.4.21-1~deb13u1 | < 8.4.21-1
Chainguard1 product
- php-8.2< 8.2.31-r0
Php1 product
- php≥ 8.2.0, < 8.2.31 | ≥ 8.3.0, < 8.3.31 | ≥ 8.4.0, < 8.4.21 | ≥ 8.5.0, < 8.5.6
Php group1 product
- php≥ 8.2.*, < 8.2.31 | ≥ 8.3.*, < 8.3.31 | ≥ 8.4.*, < 8.4.21 | ≥ 8.5.*, < 8.5.6
Wolfi1 product
- php-8.2< 8.2.31-r0
6 vendors · 14 products