CVE-2024-45815: @backstage/plugin catalog backend @backstage/plugin-catalog-backend Prototype Pollution Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-3x3f-jcp3-g22j
CVSS 6.5
CWE-1321
Published
Advisory Summary

CVE-2024-45815 is a HIGH (CVSS 6.5) @backstage/plugin-catalog-backend prototype pollution vulnerability vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting @backstage/plugin catalog backend libraries in the npm ecosystem. The issue involves @backstage/plugin-catalog-backend prototype pollution vulnerability. Remediation is available by upgrading affected packages to version 1.26.0.

CVE-2024-45815 at a Glance

CVE Identifier CVE-2024-45815
GHSA Identifier GHSA-3x3f-jcp3-g22j
Severity HIGH
CVSS v3.1 Base Score 6.5
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product @backstage/plugin catalog backend
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2024-45815

To remediate this vulnerability, upgrade all affected @backstage/plugin catalog backend dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@backstage/plugin-catalog-backend fixed: 1.26.0
npm install @backstage/plugin-catalog-backend@1.26.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @backstage/plugin-catalog-backend

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2024-45815, inspect your project dependencies using npm:

npm ls @backstage/plugin-catalog-backend

Analyze the terminal output to locate any version of @backstage/plugin catalog backend in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.26.0), your application is affected.

Note: The npm ls @backstage/plugin-catalog-backend command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In @backstage/plugin catalog backend, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A malicious actor with authenticated access to a Backstage instance with the catalog backend plugin installed is able to interrupt the service using a specially crafted query to the catalog API. ### Patches This has been fixed in the `1.26.0` release of the `@backstage/plugin-catalog-backend` package. ### References If you have any questions or comments about this advisory: Open an issue in the [Backstage repository](https://github.com/backstage/backstage) Visit our Discord, linked to in [Backstage README](https://github.com/backstage/backstage)

CVE-2024-45815 Affected @backstage/plugin catalog backend Versions

1 component(s)
Fixed Versions:
1.26.0
Product / Package Ecosystem Affected Versions Fixed Version
@backstage/plugin-catalog-backend
npm
< 1.26.0
1.26.0

References

Frequently Asked Questions

What is CVE-2024-45815?
CVE-2024-45815 is a security vulnerability in @backstage/plugin catalog backend involving @backstage/plugin-catalog-backend Prototype Pollution vulnerability under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which @backstage/plugin catalog backend versions are affected?
Affected versions include releases prior to 1.26.0 across affected packages: @backstage/plugin-catalog-backend.
What version fixes CVE-2024-45815?
Upgrading to 1.26.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @backstage/plugin-catalog-backend affected?
Yes, @backstage/plugin-catalog-backend is affected in releases prior to 1.26.0. Upgrade your dependency to 1.26.0 or later.
What is the CVSS score of CVE-2024-45815?
CVE-2024-45815 has a CVSS v3.1 base score of 6.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-45815?
CVE-2024-45815 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.).
How can I check npm dependencies for CVE-2024-45815?
Run the dependency tree command: 'npm ls @backstage/plugin-catalog-backend'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3x3f-jcp3-g22j",
  "modified" : "2024-11-18T16:27:13Z",
  "published" : "2024-09-17T21:29:49Z",
  "aliases" : [ "CVE-2024-45815" ],
  "summary" : "@backstage/plugin-catalog-backend Prototype Pollution vulnerability",
  "details" : "### Impact\n\nA malicious actor with authenticated access to a Backstage instance with the catalog backend plugin installed is able to interrupt the service using a specially crafted query to the catalog API.\n\n### Patches\n\nThis has been fixed in the `1.26.0` release of the `@backstage/plugin-catalog-backend` package.\n\n### References\n\nIf you have any questions or comments about this advisory:\n\nOpen an issue in the [Backstage repository](https://github.com/backstage/backstage)\nVisit our Discord, linked to in [Backstage README](https://github.com/backstage/backstage)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@backstage/plugin-catalog-backend"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.26.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/backstage/backstage/security/advisories/GHSA-3x3f-jcp3-g22j"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45815"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/backstage/backstage"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-17T21:29:49Z",
    "nvd_published_at" : "2024-09-17T21:15:12Z"
  }
}