CVE-2026-7261: Use-after-free in PHP SoapServer session persistence
- Vendor
- PHP Group
CVE-2026-7261 is a use-after-free vulnerability in PHP SoapServer session persistence. It affects PHP 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, as well as affected vendor-maintained older branches. When SOAP_PERSISTENCE_SESSION is enabled, two SOAP header error paths can release the handler object while retaining its pointer in session state. These paths occur when a header handler returns false or throws an exception. Subsequent session serialization accesses the freed object, potentially causing memory corruption, information disclosure, or process crashes.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can disclose sensitive process memory, corrupt memory and compromise integrity, or crash the PHP process and cause denial of service. Exploitability depends on memory layout and object lifetime: typical deployments process one SOAP request per PHP request, limiting opportunities to control the freed allocation, while address space layout randomization adds another obstacle. Arbitrary code execution has not been established specifically for this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
No vendor-supported temporary workaround is specified. Red Hat states that no mitigation is available that meets its deployment, applicability, and stability criteria. Address space layout randomization can impede exploitation but does not eliminate the vulnerability.
Remediation
Patch, then assume compromise.
Upgrade PHP and its SOAP extension to 8.2.31, 8.3.31, 8.4.21, 8.5.6, or a later supported release for the deployed branch. For distribution-maintained PHP packages, install the vendor's applicable security update, including matching SOAP packages; older branch version numbers may contain backported fixes.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-7261 exploited in the wild?
- As of Nov 27, 2026, Mallory has no reports of CVE-2026-7261 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-7261?
- As of Nov 27, 2026, Mallory has found no public exploit for CVE-2026-7261.
- Is there a patch for CVE-2026-7261?
- Upgrade PHP and its SOAP extension to 8.2.31, 8.3.31, 8.4.21, 8.5.6, or a later supported release for the deployed branch. For distribution-maintained PHP packages, install the vendor's applicable security update, including matching SOAP packages; older branch version numbers may contain backported fixes.
- What products are affected by CVE-2026-7261?
- PHP Group Php.
- How severe is CVE-2026-7261?
- CVE-2026-7261 has a CVSS v4 score of 6.3 (Medium) and an EPSS score of 0.39% (25th percentile) as of Nov 27, 2026.
Recent activity
45 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.