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

Critical 9.9 Published Updated

Attackers with user privileges can inject arbitrary ABAP code via RFC, bypassing authorization checks to achieve full system compromise.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-42957?

CVE-2025-42957 is a critical code injection vulnerability in SAP_SE SAP S/4HANA (Private Cloud or On-Premise), published on 12 Aug 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-94

Which versions are affected by CVE-2025-42957?

How do I fix CVE-2025-42957?

No fix has been published for CVE-2025-42957 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-42957 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-42957 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-2c3g-27ww-4q84.

Is CVE-2025-42957 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free