Vulnerability · Published Feb 23, 2024 · Assigned by GitHub_M
CVE-2024-26150`@backstage/backend-common` vulnerable to path traversal through symlinks
High 8.7
In plain English
A high-severity path traversal in backstage from backstage. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
`@backstage/backend-common` is a common functionality library for backends for Backstage, an open platform for building developer portals. In `@backstage/backend-common` prior to versions 0.21.1, 0.20.2, and 0.19.10, paths checks with the `resolveSafeChildPath` utility were not exhaustive enough, leading to risk of path traversal vulnerabilities if symlinks can be injected by attackers. This issue is patched in `@backstage/backend-common` versions 0.21.1, 0.20.2, and 0.19.10.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @backstage/backend-common | 0.21.1 | GHSA-2fc9-xpp8-2g9h |
| npm | @backstage/backend-common | 0.19.10 | GHSA-2fc9-xpp8-2g9h |
| npm | @backstage/backend-common | 0.20.2 | GHSA-2fc9-xpp8-2g9h |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N
References
- https://github.com/backstage/backstage/security/advisories/GHSA-2fc9-xpp8-2g9h x_refsource_CONFIRM
- https://github.com/backstage/backstage/commit/1ad2b1b61ebb430051f7d804b0cc7ebfe7922b6f x_refsource_MISC
- https://github.com/backstage/backstage/commit/78f892b3a84d63de2ba167928f171154c447b717 x_refsource_MISC
- https://github.com/backstage/backstage/commit/edf65d7d31e027599c2415f597d085ee84807871 x_refsource_MISC