CVE-2026-6722: Remote Code Execution via Use-After-Free in PHP SOAP Object Deduplication
- Vendor
- PHP Group
CVE-2026-6722 is a use-after-free vulnerability in the PHP SOAP extension's object deduplication mechanism. It affects PHP 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, with older vendor-maintained branches also receiving backported fixes. The mechanism stores PHP object pointers in a global map without incrementing their reference counts. When an apache:Map node contains duplicate keys, processing a later entry overwrites the earlier entry in the temporary result map, freeing its object while leaving a stale pointer in the deduplication map. A subsequent href reference can copy that dangling pointer into the result. PHP string allocations can reclaim the freed memory, allowing an attacker controlling the SOAP request body to achieve remote code execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary code execution with the privileges of the PHP application process, compromising application-accessible data and functionality and potentially disrupting service. On Red Hat systems configured as documented, PHP applications do not run as root, so exploitation does not inherently provide root privileges. Host resource consumption may also occur, although Red Hat assesses the availability impact as limited rather than total.
Mitigation
If you can’t patch tonight, do this now.
No validated temporary workaround is identified. Red Hat states that mitigation is unavailable or does not meet its Product Security criteria for deployment, applicability, or stability; applying the fixed packages is the supported corrective action.
Remediation
Patch, then assume compromise.
Upgrade to PHP 8.2.31, 8.3.31, 8.4.21, or 8.5.6 or a later supported release in the corresponding branch. For distribution-maintained PHP, install the vendor's fixed packages, including the SOAP extension, rather than judging affectedness solely by the upstream version number. Relevant Red Hat updates include RHSA-2026:22305 for RHEL 8 php:8.2, RHSA-2026:22143 and RHSA-2026:22142 for RHEL 9 php:8.2 and php:8.3, RHSA-2026:33449 for RHEL 9 PHP, RHSA-2026:34354 for RHEL 8 php:7.4, and RHSA-2026:101337 for RHEL 7 Extended Lifecycle Support. Use the advisory applicable to the installed product and support stream, as extended-support minor releases have separate updates. Migrate unsupported installations to a supported, patched release.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-6722 exploited in the wild?
- Yes. As of Nov 27, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2026-6722?
- As of Nov 27, 2026, Mallory has found no public exploit for CVE-2026-6722.
- Is there a patch for CVE-2026-6722?
- Upgrade to PHP 8.2.31, 8.3.31, 8.4.21, or 8.5.6 or a later supported release in the corresponding branch. For distribution-maintained PHP, install the vendor's fixed packages, including the SOAP extension, rather than judging affectedness solely by the upstream version number.
- What products are affected by CVE-2026-6722?
- PHP Group Php.
- How severe is CVE-2026-6722?
- CVE-2026-6722 has a CVSS v4 score of 9.5 (Critical) and an EPSS score of 1.1% (66th percentile) as of Nov 27, 2026.
Recent activity
51 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.