ghsa-mg3m-f475-28hv
Vulnerability from github
Impact
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.
Patches
This vulnerability is fixed in version 0.15.14
of the @backstage/plugin-scaffolder-backend
.
Workarounds
This attack is mitigated by restricting access and requiring reviews when registering or modifying scaffolder templates.
For more information
If you have any questions or comments about this advisory:
- Open an issue in the Backstage repository
- Visit our chat, linked to in Backstage README
{ "affected": [ { "package": { "ecosystem": "npm", "name": "@backstage/plugin-scaffolder-backend" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "0.15.14" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2021-43783" ], "database_specific": { "cwe_ids": [ "CWE-22" ], "github_reviewed": true, "github_reviewed_at": "2021-11-29T20:22:25Z", "nvd_published_at": "2021-11-29T20:15:00Z", "severity": "HIGH" }, "details": "### Impact\nA 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.\n\nThis 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.\n\n### Patches\nThis vulnerability is fixed in version `0.15.14` of the `@backstage/plugin-scaffolder-backend`.\n\n### Workarounds\nThis attack is mitigated by restricting access and requiring reviews when registering or modifying scaffolder templates.\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n* Open an issue in the [Backstage repository](https://github.com/backstage/backstage)\n* Visit our chat, linked to in [Backstage README](https://github.com/backstage/backstage)\n", "id": "GHSA-mg3m-f475-28hv", "modified": "2021-11-29T20:22:25Z", "published": "2021-12-01T18:28:51Z", "references": [ { "type": "WEB", "url": "https://github.com/backstage/backstage/security/advisories/GHSA-mg3m-f475-28hv" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-43783" }, { "type": "WEB", "url": "https://github.com/backstage/backstage/commit/f9352ab606367cd9efc6ff048915c70ed3013b7f" }, { "type": "PACKAGE", "url": "https://github.com/backstage/backstage" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:L", "type": "CVSS_V3" } ], "summary": "Path Traversal in @backstage/plugin-scaffolder-backend" }
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.