Monitor vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.4

PHP SOAP Extension Pointer Leak in PHP Versions 8.2 to 8.5

UBUNTU-CVE-2026-6722
Summary

The PHP SOAP extension has a bug that can allow an attacker to execute malicious code on your server. This is a serious issue because it can be exploited remotely, without requiring direct access to your server. To fix this issue, update your PHP version to a patched version (8.2.31 or later, 8.3.31 or later, 8.4.21 or later, or 8.5.6 or later).

What to do

No fix is available yet. Check with your software vendor for updates.

Affected software
Ecosystem VendorProductAffected versions
Ubuntu:Pro:14.04:LTS canonical php5 All versions
Ubuntu:Pro:16.04:LTS canonical php7.0 All versions
Ubuntu:Pro:18.04:LTS canonical php7.2 All versions
Ubuntu:Pro:20.04:LTS canonical php7.4 All versions
Ubuntu:22.04:LTS canonical php8.1 All versions
Ubuntu:24.04:LTS canonical php8.3 All versions
Ubuntu:25.10 canonical php8.4 All versions
Ubuntu:26.04:LTS canonical php8.5 All versions
Original title
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...
Original 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.
osv CVSS4.0 9.4
osv CVSS3.1 9.8
Published: 10 May 2026 · Updated: 26 May 2026 · First seen: 26 May 2026