CVE-2024-53983 Server-side request forgery in Backstage Scaffolder plugin

Medium 5.4 Published Updated

Attackers can exploit Server-Side Template Injection to capture privileged git tokens, enabling unauthorized access to sensitive git resources.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-53983?

CVE-2024-53983 is a medium-severity server-side request forgery vulnerability in backstage, published on 29 Nov 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

The Backstage Scaffolder plugin Houses types and utilities for building scaffolder-related modules. A vulnerability is identified in Backstage Scaffolder template functionality where Server-Side Template Injection (SSTI) can be exploited to perform Git config injection. The vulnerability allows an attacker to capture privileged git tokens used by the Backstage Scaffolder plugin. With these tokens, unauthorized access to sensitive resources in git can be achieved. The impact is considered medium severity as the Backstage Threat Model recommends restricting access to adding and editing templates in the Backstage Catalog plugin. The issue has been resolved in versions `v0.4.12`, `v0.5.1` and `v0.6.1` of the `@backstage/plugin-scaffolder-node` package. Users are encouraged to upgrade to this version to mitigate the vulnerability. Users are advised to upgrade. Users unable to upgrade may ensure that templates do not change git config.

Weakness: CWE-918

Which versions are affected by CVE-2024-53983?

6 open source packages ship an affected version, including @backstage/plugin-scaffolder-node.

PackageAffectedFixed in
@backstage/plugin-scaffolder-node npmAll versions0.4.12
@backstage/plugin-scaffolder-node npmAll versions0.4.12
@backstage/plugin-scaffolder-node npmFrom 0.5.00.5.1
@backstage/plugin-scaffolder-node npmFrom 0.5.00.5.1
@backstage/plugin-scaffolder-node npmFrom 0.6.00.6.1
@backstage/plugin-scaffolder-node npmFrom 0.6.00.6.1

How do I fix CVE-2024-53983?

Upgrade @backstage/plugin-scaffolder-node to a fixed version for your release line: 0.4.12, 0.5.1 or 0.6.1.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2024-53983 being exploited?

There is no known exploitation of CVE-2024-53983 in the wild and no public exploit code.

Sources

Also known as GHSA-qmc2-jpr5-7rg9.

Is CVE-2024-53983 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free