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

24 Jul 2026, 08:10

Type Values Removed Values Added
Summary
  • (es) En versiones de PHP 8.2.* anteriores a 8.2.31, 8.3.* anteriores a 8.3.31, 8.4.* anteriores a 8.4.21 y 8.5.* anteriores a 8.5.6, el mecanismo de deduplicación de objetos de la extensión SOAP almacena punteros a objetos PHP en un mapa global sin incrementar sus recuentos de referencia. Cuando un nodo apache:Map contiene claves duplicadas, el procesamiento de la segunda entrada sobrescribe la primera en el mapa de resultados temporal, liberando el objeto PHP original mientras su puntero obsoleto permanece en el mapa. Una referencia href posterior al nodo liberado puede copiar el puntero colgante en el resultado. Como las asignaciones de cadenas de PHP pueden reclamar la región de memoria liberada, un atacante con control sobre el cuerpo de la solicitud SOAP puede explotar este uso después de liberación para lograr ejecución remota de código.

22 Jul 2026, 12:18

Type Values Removed Values Added
References
  • () https://access.redhat.com/errata/RHSA-2026:22142 -
  • () https://access.redhat.com/errata/RHSA-2026:22143 -
  • () https://access.redhat.com/errata/RHSA-2026:22305 -
  • () https://access.redhat.com/errata/RHSA-2026:22649 -
  • () https://access.redhat.com/errata/RHSA-2026:23388 -

02 Jul 2026, 12:17

Type Values Removed Values Added
References
  • () https://access.redhat.com/errata/RHSA-2026:34354 -

01 Jul 2026, 13:17

Type Values Removed Values Added
References
  • () https://access.redhat.com/errata/RHSA-2026:33449 -

30 Jun 2026, 03:21

Type Values Removed Values Added
References
  • () https://access.redhat.com/security/cve/CVE-2026-6722 -
  • () https://bugzilla.redhat.com/show_bug.cgi?id=2468560 -
  • () https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6722.json -
CWE CWE-825

12 May 2026, 17:48

Type Values Removed Values Added
First Time Php
Php php
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8
CPE cpe:2.3:a: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-07-24 08:10


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

CWE-825

Expired Pointer Dereference