A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-42957

CVE-2025-42957: SAP S/4HANA RCE Vulnerability

CVE-2025-42957 is a remote code execution flaw in SAP S/4HANA that enables attackers to inject ABAP code and bypass authorization checks. This article covers the technical details, affected systems, and mitigation.

Updated: May 15, 2026

CVE-2025-42957 Overview

CVE-2025-42957 is a code injection vulnerability in SAP S/4HANA. An authenticated attacker with user-level privileges can exploit a function module exposed through Remote Function Call (RFC) to inject arbitrary ABAP code. The flaw bypasses authorization checks that would normally restrict privileged operations. Successful exploitation grants the attacker a persistent backdoor and full control over the affected SAP system. The vulnerability impacts confidentiality, integrity, and availability of business-critical data, including financial records, HR information, and supply chain operations. SAP addressed the issue in the August 2025 Security Patch Day release tracked under SAP Note #3627998.

Critical Impact

Authenticated attackers can inject arbitrary ABAP code through an RFC-exposed function module, bypass authorization checks, and achieve full SAP S/4HANA system compromise.

Affected Products

  • SAP S/4HANA (on-premise and private cloud editions) exposing the vulnerable RFC function module
  • ABAP application server components reachable through Remote Function Call interfaces
  • Connected SAP landscapes that trust the compromised system through RFC destinations

Discovery Timeline

  • 2025-08-12 - CVE-2025-42957 published to the National Vulnerability Database
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-42957

Vulnerability Analysis

The vulnerability is classified as Code Injection under [CWE-94]. SAP S/4HANA exposes a function module through the RFC interface that accepts attacker-controlled input and processes it as executable ABAP code. The function module fails to enforce required authorization objects before performing privileged operations. An attacker who holds any valid SAP user account can reach the RFC endpoint over the network and trigger the injection path.

Because ABAP runs inside the SAP kernel with broad access to the database and operating system layer, injected code can read or modify any table, create privileged users, execute operating system commands through SAP gateways, and disable logging. The Common Vulnerability Scoring System (CVSS) vector indicates a scope change, reflecting that exploitation moves from the application context to the entire SAP installation. The EPSS score sits at 0.15% with a percentile of 35.2, but the low complexity and high impact warrant priority remediation regardless of statistical exploitation likelihood.

Root Cause

The root cause is missing authorization enforcement inside an RFC-exposed function module combined with unsafe handling of caller-supplied parameters. The function module dynamically constructs or evaluates ABAP statements using input that is not validated or restricted to a safe grammar. Standard authority-check calls that should gate dangerous operations are absent or incorrectly implemented.

Attack Vector

The attack vector is network-based. An attacker authenticates to the SAP system as a low-privileged user, opens an RFC connection to the vulnerable function module, and submits a crafted payload. The payload causes the server to compile and execute attacker-supplied ABAP statements under the privileges of the SAP work process. From that position the attacker can create a SAP_ALL-equivalent user, extract database contents, or pivot into connected systems via trusted RFC destinations. No user interaction is required, and exploitation succeeds in a single request.

No verified public proof-of-concept code is available at the time of publication. Refer to the SAP Note #3627998 for vendor technical details.

Detection Methods for CVE-2025-42957

Indicators of Compromise

  • Unexpected RFC calls from low-privileged user accounts to function modules that perform code generation, dynamic program execution, or table maintenance
  • Creation of new SAP users with wide profiles such as SAP_ALL or SAP_NEW outside of documented change windows
  • New or modified ABAP reports, function modules, or includes authored by service or batch user IDs
  • Entries in the Security Audit Log (SM20) showing authorization failures immediately followed by successful privileged actions from the same session

Detection Strategies

  • Enable and forward the SAP Security Audit Log, RFC gateway logs, and SM19/SM20 events to a central analytics platform for correlation
  • Hunt for RFC traffic targeting the affected function module from user accounts that have no business reason to call it
  • Baseline normal RFC callers per function module and alert on first-seen caller-to-module relationships
  • Review the USR02, AGR_USERS, and USOBT_C tables for unexpected user, role, and authorization changes

Monitoring Recommendations

  • Monitor changes to the ABAP repository through transactions SE38, SE37, and SE80, and alert on transports created outside approved workflows
  • Track SAP Gateway and Message Server connections for anomalous external clients
  • Correlate authentication events with subsequent privileged ABAP execution to identify lateral movement across connected SAP systems

How to Mitigate CVE-2025-42957

Immediate Actions Required

  • Apply the SAP-supplied patch from SAP Note #3627998 on all S/4HANA systems, including non-production tiers reachable from the corporate network
  • Restrict RFC access to the vulnerable function module using UCON (Unified Connectivity) allowlists until patching completes
  • Review and reduce membership in roles that grant S_RFC authorization on the affected function group
  • Rotate credentials for technical and dialog users that may have been used during the exposure window

Patch Information

SAP released the fix as part of the August 2025 Security Patch Day. The corrective note is SAP Note #3627998. Customers should consult the SAP Security Patch Day Announcement for the full list of affected support package levels and kernel patches. Apply the note through the standard SNOTE procedure and validate that the corrected function module rejects unauthorized callers.

Workarounds

  • Use UCON to block external RFC access to the affected function module if immediate patching is not possible
  • Tighten S_RFC authorizations so only explicitly approved users and interface accounts can invoke the function group
  • Restrict network reachability of SAP application servers to trusted administrative segments using firewall rules and SAProuter access control lists
bash
# Example UCON RFC allowlist review (transaction UCONCOCKPIT)
# 1. Run UCONCOCKPIT in evaluation phase
# 2. Identify the vulnerable function module under "RFC Basic Scenario"
# 3. Remove it from the active allowlist until SAP Note #3627998 is applied
# 4. Re-enable only after patch verification and authorization review

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSap S4hana

  • SeverityCRITICAL

  • CVSS Score9.9

  • EPSS Probability0.15%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • SAP Note #3627998

  • SAP Security Patch Day Announcement
  • Related CVEs
  • CVE-2025-43010: SAP S/4HANA Cloud RCE Vulnerability

  • CVE-2025-27429: SAP S/4HANA RCE Vulnerability

  • CVE-2026-44744: SAP S/4HANA SQL Injection Vulnerability

  • CVE-2026-34260: SAP S/4HANA SQL Injection Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

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.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English