CVE-2026-7261: CWE-416 Use after free in PHP Group PHP
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.
AI Analysis
Technical Summary
This vulnerability arises from incorrect persistence handling of the SoapServer handler object when SOAP_PERSISTENCE_SESSION is used. Specifically, if a SOAP request results in an error, the object is freed but a pointer to it remains, causing a use-after-free condition. Affected PHP versions include 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 vulnerability is tracked as CWE-416 and has a CVSS 4.0 base score of 6.3, indicating medium severity.
Potential Impact
Successful exploitation may lead to memory corruption, which can cause information disclosure or process crashes. This affects the confidentiality, integrity, and availability of the affected PHP environment. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround is indicated in the provided data. Users should monitor PHP Group advisories for updates and apply patches once available.
CVE-2026-7261: CWE-416 Use after free in PHP Group PHP
Description
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.
CVSS v4.0
Score 6.3medium
Affected software
pkg:github/php/php-srcRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises from incorrect persistence handling of the SoapServer handler object when SOAP_PERSISTENCE_SESSION is used. Specifically, if a SOAP request results in an error, the object is freed but a pointer to it remains, causing a use-after-free condition. Affected PHP versions include 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 vulnerability is tracked as CWE-416 and has a CVSS 4.0 base score of 6.3, indicating medium severity.
Potential Impact
Successful exploitation may lead to memory corruption, which can cause information disclosure or process crashes. This affects the confidentiality, integrity, and availability of the affected PHP environment. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround is indicated in the provided data. Users should monitor PHP Group advisories for updates and apply patches once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- php
- Date Reserved
- 2026-04-28T05:08:46.198Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a000b48cbff5d861022ac77
Added to database: 05/10/2026, 04:36:24 UTC
Last enriched: 05/17/2026, 10:50:01 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 190
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.