Skip to main content
Vulnerability Database/CVE-2025-42993

CVE-2025-42993: SAP S/4HANA Privilege Escalation Vulnerability

CVE-2025-42993 is a privilege escalation flaw in SAP S/4HANA Enterprise Event Enablement allowing attackers to execute code with high privileges. This article covers the technical details, security impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-42993 Overview

CVE-2025-42993 is a missing authorization vulnerability [CWE-862] in SAP S/4HANA's Enterprise Event Enablement component. An attacker with access to the Inbound Binding Configuration can create a Remote Function Call (RFC) destination and assign an arbitrary high-privilege user to it. Consuming events through that RFC destination then executes code under the privileges of the assigned account. The flaw affects confidentiality and integrity significantly, with a lower impact on availability.

Critical Impact

An authenticated attacker can escalate privileges by binding a high-privilege user to a self-created RFC destination, leading to code execution within SAP S/4HANA business processes.

Affected Products

  • SAP S/4HANA (Enterprise Event Enablement component)
  • Systems exposing the Inbound Binding Configuration to non-administrative users
  • Refer to SAP Note #3580384 for the full list of affected releases

Discovery Timeline

  • 2025-06-10 - CVE-2025-42993 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-42993

Vulnerability Analysis

The Enterprise Event Enablement framework in SAP S/4HANA brokers event-driven integration between SAP and external messaging systems. Inbound events are routed through RFC destinations that specify the user context under which event handlers execute. The Inbound Binding Configuration interface allows administrators to create and bind these RFC destinations to service users.

The vulnerable component fails to verify whether the caller is authorized to assign a specific user to an RFC destination. An attacker who already possesses access to the Inbound Binding Configuration can therefore bind a privileged account, such as a background or administrative user, to a destination they control. When the destination consumes a subsequent inbound event, the associated ABAP code executes under the elevated identity, bypassing standard SAP authorization checks.

The outcome is a vertical privilege escalation that converts limited configuration access into code execution in a high-privilege context, directly affecting the confidentiality and integrity of business data processed by S/4HANA.

Root Cause

The root cause is a missing authorization check [CWE-862] in the Inbound Binding Configuration logic. The code path accepts a user assignment parameter without validating that the current session holds the authorization object required to grant that identity to an RFC destination.

Attack Vector

Exploitation requires network access to the SAP system and an authenticated session with privileges to modify the Inbound Binding Configuration. No user interaction is required. The attacker creates or modifies an RFC destination, assigns a high-privilege user, and then triggers event consumption to execute code under the chosen identity. Technical details are referenced in SAP Note #3580384.

No verified public proof-of-concept code is available at the time of writing.

Detection Methods for CVE-2025-42993

Indicators of Compromise

  • Creation or modification of RFC destinations tied to Enterprise Event Enablement by non-administrative users
  • RFC destinations configured with service or background users that were not previously associated with event bindings
  • Unexpected event consumption activity executing under high-privilege accounts such as SAP*, DDIC, or custom RFC service users
  • Changes to Inbound Binding Configuration outside of change-management windows

Detection Strategies

  • Audit SAP change logs (SM19/RSAU_CONFIG) for modifications to RFC destination tables such as RFCDES and event binding configuration tables
  • Correlate RFC destination creation events with the user who performed the action and the user assigned to the destination
  • Alert when a user without administrative authorization objects (S_RFC_ADM, S_RFCACL) attempts to bind privileged accounts to RFC destinations

Monitoring Recommendations

  • Forward SAP Security Audit Log entries to a centralized SIEM for behavioral analysis of RFC and event binding activity
  • Baseline normal event consumption patterns and alert on new or unusual RFC destinations invoking privileged function modules
  • Review user assignments on all Enterprise Event Enablement inbound bindings on a recurring schedule

How to Mitigate CVE-2025-42993

Immediate Actions Required

  • Apply the SAP security patch referenced in SAP Note #3580384 as soon as possible
  • Review all existing Inbound Binding Configuration entries and remove unauthorized or unexpected RFC destinations
  • Restrict access to the Inbound Binding Configuration to a minimal set of trusted administrators
  • Rotate credentials for any high-privilege service users that may have been bound to attacker-controlled RFC destinations

Patch Information

SAP addressed CVE-2025-42993 as part of its monthly SAP Security Patch Day release. Customers should install the fix described in SAP Note #3580384 and consult the SAP Security Patch Day portal for guidance on applicable support packages and patch levels for their S/4HANA release.

Workarounds

  • Remove the authorization objects that grant non-administrative users the ability to modify Inbound Binding Configuration until the patch is applied
  • Limit which users can be assigned to RFC destinations by enforcing stricter role design around S_RFC_ADM and related objects
  • Monitor and alert on any changes to Enterprise Event Enablement bindings while the patch rollout is pending
bash
# Review Security Audit Log configuration and recent RFC destination changes in SAP GUI
# Transaction codes for manual verification:
#   RSAU_CONFIG   - Configure Security Audit Log filters for RFC and user administration events
#   RSAU_READ_LOG - Review audit log entries for RFC destination creation/modification
#   SM59          - Inspect RFC destinations and the users assigned to them
#   SOAMANAGER    - Review Enterprise Event Enablement inbound bindings

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.