CVE-2026-6722 json
Use-After-Free in SOAP using Apache map
published 2026-05-07 6 mo ago modified 2026-09-08 2 mo ago also BIT-libphp-2026-6722 , BIT-php-2026-6722 , BIT-php-min-2026-6722 , EUVD-2026-28966 , GHSA-85c2-q967-79q5
- cvss
- 7.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 59%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami libphp 8.2.31, 8.3.31, 8.4.21, 8.5.6
- bitnami php 8.2.31, 8.3.31, 8.4.21, 8.5.6
- bitnami php-min 8.2.31, 8.3.31, 8.4.21, 8.5.6
- PHP Group PHP 8.2.31, 8.3.31, 8.4.21, 8.5.6
- Red Hat Red Hat Enterprise Linux 10 0:8.3.31-1.el10_2, 0:8.4.21-1.el10_2
- Red Hat Red Hat Enterprise Linux 8 8100020260521052503.f7998665, 8100020260604072603.f7998665
- Red Hat Red Hat Enterprise Linux 9 0:8.0.30-6.el9_8, 9080020260521080715.9, 9080020260521113736.9
- php8.2 Debian 12 8.2.31-1~deb12u1
- php8.4 Debian 13 8.4.21-1~deb13u1
- php8.4 Debian 14 8.4.21-1
debian advisories DEBIAN-CVE-2026-6722
- php8.1 Ubuntu 22.04 LTS 8.1.2-1ubuntu2.24
- php8.3 Ubuntu 24.04 LTS 8.3.6-0ubuntu0.24.04.9
- php8.4 Ubuntu 25.10 8.4.11-1ubuntu1.2
- php8.5 Ubuntu 26.04 LTS 8.5.4-0ubuntu1.1
- php7.0 Ubuntu Pro 16.04 LTS 7.0.33-0ubuntu0.16.04.16+esm19
ubuntu advisories UBUNTU-CVE-2026-6722
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- php hummingbird 1 8.5.9-1.hum1
- php-gd hummingbird 1 8.5.9-1.hum1
- php-cli hummingbird 1 8.5.9-1.hum1
- php-dba hummingbird 1 8.5.9-1.hum1
- php-dbg hummingbird 1 8.5.9-1.hum1
- php-ffi hummingbird 1 8.5.9-1.hum1
- php-fpm hummingbird 1 8.5.9-1.hum1
- php-gmp hummingbird 1 8.5.9-1.hum1
red hat advisories RHSA-2026:47200RHSA-2026:34354RHSA-2026:33449RHSA-2026:23388RHSA-2026:22649RHSA-2026:22305
- php8 openSUSE Tumbleweed 8.5.6-1.1
opensuse advisories openSUSE-SU-2026:10747-1
- php AlmaLinux 8 7.4.33-4.module_el8.10.0+4209+2ed16ff0
- libzip AlmaLinux 8 1.6.1-1.module_el8.6.0+3239+bedf0508
- libzip AlmaLinux 8 1.6.1-1.module_el8.6.0+2750+78feabcb
- libzip AlmaLinux 8 1.6.1-1.module_el8.10.0+3935+28808425
- php-gd AlmaLinux 8 7.4.33-4.module_el8.10.0+4209+2ed16ff0
- php-cli AlmaLinux 8 7.4.33-4.module_el8.10.0+4209+2ed16ff0
- php-dba AlmaLinux 8 7.4.33-4.module_el8.10.0+4209+2ed16ff0
- php-dbg AlmaLinux 8 7.4.33-4.module_el8.10.0+4209+2ed16ff0
almalinux advisories ALSA-2026:34354ALSA-2026:33449ALSA-2026:23388ALSA-2026:22649ALSA-2026:22142ALSA-2026:22143
- php Rocky Linux 9 8.0.30-6.el9_8
- libzip Rocky Linux 8 1.6.1-1.module+el8.10.0+1604+6558efc7
- libzip Rocky Linux 8 1.6.1-1.module+el8.10.0+1912+72767185
- php-pear Rocky Linux 8 1:1.10.13-1.module+el8.10.0+1604+6558efc7
- php-pear Rocky Linux 8 1:1.10.13-1.module+el8.10.0+1605+02e07af7
- php-pear Rocky Linux 8 1:1.10.13-1.module+el8.10.0+1912+72767185
- php-pecl-rrd Rocky Linux 8 2.0.1-1.module+el8.4.0+414+2e7afcdd
- php-pecl-rrd Rocky Linux 8 2.0.1-1.module+el8.10.0+1912+72767185
rocky linux advisories RLSA-2026:33449RLSA-2026:34354
- php81 Alpine 3.19 8.1.34-r0
- php82 Alpine 3.22 8.2.31-r0
- php83 Alpine 3.22 8.3.36-r0
- php83 Alpine 3.24, Alpine 3.23 8.3.31-r0
- php84 Alpine 3.22 8.4.27-r0
- php84 Alpine 3.24, Alpine 3.23 8.4.21-r0
- php85 Alpine 3.24, Alpine 3.23 8.5.6-r0
alpine advisories ALPINE-CVE-2026-6722
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-6722 updated cvss 7.7
php: PHP SOAP extension: Remote Code Execution via use-after-free vulnerability
-
Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 moreaffected: workaround, no fix available
-
Red Hat Enterprise Linux AppStream (v. 8) php 7.4.33-4.module+el8.10.0+24352+91532d3e, php 8.2.31-1.module+el8.10.0+24323+abc2b0db, libzip 1.6.1-1.module+el8.10.0+22485+a3539972, libzip 1.7.3-1.module+el8.10.0+20770+a5eca186, php-gd 7.4.33-4.module+el8.10.0+24352+91532d3e, php-gd 8.2.31-1.module+el8.10.0+24323+abc2b0db, +60 morefixed: vendor fix RHSA-2026:34354
-
Red Hat Enterprise Linux AppStream (v. 9) php 8.0.30-6.el9_8, php-gd 8.0.30-6.el9_8, php-cli 8.0.30-6.el9_8, php-dba 8.0.30-6.el9_8, php-dbg 8.0.30-6.el9_8, php-ffi 8.0.30-6.el9_8, +77 morefixed: vendor fix RHSA-2026:22142
-
Red Hat Enterprise Linux AppStream (v. 10) php 8.3.31-1.el10_2, php-gd 8.3.31-1.el10_2, php8.4 8.4.21-1.el10_2, php-cli 8.3.31-1.el10_2, php-dba 8.3.31-1.el10_2, php-dbg 8.3.31-1.el10_2, +42 morefixed: vendor fix RHSA-2026:23388
-
Red Hat Hardened Images php 8.5.9-1.hum1, php-gd 8.5.9-1.hum1, php-cli 8.5.9-1.hum1, php-dba 8.5.9-1.hum1, php-dbg 8.5.9-1.hum1, php-ffi 8.5.9-1.hum1, +21 morefixed: vendor fix RHSA-2026:47200
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 5 mo ago
Exploit prediction
0.89% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 9.5 | 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 |
| CISA ADP | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L |
| CNA | 4.0 | 9.5 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:Y/R:X/V:X/RE:M/U:Red |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | libphp | >=8.2.0, <8.2.31 >=8.3.0, <8.3.31 >=8.4.0, <8.4.21 >=8.5.0, <8.5.6 |
8.2.31 8.3.31 8.4.21 8.5.6 |
| bitnami | php | >=8.2.0, <8.2.31 >=8.3.0, <8.3.31 >=8.4.0, <8.4.21 >=8.5.0, <8.5.6 |
8.2.31 8.3.31 8.4.21 8.5.6 |
| bitnami | php-min | >=8.2.0, <8.2.31 >=8.3.0, <8.3.31 >=8.4.0, <8.4.21 >=8.5.0, <8.5.6 |
8.2.31 8.3.31 8.4.21 8.5.6 |
Affected products
- PHP Group PHP
- Red Hat Red Hat Enterprise Linux 10
- Red Hat Red Hat Enterprise Linux 8
- Red Hat Red Hat Enterprise Linux 9
- Red Hat Red Hat Enterprise Linux 6
- Red Hat Red Hat Enterprise Linux 7
Classification
- Weakness
- Technology feeds
References
-
github.com
/php/php-src/security/advisories/GHSA-85c2-q967-79q5
vendor-advisory, advisory
-
access.redhat.com
/errata/RHSA-2026:23388
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2026:22649
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2026:34354
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2026:22305
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2026:22142
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2026:22143
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2026:33449
vendor-advisory, web
-
access.redhat.com
/security/cve/CVE-2026-6722
vdb-entry, web
-
bugzilla.redhat.com
/show_bug.cgi?id=2468560
issue-tracking, web
-
security.access.redhat.com
/data/csaf/v2/vex/2026/cve-2026-6722.json
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-6722
web
Sources
- CVE List CVE-2026-6722
- NVD CVE-2026-6722
- OSV BIT-libphp-2026-6722
- OSV BIT-php-2026-6722
- OSV BIT-php-min-2026-6722
- Maintainer advisory GHSA-85c2-q967-79q5
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of php/php-src published their own advisory on GitHub. Reviewed sources take precedence over it.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.