Advisory
On 08.04.2025 a security relevant correction has been released by SAP SE. The manufacturer resolves an issue within ABAP.
SAP Note 3581961 addresses "[CVE-2025-27429] Code Injection Vulnerability in SAP S/4HANA (Private Cloud or On-Premise)" to prevent code injection with a hot news risk for exploitation.
A workaround does exist, according to SAP Security Advisory team. It is advisable to implement the correction as monthly patch process, the team suggests.
Missing authority checks are still the most common security defect related to authorizations in custom code. Since SAP uses an explicit authorization model, an authority checks must be coded in order to be executed. If an explicit check is not coded, all users have access. This type of vulnerability not only exists in SAP standard it also exists in customer coding. Check your custom developments for vulnerabilities that pose a risk to your systems. SecurityBridge helps detect code vulnerabilities before they are implemented in production.
Risk specification
SAP S/4HANA, in both Private Edition and on-premise deployments, is vulnerable to exploitation by an authenticated attacker who can inject arbitrary ABAP code through an exposed function module accessible via RFC. This can lead to a complete system compromise and enable unauthorized operations across the entire system.Solution
The risk of code injection has been fully mitigated, and the application no longer permits arbitrary code execution. Circumstances exist that prevent the timely installation of a patch provided by the manufacturer. In such cases, you may consider applying the suggested workaround as a temporary or compensating mitigation: "You can block the remote access via transaction UCONCOCKPIT. However, keep in mind that you have to secure local access via transaction SE37 as well (authorization object S_DEVELOP for activity 16 and object type FUGR).".
Affected System
The advisory 3581961 describes a problem within an ABAP based systems of a specific version. Affected versions are described below. ABAP software is deployed in various software components and is widely used within the SAP product portfolio.
SAP NetWeaver Application Server (formally known as SAP Web Application Server) is a building block of SAP NetWeaver. It is the foundation for most software products developed by SAP SE. SAP NetWeaver systems exist with Java and/or ABAP stacks. The advisory could be relevant for single and dual-stack ABAP installations.
The advisory is valid for
- S4CORE 102 56
- S4CORE 103 60
- S4CORE 104 54
- S4CORE 105 43
- S4CORE 106 33
- S4CORE 107 28
- S4CORE 108 21
- 10.0 [CVE-2021-44228] Remote Code Execution vulnerability associated with Apache Log4j 2 component used in SAP Customer Checkout
- 10.0 [CVE-2021-44228] Remote Code Execution vulnerability associated with Apache Log4j 2 component used in SAP BTP Cloud Foundry
- 10.0 [CVE-2021-44228] Remote Code Execution vulnerability associated with Apache Log4j 2 component used in SAP HANA XSA
- 10.0 [CVE-2021-44228] Remote Code Execution vulnerability associated with Apache Log4j 2 component used in XSA Cockpit
- 10.0 [CVE-2021-44228] Remote Code Execution vulnerability associated with Apache Log4j 2 component used in SAP Edge Services On Premise Edition