CVE-2021-41251
JSON

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 packageVersionsReported by
SAP cloud-sdk-js< 1.52.0CVE List
@sap-cloud-sdk/core (npm)before 1.52.0GitHub Advisory Database
sap cloud_sdkbefore 1.52.0NVD

All scores

GitHub_M5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD2.6low CVSS:2.0AV: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

destination cache API docs

For more information

If you have any questions or comments about this advisory:

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

Sources

SourceRecordLicence
CVE ListCVE-2021-41251 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-gp2f-254m-rh32 changed 2026-07-08CC-BY-4.0
NVDCVE-2021-41251 changed 2026-06-17Public domain