Status: Fixed by SAP. This advisory covers four SAP flaws from 2025. CVE-2025-31324 (SAP NetWeaver Visual Composer, CVSS 10.0 from SAP) and CVE-2025-42999 (the same component, CVSS 9.1 from SAP) were exploited in the wild and are both in CISA's Known Exploited Vulnerabilities (KEV) catalog (dates below). CVE-2025-42957 (SAP S/4HANA, CVSS 9.9 from SAP) was reported exploited by SecurityBridge. CVE-2025-42944 (SAP NetWeaver AS Java RMI-P4, CVSS 10.0 from SAP) was patched on September 9, 2025, with no exploitation reported in the sources below. Sources: SAP Security Patch Day 2025 bulletin and the CISA KEV feed (catalogVersion 2026.11.18, checked November 19, 2026).
Executive Summary
SAP NetWeaver and SAP S/4HANA run finance, supply chain and HR processes for large enterprises, so a flaw in either is a business risk as much as an IT one. In 2025 two SAP flaws with SAP-assigned CVSS scores of 9.9 or higher were exploited in the wild, and SAP published a third, with no reported exploitation, at its September 2025 Patch Day.
The NetWeaver case is the most serious. CVE-2025-31324 is a missing authorization check in the Visual Composer Metadata Uploader that lets an unauthenticated attacker upload executable files to the server (NVD). SAP shipped an emergency fix on April 24, 2025 (Onapsis), two days after ReliaQuest publicly reported the exploitation it had investigated (ReliaQuest). EclecticIQ assesses with high confidence that China-nexus nation-state groups exploited it against critical infrastructure networks in April 2025 (EclecticIQ). A follow-on flaw in the same component, CVE-2025-42999, was fixed on May 13, 2025.
The S/4HANA case is CVE-2025-42957, an ABAP code injection that a user with low privileges can trigger through a remotely callable function module. SAP fixed it on August 12, 2025, and SecurityBridge reported on September 4, 2025 that it had verified exploitation in the wild, while noting that widespread exploitation had not been reported (SecurityBridge).
Technical Information
CVE-2025-31324, NetWeaver Visual Composer upload. SAP describes the Visual Composer Metadata Uploader as "not protected with a proper authorization, allowing unauthenticated agent to upload potentially malicious executable binaries" (NVD). SAP, as the CNA, scores it CVSS 3.1 10.0. NVD's own analysis scores it 9.8. The weakness is CWE-434 (unrestricted file upload). ReliaQuest traced the incidents it investigated to the /developmentserver/metadatauploader endpoint, where attackers planted JSP web shells that they then used to run commands (ReliaQuest). Onapsis notes that Visual Composer is not installed by default but is broadly enabled (Onapsis).
CVE-2025-42999, NetWeaver Visual Composer deserialization. In the same component, a privileged user can upload content that is deserialized and can compromise the host (NVD). SAP scores it CVSS 3.1 9.1. Onapsis says SAP released the fix based on forensic information Onapsis Research Labs shared. ReliaQuest reported in an August 15, 2025 update that a publicly shared exploit chains it with CVE-2025-31324, using the deserialization step to run code in memory and leave fewer artifacts on disk.
CVE-2025-42957, S/4HANA ABAP code injection. SAP's description: an attacker "with user privileges" can exploit a function module exposed via RFC to inject arbitrary ABAP code, "bypassing essential authorization checks" (NVD). SAP scores it CVSS 3.1 9.9, and the weakness is CWE-94 (code injection). SecurityBridge, which reported the flaw to SAP on June 27, 2025, names the module as /SLOAE/DEPLOY and says the only authorization check is on object S_DMIS, so a low-privileged account can be enough. It lists the possible impact as creating users with SAP_ALL, reading or changing database tables, and running operating system commands (SecurityBridge technical write-up). This flaw needs a valid SAP login. It is not an authentication bypass.
CVE-2025-42944, NetWeaver AS Java RMI-P4. SAP's description: an unauthenticated attacker can submit a malicious payload to an open RMI-P4 port, and deserialization of the untrusted Java objects "could lead to arbitrary OS command execution" (NVD). SAP scores it CVSS 3.1 10.0, and the weakness is CWE-502. SAP fixed it at the September 9, 2025 Patch Day alongside two other NetWeaver notes it rated Critical, CVE-2025-42922 (CVSS 9.9) and CVE-2025-42958 (CVSS 9.1) (SAP).
Exploitation and Attribution
- CISA KEV: CVE-2025-31324 is in CISA's Known Exploited Vulnerabilities (KEV) catalog, added April 29, 2025, with a federal due date of May 20, 2025. CVE-2025-42999 is in CISA's Known Exploited Vulnerabilities (KEV) catalog, added May 15, 2025, with a federal due date of June 5, 2025. CISA lists known ransomware campaign use as "Known" for both entries.
- CVE-2025-42957 and KEV: CVE-2025-42957 is not in CISA's KEV catalog (catalogVersion 2026.11.18, checked November 19, 2026).
- CVE-2025-42944 and KEV: CVE-2025-42944 is not in CISA's KEV catalog (catalogVersion 2026.11.18, checked November 19, 2026).
- Timeline for CVE-2025-31324 (Onapsis): Onapsis reports reconnaissance against this flaw in its honeypots from January 20, 2025 and exploitation attempts after February 10, 2025, and says some organizations reported web shells deployed between March 14 and March 31, 2025. Onapsis also cites Mandiant's first known exploitation, found through incident response, on March 12, 2025. ReliaQuest published its findings on April 22, 2025, and SAP released the fix on April 24, 2025.
- China-nexus groups (EclecticIQ): EclecticIQ links the NetWeaver intrusions it observed to UNC5221, UNC5174 and CL-STA-0048, based on tradecraft. Separately, it reports that exposed infrastructure of an uncategorized China-nexus actor listed victims including natural gas distribution networks and water and waste utilities in the United Kingdom, medical device manufacturers and upstream oil and gas companies in the United States, and government ministries in Saudi Arabia.
- Ransomware operators (ReliaQuest): In a May 14, 2025 update, ReliaQuest assessed with moderate confidence that the BianLian group was involved in at least one incident, and reported a separate incident where PipeMagic, a backdoor it links to RansomEXX, was deployed.
- CVE-2025-42957 (SecurityBridge): SecurityBridge says it "has verified actual abuse of this vulnerability" and that widespread exploitation had not been reported. It did not name an actor.
- CVE-2025-42944: No exploitation or attribution has been reported in the sources reviewed for this advisory.
None of these sources links the 2025 SAP activity to APT28 or APT29.
Affected Product Versions
| CVE | Product and component | Affected versions (SAP) | SAP Security Note |
|---|---|---|---|
| CVE-2025-31324 | SAP NetWeaver (Visual Composer development server) | VCFRAMEWORK 7.50 | 3594142 (April 24, 2025) |
| CVE-2025-42999 | SAP NetWeaver (Visual Composer development server) | VCFRAMEWORK 7.50 | 3604119 (May 13, 2025) |
| CVE-2025-42957 | SAP S/4HANA (Private Cloud or On-Premise) | S4CORE 102, 103, 104, 105, 106, 107, 108 | 3627998 (August 12, 2025); SecurityBridge also names 3633838 |
| CVE-2025-42944 | SAP NetWeaver AS Java (RMI-P4) | SERVERCORE 7.50 | 3634501 (September 9, 2025); hardening note 3660659 (October 14, 2025) |
Versions and note numbers come from SAP's 2025 Patch Day bulletin and SAP's CVE records. SAP's bulletin lists Note 3660659 (October 14, 2025 Patch Day, Critical, CVSS 10.0) as security hardening for CVE-2025-42944, and the NVD record also references SAP Note 3670067. SAP Security Notes require an SAP support login, and we have not read their contents here. SecurityBridge, which reported CVE-2025-42957 to SAP, tells administrators to apply the August 2025 Notes 3627998 and 3633838. SAP's bulletin lists Note 3633838 as CVE-2025-42950, a code injection flaw in SAP Landscape Transformation (Analysis Platform) rated Critical, CVSS 9.9, for DMIS 2011_1_700, 2011_1_710, 2011_1_730, 2011_1_731, 2011_1_752 and 2020, published at the same August 12, 2025 Patch Day. CVE-2025-42950 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog (catalogVersion 2026.11.18, checked November 19, 2026).
Indicators of Compromise
- CVE-2025-31324 and CVE-2025-42999 (ReliaQuest, first-party): unauthenticated requests to /developmentserver/metadatauploader, and JSP files such as helper.jsp and cache.jsp, or randomly named JSP files, under j2ee/cluster/apps/sap.com/irj/servlet_jsp/irj/root/. ReliaQuest also lists the servlet_jsp/irj/work and servlet_jsp/irj/work/sync directories as locations to check. ReliaQuest advises treating any JSP, Java or class file found in the affected directories as potentially malicious. Its full and dated indicator list is in the ReliaQuest post.
- China-nexus activity (EclecticIQ): EclecticIQ publishes the web shell names, file paths and network infrastructure it observed in April and May 2025 in its report. Network indicators from 2025 may since have been reassigned, so use them for retrospective hunting rather than blocking.
- Onapsis and Mandiant: Onapsis describes an open-source indicator of compromise scanner for these two CVEs, built with Mandiant, in its post.
- CVE-2025-42957: none published. SecurityBridge advises watching for suspicious RFC calls, new admin users and unexpected ABAP code changes (SecurityBridge).
- CVE-2025-42944: none published.
Workaround and Mitigation
- Patch (SAP): apply SAP Security Notes 3594142 and 3604119 for Visual Composer, 3627998 for S/4HANA, 3633838 for SAP Landscape Transformation (SAP's bulletin lists DMIS 2011_1_700 to 2020; SecurityBridge recommends it alongside 3627998, so check every system with DMIS installed, not only S/4HANA, Rescana's guidance), and 3634501 for RMI-P4. Onapsis says Visual Composer remediation starts with 3594142 and also needs the subsequent Notes 3660659 and 3604119, which SAP released at its standard Patch Days; SAP's bulletin lists 3660659 (October 14, 2025) as security hardening for CVE-2025-42944. Patching CVE-2025-31324 alone is not enough.
- If Visual Composer cannot be patched (Onapsis, citing SAP): Onapsis reports that SAP updated SAP Note 3593336 on April 30, 2025 with "Option 0", complete removal of the Visual Composer metadata upload application, and on May 12, 2025 marked the earlier options 1 and 2 "Do Not Use". Confirm the current workaround in the SAP Note itself.
- Set the JVM serial filter and restart (Onapsis, for Note 3660659): applying the notes is not the whole step. Onapsis says to open the NetWeaver Administrator (NWA), go to Configuration, Infrastructure, Java System Properties, select the active template and open System VM Parameters. Add a parameter named jdk.serialFilter and set it to the exact list of restricted classes and packages given in Note 3660659, then restart the system so the Java virtual machine enforces the filter. The note needs an SAP support login and we have not read it, so we do not reproduce the list. Set it on the template used by every instance and server node, and test the filter outside production first, because a wrong value can stop applications that deserialize legitimately (Rescana's guidance).
- S/4HANA hardening (SecurityBridge): consider SAP UCON to restrict RFC usage, and review and restrict authorization object S_DMIS with activity 02.
- RMI-P4 exposure (Rescana's guidance): confirm that P4 and P4S ports on NetWeaver AS Java are not reachable from the internet and are limited to trusted internal systems.
- Exposure management (Rescana's guidance): keep SAP Java and ABAP application servers off the public internet unless a business process requires it, and add SAP Patch Day to your monthly patch cycle with a shorter target for notes SAP rates Critical.
Hunt and Respond
Patching does not remove a web shell that was planted before the fix. Use these steps on any system that ran Visual Composer while it could be reached; sources are marked on each step.
- Find Visual Composer (Onapsis): on each Java system, open the NetWeaver AS Java home page, then System Information, then the Components Info tab, and look for VISUAL COMPOSER FRAMEWORK or VCFRAMEWORK. If either is listed, the system has the affected component.
- Run SAP's compromise check (SAP Note 3596125, as described by Onapsis): Note 3596125 is SAP's FAQ for the first fix. Its check is to look in the irj/servlet_jsp/irj/root, irj/servlet_jsp/irj/work and irj/servlet_jsp/irj/work/sync directories for jsp, java or class files. Onapsis says their presence means an attacker used the flaw to upload files, and the system should be treated as compromised and handled under your incident response plan. We have not read the note itself.
- A clean file check is not proof (Onapsis): Onapsis warns that living-off-the-land compromise and persistence without web shells is possible, and reports that from May 31, 2025 attackers used deserialization to create web shells directly. Check the logs as well as the files.
- Search the logs back to January 2025 (Onapsis and ReliaQuest): look in HTTP access logs for GET, POST or HEAD requests to /developmentserver/metadatauploader, which Onapsis says attackers used, and for requests to JSP files under /irj/, such as /irj/helper.jsp, /irj/cache.jsp or randomly named ones; Onapsis lists the known web shells by those /irj/ paths. ReliaQuest saw attackers upload web shells with POST requests and run them with GET requests. Onapsis also advises checking the Java trace files for unauthorized deserialization activity, commands run unexpectedly under the SAP system administrator account (the SID followed by adm), and access to the SecStore.properties file. Onapsis saw reconnaissance against this flaw from January 20, 2025. Onapsis notes that SAP's request logging records little detail of these requests, so a quiet log is not proof either.
- Check the host for follow-on tooling (ReliaQuest and Rescana's guidance): in one incident ReliaQuest saw attackers use the web shell to compile code with MSBuild, run Brute Ratel and inject into dllhost.exe on a Windows server. Look for the SAP Java process, or a command it runs, starting command interpreters or build tools such as cmd, sh, PowerShell or MSBuild (Rescana's guidance).
- If you find a hit (Rescana's guidance): isolate the host, keep the logs and copies of the files, rotate the SAP system administrator and service credentials and anything held in the SAP secure store, rebuild the system rather than cleaning it where you can, and check the systems it connects to for lateral movement. Removing the web shell alone does not close the way in, so apply the patches and the serial filter above before the system goes back into service.
Third-Party Risk: Questions for Your Vendors
Suppliers that run SAP for their own finance and logistics, or host SAP on your behalf, carry these flaws into your supply chain. Rescana suggests asking suppliers that run or host SAP:
- Have you applied SAP Security Notes 3594142, 3604119, 3627998, 3633838, 3634501 and 3660659, and set jdk.serialFilter as Note 3660659 describes and restarted, or confirmed that the components are not installed?
- Did you check for web shells under the Visual Composer paths, going back to January 2025, and what did you find?
- Are any SAP Java, P4 or RFC interfaces reachable from the internet, and who can reach them?
- How do you restrict RFC access and S_DMIS authorizations on S/4HANA systems that process our data?
Prioritize suppliers whose SAP systems hold your orders, invoices or personal data. Treat answers as claims to check and ask for evidence such as a patch report. Our platform tracks supplier exposure and follows up on open findings until they close.
Need help working through suppliers that run SAP? Our team can help you prioritize them and track their answers. Talk to an expert
Sources
- SAP: SAP Security Patch Day bulletin 2025 (April, May, August, September and October 2025 entries).
- NVD: CVE-2025-31324, CVE-2025-42999, CVE-2025-42957, CVE-2025-42944, CVE-2025-42950.
- CISA KEV catalog JSON feed (catalogVersion 2026.11.18, checked November 19, 2026): CVE-2025-31324 added April 29, 2025; CVE-2025-42999 added May 15, 2025.
- CISA: CISA Adds Three Known Exploited Vulnerabilities to Catalog (May 15, 2025).
- ReliaQuest: ReliaQuest Uncovers Vulnerability Behind SAP NetWeaver Compromise (April 22, 2025, with later updates).
- Onapsis: CVE-2025-31324 and CVE-2025-42999 Explained.
- EclecticIQ: China-Nexus Nation State Actors Exploit SAP NetWeaver (CVE-2025-31324) to Target Critical Infrastructures (May 13, 2025).
- SecurityBridge: Critical SAP S/4HANA code injection vulnerability (CVE-2025-42957) exploited in the wild (September 4, 2025) and CVE-2025-42957: SAP Remote Code Execution.



