Critical JNDI Injection (CVE‑2025‑42884) in SAP NetWeaver Enterprise Portal Allows Unauthenticated Data Disclosure
What It Is — The Cybersecurity and Infrastructure Security Agency (CISA) added CVE‑2025‑42884 to its Known Exploited Vulnerabilities (KEV) catalog on 23 Oct 2025. The flaw resides in SAP NetWeaver Enterprise Portal (EP), a core component of the SAP NetWeaver Application Server that delivers web‑based portals, collaboration tools, and integration services for SAP‑centric enterprises.
The vulnerability is classified as an Improper Neutralization of Special Elements in Data Query Logic (commonly referred to as an injection flaw). An attacker can supply a crafted URL or JNDI (Java Naming and Directory Interface) environment property that is processed by the portal’s internal JNDI lookup routine. Because the portal does not adequately sanitize special characters, the malicious input is interpreted as part of the lookup query, allowing the attacker to influence the JNDI operation.
Unauthenticated exploitation – No valid credentials are required. By sending a specially‑formed HTTP request to the EP server, the attacker triggers the vulnerable code path. The JNDI lookup resolves to attacker‑controlled resources (e.g., an LDAP server under the attacker’s control) and returns data that the portal then incorporates into its response or internal configuration. This can lead to disclosure of server configuration details, environment variables, or other sensitive metadata. In more advanced scenarios, the attacker may inject objects that cause the portal to write or modify server‑side files, effectively altering the system’s state.
The impact is information leakage and potential integrity compromise. While the CVE description does not explicitly state remote code execution, the ability to modify server information can serve as a foothold for further privilege‑escalation attacks, especially in environments where NetWeaver EP integrates with downstream SAP modules or custom business logic.
Affected products — SAP NetWeaver Enterprise Portal 7.x and earlier releases that include the vulnerable JNDI lookup implementation. SAP’s security advisory (SAP Note 3112345) lists the exact build numbers; organizations running on‑premise or private‑cloud deployments of NetWeaver EP should verify their patch level immediately.
Detection — The exploit leaves observable traces in server logs: repeated JNDI lookup failures, unusual LDAP queries, or HTTP requests containing encoded JNDI strings (e.g., ldap:// or rmi:// payloads). Security Information and Event Management (SIEM) solutions that ingest NetWeaver logs can flag these patterns. SAP’s own “Security Optimization Service” also provides a diagnostic script to enumerate vulnerable configurations.
Mitigation — SAP has released a security patch (SAP Note 3112345) that introduces strict input validation on JNDI‑related parameters and disables insecure lookup mechanisms by default. Recommended steps:
- Apply the SAP‑provided patch to all NetWeaver EP instances no later than 30 days after the advisory release.
- Review and harden JNDI configuration: disable external JNDI providers unless explicitly required, and restrict LDAP/RMI endpoints to trusted networks.
- Implement runtime monitoring for JNDI activity; alert on any outbound connections to non‑whitelisted directories.
- Conduct a code‑review of any custom portal extensions that accept user‑supplied URLs or parameters, ensuring proper sanitization.
- Perform a targeted penetration test focused on injection vectors to confirm remediation.
Why It Matters for Trust & Control Assurance — This flaw tests the control objective of secure input handling and validation—a foundational element across most governance frameworks (e.g., NIST CSF Protect). Demonstrating that your organization enforces rigorous input‑validation controls and maintains continuous evidence of remediation directly supports audit readiness and reduces the likelihood of data‑exposure incidents.
Recommended Actions —
- Verify your NetWeaver EP version against SAP’s advisory and apply the patch immediately.
- Enable logging of JNDI lookup activity and integrate those logs into your SIEM for continuous monitoring.
- Update your secure‑development policy to require sanitization of all external inputs, and capture evidence of compliance for audit purposes.
Source: CISA KEV – CVE‑2025‑42884