CVE-2025-42944: Unauthenticated Java Deserialization RCE in SAP NetWeaver AS Java (RMI-P4)
HERMES
HERMES THREAT SCORE & ERP CORE EXPOSURE
Target:SAP NetWeaver Application Server Java 7.50 (RMI-P4) Confidence: 98%
96 / 100
Dimension Breakdown
Exploitability 20 / 20
Threat Activity 18 / 20
Weaponization 19 / 20
Exposure 18 / 20
Prevalence 19 / 20
Impact 20 / 20
Exploit Maturity 18 / 20
Attack Chain Potential 20 / 20
Divergence & Operational Rationale
Hermes assesses CVE-2025-42944 at a critical HTS of 96 (CRITICAL SEVERITY). This unauthenticated deserialization flaw on port P4 (5xx04) enables arbitrary code execution with administrative rights (<sid>adm), allowing immediate lateral movement to core financial databases and complete enterprise ERP compromise.
🕸️ Connected Knowledge Graph & Provenance
CVE-2025-42944: Unauthenticated Java Deserialization RCE in SAP NetWeaver AS Java (RMI-P4)VULNERABILITY
Connected Nodes: 2
Active Relationships (Outgoing)
→ affectsPRODUCTMicrosoft Windows & Windows Server
98% VERY_HIGH
Software platform affected by security vulnerabilities and agentic attack patterns.
🔍 Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in Microsoft Windows & Windows Server documented in Hermes dossier.”
Supporting Verified Evidence:
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
→ usesATTACK TECHNIQUET1059: Command and Scripting Interpreter
90% VERY_HIGH
Adversaries abuse command and script interpreters (Bash, Python, PowerShell) to execute arbitrary commands.
🔍 Why is this related? (Evidence & Provenance)
“Attack execution telemetry aligns with MITRE ATT&CK technique T1059.”
Supporting Verified Evidence:
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
1. Identification
Section titled “1. Identification”| Parameter | Technical Specification | Operational Impact |
|---|---|---|
| CVE Identifier | CVE-2025-42944 | Official NVD / MITRE record |
| Associated CWE | CWE-502: Deserialization of Untrusted Data | Unrestricted Java deserialization over P4 protocol |
| CVSS v3.1 Score | 10.0 CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| CVSS v4.0 Score | 9.8 CRITICAL | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
| Applicable CPEs | cpe:2.3:a:sap:netweaver_application_server_java:7.50:*:*:*:*:*:*:* | Enterprise SAP NetWeaver Java application servers |
| Affected Versions | SAP NetWeaver SERVERCORE 7.50 | Any SAP NetWeaver Java deployment exposing P4 ports |
| Fixed Versions | SAP Notes 3634501 and 3660659 (August 2025) | SAP Security Patch Day updates |
2. Exploitation
Section titled “2. Exploitation”- CISA KEV: Not currently listed in KEV (actively monitored by threat hunting teams).
- EPSS Score: 0.02893 (Percentile: 86.1%).
- Operational Status: Weaponization verified; public exploit scripts target P4 default ports (50004, 50104, 50204).
- PoC & Weaponization: Java gadget chains tailored to the SAP classpath injected directly into the initial P4 handshake.
- Access Conditions: Pre-authentication; direct network access to P4 port (default
5<instance>04/tcp); low complexity.
3. Threat Intelligence
Section titled “3. Threat Intelligence”- Threat Actors: Industrial espionage APTs, ransomware affiliates (LockBit, BlackCat/ALPHV), and initial access brokers.
- Observed Campaigns: Wide internet and internal network scanning probing for exposed SAP P4 daemons.
- Associated Malware: SAP webshells, Java memory implants, and HANA database credential dumpers.
- Exploitation Timeline: Released on August 12, 2025, with prompt technical analysis from ERP cybersecurity firms.
4. Detection & Forensic Triage
Section titled “4. Detection & Forensic Triage”Indicators of Compromise (IOCs)
Section titled “Indicators of Compromise (IOCs)”- Suspicious P4 Traffic: Influx of serialized Java byte sequences starting with
0xACED0005directed to ports50004-59904. - Anomalous Process Lineage: SAP Java runner processes (
jstart,jlaunch) spawning shell interpreters (/bin/sh,/bin/bash,powershell.exe).
Sigma Rule
Section titled “Sigma Rule”title: Command Execution from SAP NetWeaver Process (CVE-2025-42944)id: c4e78a22-4294-4d91-8822-112233445566status: testdescription: Detects interactive shells or download utilities spawned by SAP Java application server processesreferences: - https://me.sap.com/notes/3634501author: Hermes Codex Researchdate: 2026-09-10logsource: category: process_creation product: linuxdetection: selection: ParentProcessName|endswith: - '/jstart' - '/jlaunch' Image|endswith: - '/sh' - '/bash' - '/python' - '/perl' - '/curl' - '/wget' condition: selectionfalsepositives: - Legitimate SAP maintenance scripts invoked during administrative maintenance windowslevel: criticalYARA Signature
Section titled “YARA Signature”rule Exploit_SAP_P4_Deserialization_CVE_2025_42944 { meta: description = "Detects P4 exploit packets containing Java serialization stream headers" author = "Hermes Codex Research" date = "2026-09-10" reference = "CVE-2025-42944" strings: $p4_magic = { 50 34 00 00 } // P4 protocol header $java_ser = { AC ED 00 05 } // Java Serialization Header $gadget1 = "org.apache.commons.collections" ascii $gadget2 = "java.lang.reflect.InvocationHandler" ascii condition: ($p4_magic at 0 or $java_ser) and ($gadget1 or $gadget2)}Suricata / Snort Signature
Section titled “Suricata / Snort Signature”alert tcp $EXTERNAL_NET any -> $SAP_SERVERS [50004:59904] (msg:"HERMES - SAP NetWeaver P4 Java Deserialization Exploit (CVE-2025-42944)"; flow:to_server,established; content:"|AC ED 00 05|"; classtype:attempted-admin; sid:202542944; rev:1;)Logs & Forensic Artifacts
Section titled “Logs & Forensic Artifacts”- SAP Security Logs: Review traces in
/usr/sap/<SID>/<Instance>/j2ee/cluster/server0/log/defaultTrace*.trc. - SAP Audit Log (SM20): Monitor unauthorized P4 access and abnormal dynamic class loading events.
- MITRE ATT&CK: T1190 (Exploit Public-Facing Application), T1059 (Command and Scripting Interpreter), T1068 (Exploitation for Privilege Escalation), T1083 (File and Directory Discovery).
5. Remediation & Hardening
Section titled “5. Remediation & Hardening”- Apply Official SAP Notes: Deploy SAP Notes 3634501 and 3660659 using Software Update Manager (SUM).
- Full SAP Instance Restart: Restart the Java application server (
stopsapfollowed bystartsap) to ensure updated classes take effect. - Isolate P4 Protocol Ports: Strictly restrict TCP ports
5xx04and5xx08at boundary firewalls to internal management networks. - Transition to P4S: Enforce TLS encryption and mutual certificate authentication for all internal P4 communications.
- System Integrity Audit: Search for unexpected
.jspfiles or modified binaries in/tmpand/usr/sap/<SID>/tmp.
6. Enterprise Impact Scenario
Section titled “6. Enterprise Impact Scenario””What happens if this vulnerability is exploited in an enterprise?”
Section titled “”What happens if this vulnerability is exploited in an enterprise?””
- Initial Unauthenticated P4 Probe: The attacker targets TCP port 50004 on an exposed enterprise SAP NetWeaver AS Java server without credentials.
- Immediate Java Deserialization: The adversary sends a crafted serialized payload. The unpatched P4 dispatcher deserializes the byte stream, executing shell commands with
sapadmor<sid>admprivileges.- Application Layer Persistence: The threat actor writes a stealthy Java webshell into the public web root, establishing persistent C2 communications.
- HANA Database Takeover: Utilizing local command line database utilities (
hdbsql) and stored connection keys (hdbuserstore), the attacker accesses core ERP data including financial records and payrolls.- Complete Enterprise Interruption: The attacker exfiltrates proprietary enterprise data, destroys live backups, and encrypts storage volumes, demanding tens of millions in ransom to restore operations.