{"vuln_id":"CVE-2026-6722","aliases":["CVE-2025-14179","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7568","CVE-2026-12184","CVE-2026-6104","CVE-2026-7263","GHSA-85c2-q967-79q5"],"description":"php8.2 - security update","published_at":"2026-05-07T12:56:25Z","modified_at":"2026-11-20T01:28:47.348275Z","first_seen_at":"2026-11-21T19:15:06.060471Z","severity":"critical","severity_source":"cvss","cvss_score":9.8,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-416"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00894,"epss_percentile":0.60375,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-6722"},"matched_alias":null,"items":[{"id":11922,"source":{"id":"debian13-php","name":"Debian 13 php8.4 (package vulnerabilities)"},"title":"php8.4 (Debian:13): DEBIAN-CVE-2026-6722 / CVE-2026-6722 - 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 stor…","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.\n\nAffected: Debian:12:php8.2, Debian:13:php8.4, Debian:14:php8.4\n\nFixed in: 8.4.21-1~deb13u1, 8.4.21-1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-6722","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-6722","published_at":"2026-05-10T05:16:11.070000Z","updated_at":"2026-10-01T03:03:31.958401Z","fetched_at":"2026-11-22T13:39:48.366401Z","severity":"critical","cvss_score":9.8,"epss":0.00894,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.4","vuln_id":"CVE-2026-6722","vuln_ids":["CVE-2025-14179","CVE-2026-12184","CVE-2026-6104","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568","DEBIAN-CVE-2026-6722","GHSA-85C2-Q967-79Q5"],"tags":["package-watch","pkg:php8.4","stack","debian13","fix-available"],"cluster_id":342,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11922","html":"https://vulnwatch.ve1ve2.com/item/11922"}},{"id":527,"source":{"id":"debian-php","name":"Debian 12 php8.2 (package vulnerabilities)"},"title":"php8.2 (Debian:12): DEBIAN-CVE-2026-6722 / CVE-2026-6722 - 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 stor…","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.\n\nAffected: Debian:12:php8.2, Debian:13:php8.4, Debian:14:php8.4\n\nFixed in: 8.2.31-1~deb12u1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-6722","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-6722","published_at":"2026-05-10T05:16:11.070000Z","updated_at":"2026-10-01T03:03:31.958401Z","fetched_at":"2026-11-21T19:15:05.963794Z","severity":"critical","cvss_score":9.8,"epss":0.00894,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.2","vuln_id":"CVE-2026-6722","vuln_ids":["CVE-2025-14179","CVE-2026-12184","CVE-2026-6104","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568","DEBIAN-CVE-2026-6722","GHSA-85C2-Q967-79Q5"],"tags":["package-watch","pkg:php8.2","fix-available"],"cluster_id":342,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/527","html":"https://vulnwatch.ve1ve2.com/item/527"}},{"id":11892,"source":{"id":"debian13-php","name":"Debian 13 php8.4 (package vulnerabilities)"},"title":"php8.4 (Debian:13): DSA-6256-1 / CVE-2025-14179 - php8.4 - security update","summary":"Affected: Debian:13:php8.4\n\nFixed in: 8.4.21-1~deb13u1","url":"https://osv.dev/vulnerability/DSA-6256-1","published_at":"2026-05-08T00:00:00Z","updated_at":"2026-11-20T01:28:47.348275Z","fetched_at":"2026-11-22T13:39:48.366361Z","severity":"critical","cvss_score":9.8,"epss":0.00894,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.4","vuln_id":"CVE-2025-14179","vuln_ids":["CVE-2025-14179","CVE-2026-12184","CVE-2026-6104","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568","DSA-6256-1","GHSA-4JHR-8W89-J733","GHSA-74R9-QXHC-FX53","GHSA-7QG2-V9FJ-4MWV","GHSA-85C2-Q967-79Q5","GHSA-96WQ-48VP-HH57","GHSA-HMXP-6PC4-F3VV","GHSA-M33R-QMCV-P97Q","GHSA-M8RR-4C36-8GQ4","GHSA-MHMQ-MMQJ-2V39","GHSA-W476-322C-WPVM","GHSA-WM6J-2649-PV75"],"tags":["package-watch","pkg:php8.4","stack","debian13","fix-available"],"cluster_id":341,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11892","html":"https://vulnwatch.ve1ve2.com/item/11892"}},{"id":475,"source":{"id":"debian-php","name":"Debian 12 php8.2 (package vulnerabilities)"},"title":"php8.2 (Debian:12): DSA-6255-1 / CVE-2025-14179 - php8.2 - security update","summary":"Affected: Debian:12:php8.2\n\nFixed in: 8.2.31-1~deb12u1","url":"https://osv.dev/vulnerability/DSA-6255-1","published_at":"2026-05-08T00:00:00Z","updated_at":"2026-11-20T01:28:41.955854Z","fetched_at":"2026-11-21T19:15:05.963717Z","severity":"critical","cvss_score":9.8,"epss":0.00894,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.2","vuln_id":"CVE-2025-14179","vuln_ids":["CVE-2025-14179","CVE-2026-12184","CVE-2026-6104","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568","DSA-6255-1","GHSA-7QG2-V9FJ-4MWV","GHSA-85C2-Q967-79Q5","GHSA-96WQ-48VP-HH57","GHSA-HMXP-6PC4-F3VV","GHSA-M33R-QMCV-P97Q","GHSA-M8RR-4C36-8GQ4","GHSA-W476-322C-WPVM","GHSA-WM6J-2649-PV75"],"tags":["package-watch","pkg:php8.2","fix-available"],"cluster_id":341,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/475","html":"https://vulnwatch.ve1ve2.com/item/475"}},{"id":12643,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-85c2-q967-79q5 / CVE-2026-6722: Use-After-Free in SOAP using Apache map with Remote Code Execution","summary":"Use-After-Free in SOAP using Apache map with Remote Code Execution ext-soap supports deduplicating objects in the XML graph through `id` and `href`. When traversing the XML graph, ext-soap will remember all plain PHP objects using the hash map `SOAP_GLOBAL(ref_map)`, where the pointer to the libxml2 node acts as a key, and the PHP object as a value. This happens in `soap_add_xml_ref()`. https://github.com/php/php-src/blob/dcf653339c245e25ea319248d0fc071a9405d688/ext/soap/php_encoding.c#L349-L354 Crucially, the reference count of the PHP object is _not_ increased. Normally this is not a problem, as all objects in the XML graph are stored in the resulting object graph and cannot be freed. `soap_check_xml_ref()` does the opposite of `soap_add_xml_ref()`; it will check whether some libxml2 node as already been evaluated and stored in `SOAP_GLOBAL(ref_map)`. https://github.com/php/php-src/blob/dcf653339c245e25ea319248d0fc071a9405d688/ext/soap/php_encoding.c#L331-L347 The Apache map offers a mechanism to free objects between these two points by overwriting existing map entries. ```php class Handler { public function test($map, $stale) { global $result; $result = $stale; } } $envelope = <<<'XML' somekey Stale somekey XML; $s = new SoapServer(null, ['uri' => 'urn:a']); $s->setClass(Handler::class); $s->handle($envelope); var_dump($result); ``` This example will: - evaluate the `map` node - evaluate the `Stale` object, which includes calling calling `soap_add_xml_ref()` to remember it in `SOAP_GLOBAL(ref_map)` - add the resulting object to a temporary map, which will be the result of the Apache map node - overwrite the object immediately with `NULL` for the `` with an empty ``, releasing the `Stale` object only strongly referenced by the temporary map, with the reference in `SOAP_GLOBAL(ref_map)` becoming stale - have `` refer to this stale pointer within `SOAP_GLOBAL(ref_map)`, reusing the freed memory After this code, `$result` will refer to the stale memory where `Stale` was previously allocated. The attacker has high control over this memory segment by subsequently allocating plain strings, leading to Remote Code Execution. The solution is straight forward, namely increase the reference c Affected packages: php:ext-soap Patched: ext-soap 8.2.31, ext-soap 8.3.31, ext-soap 8.4.21, ext-soap 8.5.6","url":"https://github.com/php/php-src/security/advisories/GHSA-85c2-q967-79q5","published_at":"2026-05-07T12:56:25Z","updated_at":"2026-05-07T12:56:25Z","fetched_at":"2026-11-22T14:05:37.431183Z","severity":"critical","cvss_score":9.8,"epss":0.00894,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"ext-soap","vuln_id":"CVE-2026-6722","vuln_ids":["CVE-2025-14179","CVE-2026-12184","CVE-2026-6104","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568","GHSA-85C2-Q967-79Q5"],"tags":["repo-advisory","php","CWE-416","security","repo:php/php-src","stack"],"cluster_id":11751,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12643","html":"https://vulnwatch.ve1ve2.com/item/12643"}}]}