5.9medium
Possibility to elevate privileges or get unauthorized access to data
- Severity
- 5.9medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.71% (higher than 78% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-gp2f-254m-rh32
Description
@sap-cloud-sdk/core contains the core functionality of the SAP Cloud SDK as well as the SAP Business Technology Platform abstractions. This affects applications on SAP Business Technology Platform that use the SAP Cloud SDK and enabled caching of destinations. In affected versions and in some cases, when user information was missing, destinations were cached without user information, allowing other users to retrieve the same destination with its permissions. By default, destination caching is disabled. The security for caching has been increased. The changes are released in version 1.52.0. Users unable to upgrade are advised to disable destination caching (it is disabled by default).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| SAP cloud-sdk-js | < 1.52.0 | CVE List |
| @sap-cloud-sdk/core (npm) | before 1.52.0 | GitHub Advisory Database |
| sap cloud_sdk | before 1.52.0 | NVD |
All scores
| GitHub_M | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.6low CVSS:2.0 | AV:N/AC:H/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
@sap-cloud-sdk/core contains the core functionality of the SAP Cloud SDK as well as the SAP Business Technology Platform abstractions. This affects applications on SAP Business Technology Platform that use the SAP Cloud SDK and enabled caching of destinations. In affected versions and in some cases, when user information was missing, destinations were cached without user information, allowing other users to retrieve the same destination with its permissions. By default, destination caching is disabled. The security for caching has been increased. The changes are released in version 1.52.0. Users unable to upgrade are advised to disable destination caching (it is disabled by default).
GitHub Advisory Database
Impact
This affects applications on SAP Business Technology Platform that use the SAP Cloud SDK and enabled caching of destinations. In some cases, when user information was missing, destinations were cached without user information, allowing other users to retrieve the same destination with its permissions. By default, destination caching is disabled. If it is enabled the maximum lifetime is 5 minutes which limits the attack vector.
Patches
The problem was fixed by #1769 and #1770. The security for caching has been increased. The changes are released in version 1.52.0.
Workarounds
Disable destination caching (it is disabled by default).
References
For more information
If you have any questions or comments about this advisory:
- Open an issue in https://github.com/SAP/cloud-sdk-js
NVD (es)
@sap-cloud-sdk/core contiene la funcionalidad principal del SDK de SAP Cloud, así como las abstracciones de SAP Business Technology Platform. Esto afecta a las aplicaciones de SAP Business Technology Platform que usan el SDK de SAP Cloud y que permiten el almacenamiento en caché de los destinos. En las versiones afectadas y en algunos casos, cuando faltaba la información del usuario, los destinos se almacenaban en la caché sin la información del usuario, lo que permitía a otros usuarios recuperar el mismo destino con sus permisos. Por defecto, el almacenamiento en caché de los destinos está desactivado. Se ha aumentado la seguridad del almacenamiento en caché. Los cambios se publican en la versión 1.52.0. Se aconseja a los usuarios que no puedan actualizarse que desactiven el almacenamiento en caché de los destinos (está desactivado por defecto)
References
| https://github.com/SAP/cloud-sdk-js/security/advisories/GHSA-gp2f-254m-rh32 | patch, third-party-advisory, web | |
| https://github.com/SAP/cloud-sdk-js/pull/1769 | exploit, patch, third-party-advisory, web | |
| https://github.com/SAP/cloud-sdk-js/pull/1770 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-41251 | advisory | |
| https://github.com/SAP/cloud-sdk-js | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41251 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-gp2f-254m-rh32 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-41251 changed 2026-06-17 | Public domain |