CVE-2026-6722: Use-After-Free in SOAP using Apache map

CVE-2026-6722 affects 221 listed versions of PHP in the Dawnsentry catalogue.

9.8CVSS critical
None knownexploitation
1%EPSS (next 30 days)
10 May 2026published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

PHP

221 of 250 listed versions are affected. Fixed in 8.5.6, 8.4.21, 8.3.31, 8.2.31. The newest release, 8.6.0, is not affected.

8.5.5 8.5.4 8.5.3 8.5.2 8.5.1 8.5.0 8.4.20 8.4.19 8.4.18 8.4.17 8.4.16 8.4.15 8.4.14 8.3.30 8.3.29 8.3.28 8.3.27 8.3.26 8.3.25 8.3.24 8.3.23 8.3.22 8.2.30 8.2.29 8.2.28 8.2.27 8.2.26 8.2.25 8.2.24 8.2.23 8.2.22 8.1.34 8.1.33 8.1.32 8.1.31 8.1.30 8.1.29 8.1.28 8.1.27 8.1.26 8.1.25 8.1.24 8.1.23 8.1.22 8.1.21 8.1.20 8.0.30 8.0.29 8.0.28 8.0.27 8.0.26 8.0.25 8.0.24 8.0.23 8.0.22 8.0.21 8.0.20 8.0.19 8.0.18 8.0.17 and 161 more

What it is

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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by Php on 10 May 2026. Last changed 24 July 2026.

Sources

Check one version you run: look CVE-2026-6722 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.