CVE-2026-6722
A flaw in the SOAP extension of certain PHP versions allows for a memory error known as a 'use-after-free.' This occurs when the system incorrectly manages how it tracks objects in memory, potentially allowing an attacker to take control of the application.
An official fix is available, so this entry is kept for 30 days and then removed automatically.
Who is affected
Users running PHP versions 8.2.x (before 8.2.31), 8.3.x (before 8.3.31), 8.4.x (before 8.4.21), or 8.5.x (before 8.5.6) that have the SOAP extension enabled.
Real-world impact
An attacker could send a specially crafted SOAP request to a server running affected PHP versions to execute arbitrary code remotely, potentially taking full control of the system.
Why this severity
The critical score reflects that an attacker can achieve remote code execution without needing special privileges or user interaction, though the attack requires high complexity.
What to do about it
- 01Upgrade PHP to version 8.2.31 or later.
- 02Upgrade PHP to version 8.3.31 or later.
- 03Upgrade PHP to version 8.4.21 or later.
- 04Upgrade PHP to version 8.5.6 or later.
NVD-referenced vendor advisory
Timeline
- May 10, 2026 · May 10, 2026PublishedDisclosed and added to the National Vulnerability Database.
- Jul 24, 2026 · 12d agoAdvisory updatedThe NVD record was last revised.
- Jul 26, 2026 · 10d agoOfficial fix availableA vendor patch or mitigation now exists — see the remediation steps above.
How it’s attacked
References & advisories
- github.com/php/php-src/security/adviso…vendor advisory
- access.redhat.com/errata/RHSA-2026:22142
- access.redhat.com/errata/RHSA-2026:22143
- access.redhat.com/errata/RHSA-2026:22305
- access.redhat.com/errata/RHSA-2026:22649
- access.redhat.com/errata/RHSA-2026:23388
- access.redhat.com/errata/RHSA-2026:33449
- access.redhat.com/errata/RHSA-2026:34354
- access.redhat.com/security/cve/CVE-2026-6722
- bugzilla.redhat.com/show_bug.cgi
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2…