CVE-2026-7261
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceUse-after-free vulnerability in PHP's SoapServer when configured with SOAP_PERSISTENCE_SESSION. When SOAP requests result in errors, the handler object is incorrectly freed while maintaining pointers to it, leading to memory corruption, information disclosure, or process crashes.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 8.2.0, < 8.2.31>= 8.3.0, < 8.3.31>= 8.4.0, < 8.4.21>= 8.5.0, < 8.5.6CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check installed PHP versionRun `php -v` to display the PHP version. Extract the major.minor.patch version number.Affected if The version is >= 8.2.0 and < 8.2.31, OR >= 8.3.0 and < 8.3.31, OR >= 8.4.0 and < 8.4.21, OR >= 8.5.0 and < 8.5.6
-
Verify SOAP extension is loadedRun `php -m` or `php -i` and search for the SOAP module in the output.Affected if The SOAP extension is listed as loaded
-
Identify SoapServer configurations using persistenceSearch PHP source code files for `new SoapServer` calls and examine the options array. Look for the `persistence` option set to `SOAP_PERSISTENCE_SESSION`.Affected if Code instantiates SoapServer with the `persistence` option set to `SOAP_PERSISTENCE_SESSION`
-
Check for SOAP request handlers in productionReview web server configuration and application code to identify endpoints that route to SOAP services using session persistence.Affected if The application exposes SOAP endpoints that utilize SOAP_PERSISTENCE_SESSION and accept external requests
You are affected if your PHP version falls within the vulnerable ranges AND your application uses the SOAP extension with SOAP_PERSISTENCE_SESSION enabled for handling requests that may produce errors.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped8.2.318.3.318.4.21
Upgrade PHP to version 8.2.31, 8.3.31, 8.4.21, or 8.5.6 or later. If immediate upgrade is not feasible, avoid using SOAP_PERSISTENCE_SESSION or implement robust error handling to prevent error conditions in SOAP requests.
Upgrade to PHP 8.2.31+, 8.3.31+, 8.4.21+, or 8.5.6+ (preferably the latest available in your current branch)
- 1. Identify the current PHP version by running 'php -v' on the server
- 2. Determine which PHP branch is in use (8.2.x, 8.3.x, 8.4.x, or 8.5.x)
- 3. If using a package manager (apt, yum, dnf, apk), update to the latest available version in the current branch
- 4. For example, on Debian/Ubuntu: 'apt update && apt install php8.3' (adjust version number as needed)
- 5. On RHEL/CentOS: 'dnf update php-*' or 'yum update php-*'
- 6. Alternatively, download the latest version from windows.php.net for Windows or use a version manager like 'phpbrew' or 'brew' on macOS
- 7. After upgrading, verify the new version: 'php -v'
- 8. Ensure the installed version is at or above 8.2.31, 8.3.31, 8.4.21, or 8.5.6
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing6.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,416.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-7261 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-7261 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data