Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.5%top 61%

CVE-2026-6722: CWE-416 Use After Free in PHP Group PHP

0
Critical
VulnerabilityCVE-2026-6722cvecve-2026-6722cwe-416
Published: 05/10/2026 (05/10/2026, 04:19:15 UTC)
Source: CVE Database V5
Vendor/Project: PHP Group
Product: PHP

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.

CVSS v4.0

Score 9.5critical

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
High
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

Affected software

GitHub Actionsmore threats →ai
php/php-src
pkg:github/php/php-src
Affected versions
<8.2.31<8.3.31<8.4.21<8.5.6

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/17/2026, 10:08:07 UTC

Technical Analysis

This vulnerability involves a use-after-free condition in the PHP SOAP extension's object deduplication mechanism. Specifically, when processing an apache:Map node with duplicate keys, the second entry overwrites the first in a temporary result map, freeing the original PHP object but leaving a stale pointer. Subsequent href references can copy this dangling pointer, and because PHP string allocations may reuse the freed memory, an attacker can exploit this to execute arbitrary code remotely. Affected PHP versions include 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 vulnerability is tracked as CWE-416 (Use After Free) and carries a CVSS 4.0 score of 9.5, reflecting its critical impact.

Potential Impact

Successful exploitation allows remote code execution by an attacker who can control the SOAP request body. This can lead to full compromise of the affected PHP environment. The vulnerability affects multiple recent PHP versions, increasing the potential attack surface. No known exploits in the wild have been reported at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or remediation level is provided, users should monitor PHP Group advisories closely. Until a fix is available, consider disabling the SOAP extension if it is not required or applying other environment-specific mitigations to limit exposure to untrusted SOAP requests.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
php
Date Reserved
2026-04-20T19:39:59.836Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a000b48cbff5d861022ac6b

Added to database: 05/10/2026, 04:36:24 UTC

Last enriched: 05/17/2026, 10:08:07 UTC

Last updated: 06/27/2026, 08:51:20 UTC

Views: 338

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses