EXPOSURES › CVE-2026-7261
CVE-2026-7261
CRITICALA use-after-free vulnerability in PHP's SoapServer allows memory corruption and information disclosure when SOAP requests fail under session persistence.
This critical CVE affects PHP versions 8.2 through 8.5, enabling memory corruption and information disclosure via a use-after-free flaw in the SoapServer component. DIB organizations must patch PHP immediately to prevent potential data exfiltration or system compromise, as the vulnerability impacts confidentiality, integrity, and availability.
Shame score — A critical CVSS 9.8 vulnerability in a widely used programming language that could lead to memory corruption and information disclosure, though not actively exploited in the wild yet.
▸ RECOMMENDED ACTION Critical severity — schedule patching of the affected products.
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, when SoapServer is configured with SOAP_PERSISTENCE_SESSION, the handler object is persisted across requests via session storage. However, in the case SOAP requests results in an error, the persistance is handled incorrectly, resulting in freeing the object while keeping a pointer to it, which may lead to use-after-free. This may lead to memory corruption, information disclosure, or process crashes, with confidentiality, integrity, and availability impact on the vulnerable system.