Description · from the CVE record
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.
Affected
ProductAffectedFixed inSource
PHP8.2.* – < 8.2.318.2.31CNA
PHP8.3.* – < 8.3.318.3.31CNA
PHP8.4.* – < 8.4.218.4.21CNA
PHP8.5.* – < 8.5.68.5.6CNA
Red Hat Enterprise Linux 10see advisory0:8.4.21-1.el10_2redhat-SADP
Red Hat Enterprise Linux 10see advisory0:8.3.31-1.el10_2redhat-SADP
Red Hat Enterprise Linux 8see advisory8100020260521052503.f7998665redhat-SADP
Red Hat Enterprise Linux 8see advisory8100020260604072603.f7998665redhat-SADP
Red Hat Enterprise Linux 9see advisory9080020260521113736.9redhat-SADP
Red Hat Enterprise Linux 9see advisory9080020260521080715.9redhat-SADP
Red Hat Enterprise Linux 9see advisory0:8.0.30-6.el9_8redhat-SADP
Red Hat Enterprise Linux 6see advisory–redhat-SADP
Scores by source
NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
php (CNA)9.5CVSS: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 (CNA)7.7CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
CISA ADPSSVCExploitation: none · Automatable: no · Technical impact: total