Quick answers
- Is CVE-2021-41151 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2021-41151 being exploited in the wild.
- How severe is CVE-2021-41151?
- Low severity, with a CVSS score of 3.1, published 19 October 2021.
- Which products and versions are affected?
- Backstage Plugin-Scaffolder-Backend 0.9.4 to 0.15.8; @backstage/plugin-scaffolder-backend (npm) SEMVER:introduced=0.9.4,fixed=0.15.9.
- Is there a fix for CVE-2021-41151?
- Yes. @backstage/plugin-scaffolder-backend (npm): upgrade to 0.15.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2021-41151 attacked?
- It is attacked over the network.
- Am I affected by CVE-2021-41151?
- Check whether you run Backstage Plugin-Scaffolder-Backend or @backstage/plugin-scaffolder-backend (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- @backstage/plugin-scaffolder-backend (npm): upgrade to 0.15.9 or later
npm install @backstage/plugin-scaffolder-backend@0.15.9
Technical details
The vulnerability is a path traversal flaw (CWE-22) in the @backstage/plugin-scaffolder-backend that affects versions 0.9.4 through 0.15.8. An authenticated attacker can exploit this by crafting a malicious Scaffolder template with a publish:github:pull-request action using a crafted source path that traverses the restricted directory and accesses arbitrary files. The vulnerability requires the attacker to have catalog template registration permissions, and the exfiltration method (via visible pull requests) makes the attack highly observable. The vulnerability is fixed in version 0.15.9 and later.
Affected products
- Backstage plugin-scaffolder-backend 0.9.4 to 0.15.8
Identifiers
- CVE-2021-41151
- GHSA-pvv8-8fx9-h673
Timeline
- 2021-10-16: disclosed: Security advisory published
- 2021-10-19: patched: Fix available in version 0.15.9