Vulnerabilities

CVE-2026-6722

Critical 9.8 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2026-05-10
Last modified
2026-07-24
Assigned by
security@php.net
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.9 % higher than 56 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Php Php ≥ 8.2.0, < 8.2.31 Affected
Php Php ≥ 8.3.0, < 8.3.31 Affected
Php Php ≥ 8.4.0, < 8.4.21 Affected
Php Php ≥ 8.5.0, < 8.5.6 Affected

Weakness type

  • CWE-416: Use After Free

    The 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…

  • CWE-825: Expired Pointer Dereference

    The product dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid.

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities