CVE-2024-29027: Parse server Server Crashes On Invalid Cloud Vulnerability

CRITICAL
Advisory Identifier: GHSA-6hh7-46r2-vf29
CVSS 9.0
CWE-20 CWE-74
Published
Advisory Summary

CVE-2024-29027 is a CRITICAL (CVSS 9.0) server crashes on invalid cloud vulnerability (CWE-20: Improper Input Validation) affecting Parse server libraries in the npm ecosystem. The issue involves server crashes on invalid cloud function or cloud job name. Remediation is available by upgrading affected packages to version 6.5.5, 7.0.0-alpha.29.

CVE-2024-29027 at a Glance

CVE Identifier CVE-2024-29027
GHSA Identifier GHSA-6hh7-46r2-vf29
Severity CRITICAL
CVSS v3.1 Base Score 9.0
CWE Classification CWE-20: Improper Input Validation
Affected Product Parse server
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.0

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

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

How to Fix CVE-2024-29027

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

parse-server fixed: 6.5.5
npm install parse-server@6.5.5
parse-server fixed: 7.0.0-alpha.29
npm install parse-server@7.0.0-alpha.29
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 parse-server

How to Check if You Are Affected

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

npm ls parse-server

Analyze the terminal output to locate any version of Parse server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.5.5), your application is affected.

Note: The npm ls parse-server 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Parse server, 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 Calling an invalid Parse Server Cloud Function name or Cloud Job name crashes server and may allow for code injection. ### Patches Added string sanitation for Cloud Function name and Cloud Job name. ### Workarounds Sanitize the Cloud Function name and Cloud Job name before it reaches Parse Server. ### References - https://github.com/parse-community/parse-server/security/advisories/GHSA-6hh7-46r2-vf29 - https://github.com/parse-community/parse-server/releases/tag/7.0.0-alpha.29 (Fix for Parse Server 7 alpha) - https://github.com/parse-community/parse-server/releases/tag/6.5.5 (Fix for Parse Server 6 LTS)

CVE-2024-29027 Affected Parse server Versions

2 component(s)
Fixed Versions:
6.5.57.0.0-alpha.29
Product / Package Ecosystem Affected Versions Fixed Version
parse-server
npm
< 6.5.5
6.5.5
parse-server
npm
≥ 7.0.0-alpha.1
< 7.0.0-alpha.29
7.0.0-alpha.29

References

Frequently Asked Questions

What is CVE-2024-29027?
CVE-2024-29027 is a security vulnerability in Parse server involving Server crashes on invalid Cloud Function or Cloud Job name under CWE-20: Improper Input Validation.
Which Parse server versions are affected?
Affected versions include releases prior to 6.5.5, 7.0.0-alpha.29 across affected packages: parse-server.
What version fixes CVE-2024-29027?
Upgrading to 6.5.5, 7.0.0-alpha.29 (or the latest patched release for your respective branch) resolves the vulnerability.
Is parse-server affected?
Yes, parse-server is affected in releases prior to 6.5.5, 7.0.0-alpha.29. Upgrade your dependency to 6.5.5, 7.0.0-alpha.29 or later.
What is the CVSS score of CVE-2024-29027?
CVE-2024-29027 has a CVSS v3.1 base score of 9.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2024-29027?
CVE-2024-29027 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check npm dependencies for CVE-2024-29027?
Run the dependency tree command: 'npm ls parse-server'. 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-6hh7-46r2-vf29",
  "modified" : "2024-03-19T22:15:09Z",
  "published" : "2024-03-19T20:07:35Z",
  "aliases" : [ "CVE-2024-29027" ],
  "summary" : "Server crashes on invalid Cloud Function or Cloud Job name",
  "details" : "### Impact\n\nCalling an invalid Parse Server Cloud Function name or Cloud Job name crashes server and may allow for code injection.\n\n### Patches\n\nAdded string sanitation for Cloud Function name and Cloud Job name.\n\n### Workarounds\n\nSanitize the Cloud Function name and Cloud Job name before it reaches Parse Server.\n\n### References\n\n- https://github.com/parse-community/parse-server/security/advisories/GHSA-6hh7-46r2-vf29\n- https://github.com/parse-community/parse-server/releases/tag/7.0.0-alpha.29 (Fix for Parse Server 7 alpha)\n- https://github.com/parse-community/parse-server/releases/tag/6.5.5 (Fix for Parse Server 6 LTS)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "parse-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.5.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "parse-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0-alpha.1"
      }, {
        "fixed" : "7.0.0-alpha.29"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/security/advisories/GHSA-6hh7-46r2-vf29"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-29027"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/commit/5ae6d6a36d75c4511029f0ba5673ae4b2999179b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/commit/9f6e3429d3b326cf4e2994733c618d08032fac6e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/parse-community/parse-server"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/releases/tag/6.5.5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/releases/tag/7.0.0-alpha.29"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-74" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-19T20:07:35Z",
    "nvd_published_at" : "2024-03-19T19:15:06Z"
  }
}