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

- Severity: Critical 9.5 (CVSS:4.0, scored by php) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.12%, higher than 67% of CVEs (2026-12-02)
- Published: 2026-05-10T04:19:15.288Z
- Modified: 2026-11-11T02:56:07.895Z
- Also known as: BIT-LIBPHP-2026-6722, BIT-PHP-2026-6722, BIT-PHP-MIN-2026-6722, GHSA-85c2-q967-79q5
- Weaknesses: CWE-416, CWE-825
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- soap: from 8.2.* before 8.2.31; from 8.3.* before 8.3.31; from 8.4.* before 8.4.21; from 8.5.* before 8.5.6
- php8.4: no versions given (not affected: from 0:8.4.21-1.el10_2 before *)
- php: no versions given (not affected: from 0:8.3.31-1.el10_2 before *; from 0:8.0.30-6.el9_8 before *)
- php:8.2: no versions given (not affected: from 8100020260521052503.f7998665 before *; from 9080020260521080715.9 before *)
- php:7.4: no versions given (not affected: from 8100020260604072603.f7998665 before *)
- php:8.3: no versions given (not affected: from 9080020260521113736.9 before *)
- php php: from 8.2.0 before 8.2.31; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6
- libphp (Bitnami): from 8.2.0 before 8.2.31; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6
- php (Bitnami): from 8.2.0 before 8.2.31; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6
- php-min (Bitnami): from 8.2.0 before 8.2.31; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6

## Every score

- php: CVSS:4.0 9.5 Critical `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`
- redhat-SADP: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/php/php-src/security/advisories/GHSA-85c2-q967-79q5> (advisory, vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-6722> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2468560> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6722.json> (web)
- <https://access.redhat.com/errata/RHSA-2026:23388> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:22649> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:34354> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:22305> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:22142> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:22143> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2026:33449> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6722> (web)

## Sources

- CVE List: [CVE-2026-6722](https://www.cve.org/CVERecord?id=CVE-2026-6722), CVE Terms of Use, modified 2026-07-23
- NVD: [CVE-2026-6722](https://nvd.nist.gov/vuln/detail/CVE-2026-6722), Public domain, modified 2026-07-24
- Bitnami Vulnerability Database: [BIT-LIBPHP-2026-6722](https://osv.dev/vulnerability/BIT-LIBPHP-2026-6722), Apache-2.0, modified 2026-11-11
- Bitnami Vulnerability Database: [BIT-PHP-2026-6722](https://osv.dev/vulnerability/BIT-PHP-2026-6722), Apache-2.0, modified 2026-11-11
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2026-6722](https://osv.dev/vulnerability/BIT-PHP-MIN-2026-6722), Apache-2.0, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-6722 · Whole record: https://cve.day/CVE-2026-6722.json · Rebuilt by cve.day 2026-11-25T22:59:21.165Z
