{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-6722",
"assignerOrgId": "dd77f84a-d19a-4638-8c3d-a322d820ed2b",
"state": "PUBLISHED",
"assignerShortName": "php",
"dateReserved": "2026-04-20T19:39:59.836Z",
"datePublished": "2026-05-10T04:19:15.288Z",
"dateUpdated": "2026-05-10T04:19:15.288Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "dd77f84a-d19a-4638-8c3d-a322d820ed2b",
"shortName": "php",
"dateUpdated": "2026-05-10T04:19:15.288Z"
},
"title": "Use-After-Free in SOAP using Apache map",
"datePublic": "2026-05-07T00:00:00.000Z",
"problemTypes": [
{
"descriptions": [
{
"lang": "en",
"cweId": "CWE-416",
"description": "CWE-416 Use After Free",
"type": "CWE"
}
]
}
],
"affected": [
{
"vendor": "PHP Group",
"product": "PHP",
"packageName": "soap",
"versions": [
{
"status": "affected",
"version": "8.2.*",
"lessThan": "8.2.31",
"versionType": "semver"
},
{
"status": "affected",
"version": "8.3.*",
"lessThan": "8.3.31",
"versionType": "semver"
},
{
"status": "affected",
"version": "8.4.*",
"lessThan": "8.4.21",
"versionType": "semver"
},
{
"status": "affected",
"version": "8.5.*",
"lessThan": "8.5.6",
"versionType": "semver"
}
],
"defaultStatus": "affected"
}
],
"descriptions": [
{
"lang": "en",
"value": "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.",
"supportingMedia": [
{
"type": "text/html",
"base64": false,
"value": "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."
}
]
}
],
"references": [
{
"url": "https://github.com/php/php-src/security/advisories/GHSA-85c2-q967-79q5",
"tags": [
"vendor-advisory"
]
}
],
"metrics": [
{
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
],
"cvssV4_0": {
"attackVector": "NETWORK",
"attackComplexity": "HIGH",
"attackRequirements": "PRESENT",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"vulnConfidentialityImpact": "HIGH",
"subConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "HIGH",
"subIntegrityImpact": "HIGH",
"vulnAvailabilityImpact": "HIGH",
"subAvailabilityImpact": "HIGH",
"exploitMaturity": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"Automatable": "YES",
"Recovery": "NOT_DEFINED",
"valueDensity": "NOT_DEFINED",
"vulnerabilityResponseEffort": "MODERATE",
"providerUrgency": "RED",
"version": "4.0",
"baseSeverity": "CRITICAL",
"baseScore": 9.5,
"vectorString": "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"
}
}
],
"credits": [
{
"lang": "en",
"value": "brettgervasoni",
"type": "reporter"
},
{
"lang": "en",
"value": "Ilija Tovilo",
"type": "remediation developer"
},
{
"lang": "en",
"value": "Nora Dossche",
"type": "remediation reviewer"
}
],
"source": {
"advisory": "GHSA-85c2-q967-79q5",
"discovery": "EXTERNAL"
},
"x_generator": {
"engine": "Vulnogram 0.2.0"
}
}
}
}