Advisory
A note with CVSS 5.8 for component PY-PT was released by SAP on 10.03.2026. The correction/advisory 3701020 was described with "3701020 - [CVE-2026-27687] Missing Authorization check in SAP S/4HANA HCM Portugal and SAP ERP HCM Portugal" and affects the system type ABAP.
A workaround exists, according to SAP Security Advisory team. It is advisable to implement the correction as part of maintenance.
The vulnerability addressed is missing authorization check within ABAP.
Missing authority checks are still the most common security defect related to authorizations in custom code. Since SAP uses an explicit authorization model, an authority checks must be coded in order to be executed. If an explicit check is not coded, all users have access. This type of vulnerability not only exists in SAP standard it also exists in customer coding. Check your custom developments for vulnerabilities that pose a risk to your systems. SecurityBridge helps detect code vulnerabilities before they are implemented in production.
Risk specification
SAP S/4HANA HCM Portugal and SAP ERP HCM Portugal allow an authenticated attacker with elevated privileges to access sensitive data belonging to another company, potentially resulting in information disclosure.
Solution
A new switchable authorization check has been added to report RPUTSVP0, using the existing authorization object HR_PYPT_COMP. The checks are inactive by default to maintain compatibility and must be manually activated using SACF. See SAP Note 1922808 for guidance on the framework. Although an alternative solution exists, it is advisable to apply the correction! This is the workaround, which was suggested by the SAP security experts: "Mitigation via restricting authorization: add an authorization group to report RPUTSVP0 and only assign S_PROGRAM with the selected group to required users.".
Affected System
The advisory 3701020 describes a problem within an ABAP based systems of a specific version. Affected versions are described below. ABAP software is deployed in various software components and is widely used within the SAP product portfolio.
SAP NetWeaver Application Server (formally known as SAP Web Application Server) is a building block of SAP NetWeaver. It is the foundation for most software products developed by SAP SE. SAP NetWeaver systems exist with Java and/or ABAP stacks. The advisory could be relevant for single and dual-stack ABAP installations.
The advisory is valid for
- S4HCMCPT 100 2
- S4HCMCPT 101 2
- S4HCMCPT 102
- SAP_HRCPT 600 4
- SAP_HRCPT 604 4
- SAP_HRCPT 608 4
