Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-6722— Use-After-Free in SOAP using Apache map

Quick assessment

Affected
PHP Group PHP
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

PHP是PHP开源的一种在服务器端执行的脚本语言。 PHP 8.2.31之前版本、8.3.31之前版本、8.4.21之前版本和8.5.6之前版本存在资源管理错误漏洞,该漏洞源于SOAP扩展的对象去重机制在全局映射中存储指向PHP对象的指针而未增加其引用计数,当apache:Map节点包含重复键时,处理第二个条目会覆盖第一个条目并释放原始PHP对象,而悬空指针仍保留在映射中,后续对已释放节点的href引用可能将悬空指针复制到结果中,攻击者可通过控制SOAP请求体利用此释放后重用实现远程代码执行。

CVSS 9.5 · Critical EPSS 0.89% · P57

Possible ATT&CK Techniques 1 AI

T1203 · Exploitation for Client Execution

Affected Version Matrix 4

VendorProduct Version RangeStatus
PHP Group PHP 8.2.*< 8.2.31 affected
8.3.*< 8.3.31 affected
8.4.*< 8.4.21 affected
8.5.*< 8.5.6 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-6722

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Use-After-Free in SOAP using Apache map
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/RE:M/U:Red
Source: CVE Program / CVE List V5
Vulnerability Type
释放后使用
Source: CVE Program / CVE List V5
Vulnerability Title
PHP 资源管理错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
PHP是PHP开源的一种在服务器端执行的脚本语言。 PHP 8.2.31之前版本、8.3.31之前版本、8.4.21之前版本和8.5.6之前版本存在资源管理错误漏洞,该漏洞源于SOAP扩展的对象去重机制在全局映射中存储指向PHP对象的指针而未增加其引用计数,当apache:Map节点包含重复键时,处理第二个条目会覆盖第一个条目并释放原始PHP对象,而悬空指针仍保留在映射中,后续对已释放节点的href引用可能将悬空指针复制到结果中,攻击者可通过控制SOAP请求体利用此释放后重用实现远程代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
PHP Group PHP 8.2.* ~ 8.2.31 -

II. Public POCs for CVE-2026-6722

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-6722

登录查看更多情报信息。

Vendor Advisories for CVE-2026-6722 (1)

Same Patch Batch · PHP Group · 2026-05-10 · 10 CVEs total

CVE-2026-7258 Out-of-bounds read in urldecode() on NetBSD
CVE-2026-7262 NULL pointer dereference in SOAP apache:Map decoder with missing <value>
CVE-2026-7261 SoapServer session-persisted object use-after-free via SOAP header fault
CVE-2026-7259 Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()
CVE-2026-7568 Signed integer overflow in metaphone()
CVE-2026-6735 XSS within PHP-FPM status endpoint
CVE-2025-14179 SQL injection in pdo_firebird via NUL bytes in quoted strings
CVE-2026-7263 DoS attack via DOMNode::C14N()
CVE-2026-6104 Global buffer over-read in mb_convert_encoding() with attacker-supplied encoding

IV. Related Vulnerabilities

V. Comments for CVE-2026-6722

No comments yet


Leave a comment