CVE-2025-42957

Code Injection vulnerability in SAP S/4HANA (Private Cloud or On-Premise)

9.9 critical EPSS 1.66%

Published 12 Aug 2025 Updated 26 Feb 2026 CNA: sap

Description

SAP S/4HANA allows an attacker with user privileges to exploit a vulnerability in the function module exposed via RFC. This flaw enables the injection of arbitrary ABAP code into the system, bypassing essential authorization checks. This vulnerability effectively functions as a backdoor, creating the risk of full system compromise, undermining the confidentiality, integrity and availability of the system.

Severity (CVSS)

9.9 critical CVSS 3.1 from sap (CNA)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
changed: the damage reaches other components, such as the host of a container or other users
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 1.66%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 77.3% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 12 Sep 2025):

Exploitation
poc: a proof of concept is public
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

  • CWE-94 Improper Control of Generation of Code

Affected products

As the CNA lists them.

ProductVersions
SAP S/4HANA (Private Cloud or On-Premise)
affected S4CORE 102
affected 103
affected 104
affected 105
affected 106
affected 107
affected 108
Other versions: unaffected

Is my server affected?

This CVE is in SAP S/4HANA (Private Cloud or On-Premise) of SAP_SE, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.

Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.

References

Other references

Source: the record CVE-2025-42957 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.