What is SAP NetWeaver?
SAP NetWeaver is the core application platform powering SAP's enterprise software suite — the foundational layer beneath SAP ERP, S/4HANA, and countless business-critical applications. It is deployed in enterprises and government agencies worldwide for ERP, supply chain, financials, HR, and procurement. Visual Composer is a NetWeaver add-on enabling business users to build data-driven web applications without coding. The Metadata Uploader component within Visual Composer allows developers to upload metadata that defines application structures. Because SAP systems manage an organization's most sensitive business data (financials, payroll, procurement, logistics), their compromise gives an attacker access to the most critical data in the enterprise.
Overview
CVE-2025-42999 is a deserialization vulnerability (CWE-502, CVSS 9.1) in SAP NetWeaver's Visual Composer Metadata Uploader that requires high-privilege access. In isolation, it is the less severe of two companion CVEs. However, when chained with CVE-2025-31324 (an unauthenticated arbitrary file upload zero-day in the same component), the combination achieves fully unauthenticated RCE with SAP administrator privileges. Earth Lamia (a China-nexus APT) began exploiting this chain in March 2025, compromising over 580 SAP systems globally. CISA added both CVEs to the KEV catalog on 15 May 2025.
Affected Versions
| Product | Vulnerable | Fixed |
|---|---|---|
| SAP NetWeaver VCFRAMEWORK 7.50 | All builds before SAP Note 3604119 patch | Apply SAP Security Note 3604119 |
Visual Composer is enabled by default in SAP NetWeaver 2004s and later. Organizations that patched CVE-2025-31324 (the earlier unauthenticated upload flaw) still need to apply the CVE-2025-42999 patch to close the remaining deserialization risk.
Technical Details
The vulnerability (CWE-502) is in the Visual Composer Metadata Uploader component. The Metadata Uploader accepts serialized Java or proprietary object data for processing during application metadata import. The deserialization logic does not validate the content of the serialized payload before executing it, allowing a crafted payload to trigger arbitrary code execution with the privileges of the <SID>adm SAP administrator account.
In isolation (CVE-2025-42999 alone): exploitation requires the Visual Composer user role — a developer or privileged account. This is why the CVSS shows PR:H (high privileges required) and the score is 9.1 rather than 10.0.
In the attack chain (CVE-2025-31324 + CVE-2025-42999):
- CVE-2025-31324 is used to upload a malicious file (e.g., a Java serialization payload or webshell) to the SAP server without authentication — that CVE requires no credentials.
- CVE-2025-42999's deserialization logic then executes the uploaded payload when the Metadata Uploader processes it.
- The chain achieves full unauthenticated RCE as SAP
adm— complete system takeover.
This is why CISA added both CVEs simultaneously and why organizations that patched only CVE-2025-31324 remained at risk.
Discovery
Onapsis identified the chained exploitation in active incident response investigations, tracing reconnaissance activity back to January 20, 2025 and confirmed webshell deployments from March 14–31, 2025 — weeks before SAP's patch. CVE-2025-42999 was formally published by SAP on May 13, 2025.
Exploitation Context
Earth Lamia — a China-nexus APT tracked by Trend Micro with custom tooling targeting multiple industry verticals — exploited the CVE-2025-31324 + CVE-2025-42999 chain against SAP NetWeaver systems from as early as January 2025. EclecticIQ attributed a widespread scanning and exploitation campaign to China-nexus threat actors, with over 581 critical SAP systems reported compromised globally across government agencies, utilities, manufacturers, and financial institutions. Ransomware operators subsequently incorporated the exploit chain after it became public. CISA mandated a 21-day federal remediation deadline.
Remediation
- Apply SAP Security Note 3604119 immediately — requires an SAP S-User login to download. This is the patch for CVE-2025-42999. Follow SAP's installation guide for your NetWeaver version.
- Also apply the CVE-2025-31324 patch (SAP Note 3594142) if not already done — both patches are required to fully close the attack chain.
- Disable Visual Composer if it is not actively used — this eliminates both CVEs' attack surface entirely. In SAP NetWeaver Configuration Manager, set
vc/enabled=false. - Hunt for webshells: search the Visual Composer application directory (
/usr/sap/<SID>/J<instance>/j2ee/cluster/apps/sap.com/vc70runtime/) for unexpected.jspor.classfiles. - Review SAP audit logs for unexpected
<SID>admcommand executions, particularly OS-level commands run from the J2EE stack. - Contact Onapsis or your SAP partner for forensic guidance — specialized SAP forensics expertise is needed for thorough investigation given the depth of access an
admcompromise provides.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2025-42999 |
| Vendor / Product | SAP — NetWeaver |
| NVD Published | 2025-05-13 |
| NVD Last Modified | 2025-10-31 |
| CVSS 3.1 Score | 9.1 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| Severity | CRITICAL |
| CWE | CWE-502 find similar ↗ |
| CISA KEV Added | 2025-05-15 |
| CISA KEV Deadline | 2025-06-05 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2025-01-20 | Earth Lamia begins reconnaissance of SAP NetWeaver systems (Onapsis threat intelligence) |
| 2025-03-14 | First confirmed webshell deployments via CVE-2025-31324 (companion unauthenticated upload zero-day) |
| 2025-03-31 | Sustained CVE-2025-31324 exploitation wave ends; Earth Lamia shifts to post-exploitation |
| 2025-05-13 | SAP Security Note 3604119 published; CVE-2025-42999 formally assigned |
| 2025-05-15 | CISA adds both CVE-2025-31324 and CVE-2025-42999 to KEV catalog |
| 2025-06-05 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| SAP Security Note 3604119 (login required) | Vendor Advisory |
| Onapsis — SAP NetWeaver CVE-2025-31324 / CVE-2025-42999 Threat Research | Security Research |
| NVD — CVE-2025-42999 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |
| Arctic Wolf — Follow-Up CVE-2025-42999 | Security Research |
| Trend Micro — Earth Lamia Threat Actor Research | Security Research |
| China-Linked APTs Exploit SAP CVE-2025-31324 / CVE-2025-42999 | News |