CVE-2021-43783
Description
@backstage/plugin-scaffolder-backend is the backend for the default Backstage software templates. In affected versions a malicious actor with write access to a registered scaffolder template is able to manipulate the template in a way that writes files to arbitrary paths on the scaffolder-backend host instance. This vulnerability can in some situation also be exploited through user input when executing a template, meaning you do not need write access to the templates. This method will not allow the attacker to control the contents of the injected file however, unless the template is also crafted in a specific way that gives control of the file contents. This vulnerability is fixed in version `0.15.14` of the `@backstage/plugin-scaffolder-backend`. This attack is mitigated by restricting access and requiring reviews when registering or modifying scaffolder templates.
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
Timeline
- 2021-11-29Published by the CNA19:20 UTC
- 2021-12-01GitHub advisory published (GHSA-mg3m-f475-28hv)2 days after publication
Exploit and advisory records
GitHub advisory GHSA-mg3m-f475-28hv, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm @backstage/plugin-scaffolder-backend | before 0.15.14 | 0.15.14 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| linuxfoundation backstage | before 0.15.14fixed in 0.15.14 | 0.15.14 |
References
- https://github.com/backstage/backstage/commit/f9352ab606367cd9efc6ff048915c70ed3013b7f
- https://github.com/backstage/backstage/security/advisories/GHSA-mg3m-f475-28hv
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-43783'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-43783'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-43783'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-43783'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).