CVE-2026-6722

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*

History

12 May 2026, 17:48

Type Values Removed Values Added
CPE cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8
First Time Php
Php php
References () https://github.com/php/php-src/security/advisories/GHSA-85c2-q967-79q5 - () https://github.com/php/php-src/security/advisories/GHSA-85c2-q967-79q5 - Vendor Advisory

10 May 2026, 05:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-10 05:16

Updated : 2026-05-12 17:48


NVD link : CVE-2026-6722

Mitre link : CVE-2026-6722

CVE.ORG link : CVE-2026-6722


JSON object : View

Products Affected

php

  • php
CWE
CWE-416

Use After Free