CVE-2026-6722 Use-After-Free in SOAP using Apache map
CriticalCVSS 9.5
EPSS 0.89%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP | < 8.2.31 | 8.2.31 |
| PHP | < 8.3.31 | 8.3.31 |
| PHP | < 8.4.21 | 8.4.21 |
| PHP | < 8.5.6 | 8.5.6 |
| redhat enterprise linux | < 0:8.4.21-1.el10_2 | 0:8.4.21-1.el10_2 |
| redhat enterprise linux | < 0:8.3.31-1.el10_2 | 0:8.3.31-1.el10_2 |
| redhat enterprise linux | < 8100020260521052503.f7998665 | 8100020260521052503.f7998665 |
| redhat enterprise linux | < 8100020260604072603.f7998665 | 8100020260604072603.f7998665 |
| redhat enterprise linux | < 9080020260521113736.9 | 9080020260521113736.9 |
| redhat enterprise linux | < 9080020260521080715.9 | 9080020260521080715.9 |
| redhat enterprise linux | < 0:8.0.30-6.el9_8 | 0:8.0.30-6.el9_8 |
| redhat enterprise linux | = 6 | No fix listed |
| redhat enterprise linux | All versions | No fix listed |
| redhat/php8.4(Red Hat:enterprise_linux:10.2) | < 8.4.21-1.el10_2 | 8.4.21-1.el10_2 |
| redhat/php(Red Hat:enterprise_linux:10.2) | < 8.3.31-1.el10_2 | 8.3.31-1.el10_2 |
| redhat/php:8.2-8100020260521052503.f7998665(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/php:7.4-8100020260604072603.f7998665(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/php:8.3-9080020260521113736.9(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/php:8.2-9080020260521080715.9(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/php(Red Hat:enterprise_linux:9) | < 8.0.30-6.el9_8 | 8.0.30-6.el9_8 |
| redhat/php-main(Red Hat:hummingbird:1) | < 8.5.9-1.hum1 | 8.5.9-1.hum1 |
| redhat/php(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat/php(Red Hat:rhel_els:7) | All versions | No fix listed |
| debian/php8.2(Debian:12) | < 8.2.31-1~deb12u1 | 8.2.31-1~deb12u1 |
| debian/php8.2(Debian:12) | = 8.2.10-1 | No fix listed |
Show 55 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/php8.2(Debian:12) | = 8.2.10-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.12-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.16-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.16-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.17-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.18-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.18-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.20-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.20-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.20-3 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.21-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.23-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.24-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.24-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.26-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.26-4 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.27-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.28-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.29-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.30-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.5-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.7-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.7-1.1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.7-1.2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.7-1~deb12u1 | No fix listed |
| debian/php8.4(Debian:13) | < 8.4.21-1~deb13u1 | 8.4.21-1~deb13u1 |
| debian/php8.4(Debian:13) | = 8.4.11-1 | No fix listed |
| debian/php8.4(Debian:13) | = 8.4.16-1 | No fix listed |
| debian/php8.4(Debian:13) | = 8.4.16-1~deb13u1 | No fix listed |
| debian/php8.4(Debian:13) | = 8.4.20-1 | No fix listed |
| debian/php8.4(Debian:14) | < 8.4.21-1 | 8.4.21-1 |
| debian/php8.4(Debian:14) | = 8.4.11-1 | No fix listed |
| debian/php8.4(Debian:14) | = 8.4.16-1 | No fix listed |
| debian/php8.4(Debian:14) | = 8.4.16-1~deb13u1 | No fix listed |
| debian/php8.4(Debian:14) | = 8.4.20-1 | No fix listed |
| debian/php8.4(Debian:14) | = 8.4.21-1~deb13u1 | No fix listed |
| ubuntu/php8.1(Ubuntu:22.04) | < 8.1.2-1ubuntu2.24 | 8.1.2-1ubuntu2.24 |
| alpine/php81(Alpine:v3.19) | < 8.1.34-r0 | 8.1.34-r0 |
| alpine/php82(Alpine:v3.22) | < 8.2.31-r0 | 8.2.31-r0 |
| alpine/php83(Alpine:v3.22) | < 8.3.36-r0 | 8.3.36-r0 |
| alpine/php83(Alpine:v3.23) | < 8.3.31-r0 | 8.3.31-r0 |
| alpine/php83(Alpine:v3.24) | < 8.3.31-r0 | 8.3.31-r0 |
| alpine/php84(Alpine:v3.22) | < 8.4.27-r0 | 8.4.27-r0 |
| alpine/php84(Alpine:v3.23) | < 8.4.21-r0 | 8.4.21-r0 |
| alpine/php84(Alpine:v3.24) | < 8.4.21-r0 | 8.4.21-r0 |
| alpine/php85(Alpine:v3.23) | < 8.5.6-r0 | 8.5.6-r0 |
| alpine/php85(Alpine:v3.24) | < 8.5.6-r0 | 8.5.6-r0 |
| ubuntu/php8.3(Ubuntu:24.04) | < 8.3.6-0ubuntu0.24.04.9 | 8.3.6-0ubuntu0.24.04.9 |
| ubuntu/php8.5(Ubuntu:26.04) | < 8.5.4-0ubuntu1.1 | 8.5.4-0ubuntu1.1 |
| PHP | >= 8.2.0, < 8.2.31 | 8.2.31 |
| PHP | >= 8.3.0, < 8.3.31 | 8.3.31 |
| PHP | >= 8.4.0, < 8.4.21 | 8.4.21 |
| PHP | >= 8.5.0, < 8.5.6 | 8.5.6 |
| PHP(Azure Linux:3.0) | All versions | No fix listed |
| PHP(Azure Linux:4.0) | < 0:8.4.26-5.azl4 | 0:8.4.26-5.azl4 |
References
- MSRC Security Update Guide vendor-advisory
- github.com vendor-advisory
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2468560 issue-tracking
- security.access.redhat.com
- RHSA-2026:23388 patch vendor-advisory
- RHSA-2026:22649 patch vendor-advisory
- RHSA-2026:34354 patch vendor-advisory
- RHSA-2026:22305 patch vendor-advisory
- RHSA-2026:22142 patch vendor-advisory
- RHSA-2026:22143 patch vendor-advisory
- RHSA-2026:33449 patch vendor-advisory
- RHSA-2026:47200 patch vendor-advisory
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-6722 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8336-1 vendor-advisory
- USN-8513-1 vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- Release Notes vendor-advisory