Backstage
Backstage: Improper filesystem validation in Bitbucket pull-request scaffolder actions
Backstage is an open framework for building developer portals. Prior to 0.3.10 in @backstage/plugin-scaffolder-backend-module-bitbucket-cloud and 0.2.25 in @backstage/plugin-scaffolder-backend-module-bitbucket-server, the Bitbucket pull-request Scaffolder actions did not sufficiently validate filesystem paths. An authenticated user who can execute an eligible template and influence an allowed Bitbucket repository could affect paths outside the expected working area, potentially compromising backend confidentiality, integrity, or availability. This issue is fixed in @backstage/plugin-scaffolder-backend-module-bitbucket-cloud 0.3.10 and @backstage/plugin-scaffolder-backend-module-bitbucket-server 0.2.25.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.54.6
Fixed in 1.54.6
- < 0.3.10
Fixed in 0.3.10
- < 0.2.25
Fixed in 0.2.25
Mitigation
Upgrade backstage to 1.54.6 or later.
Upgrade plugin-scaffolder-backend-module-bitbucket-cloud to 0.3.10 or later.
Upgrade plugin-scaffolder-backend-module-bitbucket-server to 0.2.25 or later.
References
- Vendor advisory github.com/backstage/backstage/security/adviso…
- Patch github.com/backstage/backstage/commit/818528e1…
- Release notes github.com/backstage/backstage/releases/tag/v1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.