CTIPilot
AI-generated · no human review · verify critical claims against the linked source. how it works →
← Back to Daily brief 2026-05-11
ROUTINECVE-2026-6722 +2updatedNATOA2vulnerability

CVE-2026-6722: PHP SOAP extension use-after-free in the ref_map deduplication can lead to code execution, fixed in PHP 8.2.31 to 8.5.6

A crafted SOAP envelope can make PHP reuse a freed object; PHP fixed it with two narrower SOAP flaws on 2026-05-07

Analysis

PHP 8.2.31, 8.3.31, 8.4.21 and 8.5.6, released on 2026-05-07, fix three flaws in the SOAP extension (php.watch, 2026-05-07) (PHP 8 ChangeLog). The serious one, CVE-2026-6722, is a use-after-free: ext-soap remembers decoded PHP objects in SOAP_GLOBAL(ref_map) for id/href deduplication without holding a reference, so an apache:Map with a duplicate key and an empty value frees an object while the map still points to it, and a later href reuses the freed memory, which PHP's advisory says can lead to remote code execution (PHP, GHSA-85c2-q967-79q5). The advisory includes a reproducer (PHP, GHSA-85c2-q967-79q5). PHP rates it High in that advisory, and the CVE record PHP published as the numbering authority scores it 9.5 under CVSS 4.0, with high attack complexity and attack requirements present (ENISA EUVD, EUVD-2026-28966).

The two companion flaws are narrower. CVE-2026-7261 is a use-after-free when a header handler returns false or throws while the server uses SOAP_PERSISTENCE_SESSION (PHP, GHSA-m33r-qmcv-p97q); CVE-2026-7262 is a NULL pointer dereference in the apache:Map decoder when the server has a typemap configured, a denial of service that PHP's advisory scores 6.3 under CVSS 4.0 (PHP, GHSA-hmxp-6pc4-f3vv); its CVE record scores 2.9, the same base vector with the threat metric for a public proof of concept added (ENISA EUVD, EUVD-2026-28971). No source reports exploitation.

Updates2

Correction

CVE-2026-7262 is a NULL pointer dereference that needs a typemap and causes a denial of service (PHP, GHSA-hmxp-6pc4-f3vv), and CVE-2026-7261 is a use-after-free that needs SOAP_PERSISTENCE_SESSION (PHP, GHSA-m33r-qmcv-p97q); neither was shown to give code execution. PHP's own advisory for CVE-2026-6722 includes a reproducer (PHP, GHSA-85c2-q967-79q5). The priority moves from notable to routine: no source reports exploitation, and the fix is a patch-cycle upgrade for PHP hosts.

Improvement

The CVE record for CVE-2026-7262 scores it 2.9 under CVSS 4.0, against 6.3 in PHP's advisory: the base vector is the same, and the record adds the threat metric for a public proof of concept (ENISA EUVD, EUVD-2026-28971).

Sources7

Revision history

  1. Published 2026-05-11-migrated
  2. Correction 2026-10-11T1307Z-audit

    The companion flaws were typed as unauthenticated code execution: CVE-2026-7262 is a denial of service that needs a typemap, and CVE-2026-7261 is a use-after-free that needs session persistence and whose memory PHP calls unlikely to be attacker-controlled. The deep dive's refcounting functions, vtable overwrite, claims that the bugs cover all of Apache-map handling and that a SoapServer need not be instantiated, and its web-shell history had no source. PHP rates CVE-2026-6722 High against the CNA's 9.5 with high attack complexity, and the advisory includes a reproducer. The entry is rewritten from the three advisories and the release notes with an exposure line, a rating and an ATT&CK mapping. The priority moves from notable to routine: no source reports exploitation, and the entry's own takeaway calls the fix a patch-cycle upgrade.

    Changed: title headline summary event_date priority techniques affected_products cves sources classification deep_dive deep_dive_category body

  3. Improvement 2026-10-21T0800Z-audit

    The CVE record for the typemap denial of service CVE-2026-7262 scores it 2.9 under CVSS 4.0, against 6.3 in PHP's advisory, because it adds the proof-of-concept threat metric to the same base vector; ENISA's EUVD now backs both CVE-record scores in the analysis.

    Changed: cves sources body

PROVENANCE

AI-generated · no human review · this permalink is the shareable record for the finding · verify operationally critical claims against the linked primary source.