{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-129481","assignerOrgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","state":"PUBLISHED","assignerShortName":"php","dateReserved":"2026-11-15T13:36:21.499Z","datePublished":"2026-11-19T14:43:45.078Z","dateUpdated":"2026-11-19T16:54:29.520Z"},"containers":{"cna":{"title":"Use-after-free after interrupted session shutdown","datePublic":"2026-11-19T00:00:00.000Z","descriptions":[{"lang":"en","value":"Use-after-free after interrupted session shutdown.\n\nThe session extension records the filename of the executing script when a session starts. If a fatal error occurs in an application callback while the session variables are destroyed at shutdown, such as stream_close() of a user-defined stream wrapper, the pointer is retained after the request memory is freed, and a later request handled by the same worker can free the stale string. An attacker who can trigger such a failing cleanup may crash the worker or corrupt memory; code execution has not been demonstrated. This requires the filename to be allocated in request memory, for example when the script is not cached by OPcache.\n\nThis issue affects PHP versions 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.","supportingMedia":[{"type":"text/html","base64":false,"value":"<p>Use-after-free after interrupted session shutdown.</p><p>The session extension records the filename of the executing script when a session starts. If a fatal error occurs in an application callback while the session variables are destroyed at shutdown, such as stream_close() of a user-defined stream wrapper, the pointer is retained after the request memory is freed, and a later request handled by the same worker can free the stale string. An attacker who can trigger such a failing cleanup may crash the worker or corrupt memory; code execution has not been demonstrated. This requires the filename to be allocated in request memory, for example when the script is not cached by OPcache.</p><p>This issue affects PHP versions 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.</p>"}]}],"affected":[{"vendor":"PHP Group","product":"PHP","cpes":["cpe:2.3:a:php:php:*:*:*:*:*:*:*:*"],"packageURL":"pkg:software-id/php.net/php","modules":["ext-session"],"versions":[{"version":"8.3.0","lessThan":"8.3.37","status":"affected","versionType":"semver"},{"version":"8.4.0","lessThan":"8.4.28","status":"affected","versionType":"semver"},{"version":"8.5.0","lessThan":"8.5.13","status":"affected","versionType":"semver"}],"defaultStatus":"unaffected"}],"problemTypes":[{"descriptions":[{"lang":"en","type":"CWE","cweId":"CWE-416","description":"CWE-416 Use After Free"}]},{"descriptions":[{"lang":"en","type":"CWE","cweId":"CWE-459","description":"CWE-459 Incomplete Cleanup"}]}],"impacts":[{"capecId":"CAPEC-74","descriptions":[{"lang":"en","value":"CAPEC-74 Manipulating State"}]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"version":"4.0","attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":9.2,"baseSeverity":"CRITICAL","vectorString":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-g3vh-838c-65v7","tags":["vendor-advisory"]}],"source":{"advisory":"GHSA-g3vh-838c-65v7","discovery":"UNKNOWN"},"credits":[{"lang":"en","type":"reporter","value":"Saad FELLAHI"},{"lang":"en","type":"reporter","value":"Bryan Porras"},{"lang":"en","type":"remediation developer","value":"Arnaud Le Blanc"},{"lang":"en","type":"remediation developer","value":"Jakub Zelenka"},{"lang":"en","type":"remediation reviewer","value":"Ilija Tovilo"}],"x_generator":{"engine":"php-security-response"},"providerMetadata":{"orgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","shortName":"php","dateUpdated":"2026-11-19T14:43:45.078Z"}},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-19T16:22:56.472131Z","id":"CVE-2026-129481","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-11-19T16:54:29.520Z"}}]}}