{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-42957 exists.","fix":"No fix has been published for CVE-2025-42957 yet. Limit exposure of the affected software until one is available.","what":"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."},"fix_prompt":"Check this codebase for CVE-2025-42957 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-42957 exists.\n\nAffected product: SAP_SE SAP S/4HANA (Private Cloud or On-Premise). No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-42957/ (Markdown: https://insights.sbomify.com/CVE-2025-42957/index.md)","id":"CVE-2025-42957","markdown":"https://insights.sbomify.com/CVE-2025-42957/index.md","name":"CVE-2025-42957","record":{"aliases":["GHSA-2c3g-27ww-4q84"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"SAP S/4HANA ERP","requires_auth":"low_privilege","summary":"Attackers with user privileges can inject arbitrary ABAP code via RFC, bypassing authorization checks to achieve full system compromise.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"sap","cpe":[],"cvss":{"score":9.9,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2025-09-10","github_poc":1,"max_poc_stars":4,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-09-10T03:23:47Z","kind":"github_poc","ref":"https://github.com/mrk336/CVE-2025-42957-SAP-S-4HANA-Under-Siege","stars":4,"title":"CVE‑2025‑42957 exposes an RFC‑enabled SAP S/4HANA module that lets low‑privileged users inject ABAP code to create admin accounts and gain full control. The article explains the vulnerability, threat model, provides minimal exploit ABAP code, and lists patching \u0026 monitoring steps to secure the system"}],"tier":"weaponised"},"has_fix":null,"headline":"Code Injection vulnerability in SAP S/4HANA (Private Cloud or On-Premise)","id":"CVE-2025-42957","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":0,"n_references":2,"next":{"headline":"Missing Authentication check in SAP NetWeaver","id":"CVE-2025-42958"},"packages":[],"prev":{"headline":"Multiple vulnerabilities in SAP NetWeaver Application Server ABAP","id":"CVE-2025-42956"},"products":["SAP S/4HANA (Private Cloud or On-Premise)"],"published":"2025-08-12","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["SAP_SE"]},"summary":"Attackers with user privileges can inject arbitrary ABAP code via RFC, bypassing authorization checks to achieve full system compromise.","url":"https://insights.sbomify.com/CVE-2025-42957/"}