CVE-2026-6722
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
9>=8.2,<8.2.31,>=8.3,<8.3.31,>=8.4,<8.4.21,>=8.5,<8.5.6+ 2 more
- (no CPE)range: >=8.2,<8.2.31,>=8.3,<8.3.31,>=8.4,<8.4.21,>=8.5,<8.5.6
- cpe:2.3:a:php:php:*:*:*:*:*:*:*:*range: >=8.2.0,<8.2.31
- (no CPE)range: >=8.2.0, <8.2.31 || >=8.3.0, <8.3.31 || >=8.4.0, <8.4.21 || >=8.5.0, <8.5.6
- osv-coords6 versionspkg:apk/chainguard/php-8.2pkg:apk/wolfi/php-8.2pkg:bitnami/libphppkg:bitnami/phppkg:bitnami/php-minpkg:rpm/opensuse/php8&distro=openSUSE%20Tumbleweed
< 8.2.31-r0+ 5 more
- (no CPE)range: < 8.2.31-r0
- (no CPE)range: < 8.2.31-r0
- (no CPE)range: >= 8.2.0, < 8.2.31
- (no CPE)range: >= 8.2.0, < 8.2.31
- (no CPE)range: >= 8.2.0, < 8.2.31
- (no CPE)range: < 8.5.6-1.1
Patches
Vulnerability mechanics
References
1- github.com/php/php-src/security/advisories/GHSA-85c2-q967-79q5nvdVendor Advisory
News mentions
2- ⚡ Weekly Recap: Exchange 0-Day, npm Worm, Fake AI Repo, Cisco Exploit and MoreThe Hacker News · May 18, 2026
- Patch Tuesday - May 2026Rapid7 Blog · May 13, 2026