Arbitrary execution of RFC functions through SHDB_TOOLS_RFC_WRAPPER
Impact on Business
By exploiting this vulnerability a remote attacker could trick users into accessing specially crafted URL(s) that could trigger certain actions on the SAP System by triggering specific events.
Vulnerability Details
Due to the unrestricted scope of the RFC function module(SHDB_TOOLS_RFC_WRAPPER), SAP BASIS – versions 731, 740, 750, 751, 752, 753, 754, 755, 756, 757, 789, 790, 791, allows an authenticated non-administrator attacker to access a system class and execute any of its public methods with parameters provided by the attacker. On successful exploitation the attacker can have full control of the system to which the class belongs, causing a high impact on the integrity of the application.
Solution
SAP has released SAP Note 3268172 which provides patched versions of the affected components.
The patches can be downloaded from https://me.sap.com/notes/3268172
Onapsis strongly recommends SAP customers to download the related security fixes and apply them to the affected components in order to reduce business risks.
Report Timeline
- 11/02/2022: Onapsis reports vulnerability to SAP
- 12/13/2022: SAP issues the patch.
- 01/24/2023: SAP issues an update on the patch
References
- Onapsis blogpost: https://onapsis.com/blog/sap-security-patch-day-december-2022/
- CVE Mitre: https://www.cve.org/CVERecord?id=CVE-2022-41264
- Vendor Patch: https://me.sap.com/notes/3268172
Advisory Information
- Public Release Date: 08/28/25
- Security Advisory ID: ONAPSIS-2024-0046
- Researcher(s): Ignacio Oliva
Vulnerability Information
- Vendor: SAP
- Affected Components:
- SAP BASIS 731, 740, 750, 751, 752, 753, 754, 755, 756, 757, 789, 790, 791
(Check SAP Note 3268172 for detailed information on affected releases)
- SAP BASIS 731, 740, 750, 751, 752, 753, 754, 755, 756, 757, 789, 790, 791
- Vulnerability Class: CWE-94: Improper Control of Generation of Code (‘Code Injection’)
- CVSS v3 score: 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
- Risk Level: High
- Assigned CVE: CVE-2022-41264
- Vendor patch Information: SAP Security NOTE 3268172
Affected Components Description
This vulnerability applies to systems with SAP Basis versions 731, 740, 750, 751, 752, 753, 754, 755, 756, 757, 789, 790, 791
About our Research Labs
Onapsis Research Labs provides the industry analysis of key security issues that impact mission-critical systems and applications.
Delivering frequent and timely security and compliance advisories with associated risk levels, Onapsis Research Labs combine in-depth knowledge and experience to deliver technical and business-context with sound security judgment to the broader information security community.
Find all reported vulnerabilities at:
https://github.com/Onapsis/vulnerability_advisories
This advisory is licensed under a Creative Commons 4.0 BY-ND International License