CVE-2026-7261
SOAP persistence leads to use-after-free
| Publication Date | 2026-05-10 |
|---|---|
| Severity | Moderate |
| Type | Information Disclosure |
| Affected PHP Versions |
|
| Fixed Product Versions |
|
CVE Details
When SoapServer is configured with SOAP_PERSISTENCE_SESSION, the handler object is persisted across requests via session storage. However, when SOAP requests result in an error, the persistence is handled incorrectly, resulting in freeing the object while keeping a pointer to it, which leads to a use-after-free vulnerability. This can result in memory corruption, disclosure of sensitive information from memory, or process crashes.
Recommendations
Consider whether or not SOAP_PERSISTENCE_SESSION is required for your application, and disable it if not. If session persistence is required, consider implementing it via other mechanisms (e.g. using a SOAP variable to store the session identifier). Otherwise, consider updating to a patched version of PHP.