LiveActive security incident?Get immediate response
CVE Record

CVE-2026-6722: Use-After-Free in SOAP using Apache map

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, the SOAP extension's object deduplication mechanism stores pointers to PHP objects in a global map without incrementing their reference counts. When an apache:Map node contains duplicate keys, processing the second entry overwrites the first in the temporary result map, freeing the original PHP object while its stale pointer remains in the map. A subsequent href reference to the freed node can copy the dangling pointer into the result. As PHP string allocations can reclaim the freed memory region, an attacker with control over the SOAP request body can exploit this use-after-free to achieve remote code execution.

CriticalCVSS 9.5Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

A remote attacker may take control of a vulnerable PHP application if it processes attacker-controlled SOAP messages containing a specially structured Apache Map. The flaw can corrupt memory and potentially execute code without authentication or user interaction. Exposure depends on whether the PHP SOAP extension is enabled and reachable by untrusted clients.

Executive priority

Treat as an urgent, exposure-driven remediation. Patch reachable SOAP services first because successful exploitation could compromise confidentiality, integrity, and availability. Rapidly inventory affected PHP runtimes before assuming broad exposure; the attack requires specific SOAP processing conditions and active exploitation is not established by the supplied evidence.

Technical view

PHP SOAP object deduplication retains uncounted object pointers in a global map. Duplicate Apache Map keys can free an object while leaving a stale pointer. A later href reference may reuse that dangling pointer after memory reclamation, producing a use-after-free with potential remote code execution.

Likely exposure

Affected deployments run PHP 8.2 before 8.2.31, 8.3 before 8.3.31, 8.4 before 8.4.21, or 8.5 before 8.5.6, with the SOAP extension processing attacker-controlled request bodies. Systems without enabled or reachable SOAP handling are less likely exposed.

Exploitation context

The supplied CVSS 4.0 score is 9.5. Network exploitation requires no privileges or user interaction, but attack complexity is high and additional prerequisites apply. The bundle marks KEV false and provides no evidence of active exploitation or a public exploit.

Researcher notes

CWE-416 and CWE-825 describe the use-after-free and expired-pointer conditions. The important validation boundary is not PHP alone: SOAP must process attacker-controlled Apache Map content. The source bundle does not establish exploit reliability, affected application frameworks, indicators of compromise, or mitigations beyond moving to fixed releases and relevant vendor updates.

Mitigation direction

  • Upgrade to PHP 8.2.31, 8.3.31, 8.4.21, 8.5.6, or a later supported release.
  • Prioritize internet-facing services that accept untrusted SOAP request bodies.
  • If immediate upgrading is impossible, restrict untrusted access to SOAP endpoints while checking vendor guidance.
  • Apply relevant distribution security updates where PHP is supplied by an operating-system vendor.

Validation and detection

  • Inventory PHP versions and determine whether the SOAP extension is installed and enabled.
  • Identify public or partner-accessible endpoints that process SOAP request bodies.
  • Confirm deployed versions meet the fixed-version thresholds for their respective PHP branches.
  • Review vendor package advisories because distribution version numbering may differ from upstream PHP.
  • After updating, verify runtime PHP versions and retest legitimate SOAP application workflows.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-416: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · low confidence lookup

CWE-825: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-6722 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.5 (4.0)
Known Exploited
No
Published

Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/RE:M/U:Red

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

2CVSS vectors
5Timeline events
2ADP providers
12Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total

CVSS vector scores

2 official scores

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.5CVSS 4.0CriticalCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/RE:M/U:Redphp
7.7CVSS 3.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L2.25.5redhat-SADP

Vulnerability scoring details

Base CVSS 4.0 score

9.5Critical
CVSS 4.0 vector shape for CVE-2026-6722Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/RE:M/U:Red

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. ADP timelineredhat-SADP

    Made public.

  3. CVE publishedCVE Program

    The CVE record was published.

  4. ADP timelineredhat-SADP

    Reported to Red Hat.

  5. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
redhat-SADPphp: php-soap: php-src: PHP SOAP extension: Remote Code Execution via use-after-free vulnerability
other:Red Hat severity ratingcvssV3_1
  • 2026-05-10T05:00:46.220Z: Reported to Red Hat.
  • 2026-05-10T04:19:15.288Z: Made public.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
PHP GroupPHPsoap, 8.2.*, 8.3.*, 8.4.*, 8.5.*affected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-416 · source CWE mapping

Use After Free

Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

CWE-825 · source CWE mapping

Expired Pointer Dereference

Expired Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.