CVE-2024-47183: Parse server Parse Server's Custom Object ID Vulnerability

HIGH
Advisory Identifier: GHSA-8xq9-g7ch-35hg
CVSS 8.1
CWE-285 CWE-863
Published
Advisory Summary

CVE-2024-47183 is a HIGH (CVSS 8.1) parse server's custom object id vulnerability (CWE-285: Improper Authorization) affecting Parse server libraries in the npm ecosystem. The issue involves parse server's custom object id allows to acquire role privileges. Remediation is available by upgrading affected packages to version 6.5.9, 7.3.0.

CVE-2024-47183 at a Glance

CVE Identifier CVE-2024-47183
GHSA Identifier GHSA-8xq9-g7ch-35hg
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-285: Improper Authorization
Affected Product Parse server
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.1

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:H/I:H/A:N).

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 High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2024-47183

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.9
npm install parse-server@6.5.9
parse-server fixed: 7.3.0
npm install parse-server@7.3.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 parse-server

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2024-47183, 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.9), 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-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. 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 If the Parse Server option `allowCustomObjectId: true` is set, an attacker that is allowed to create a new user can set a custom object ID for that new user that exploits the vulnerability and acquires privileges of a specific role. ### Patches Improved validation for custom user object IDs. Session tokens for existing users with an object ID that exploits the vulnerability are now rejected. ### Workarounds - Disable custom object IDs by setting `allowCustomObjectId: false` or not setting the option which defaults to `false`. - Use a Cloud Code Trigger to validate that a new user's object ID doesn't start with the prefix `role:`. ### References - https://github.com/parse-community/parse-server/security/advisories/GHSA-8xq9-g7ch-35hg - https://github.com/parse-community/parse-server/pull/9317 (fix for Parse Server 7) - https://github.com/parse-community/parse-server/pull/9318 (fix for Parse Server 6)

CVE-2024-47183 Affected Parse server Versions

2 component(s)
Fixed Versions:
6.5.97.3.0
Product / Package Ecosystem Affected Versions Fixed Version
parse-server
npm
< 6.5.9
6.5.9
parse-server
npm
≥ 7.0.0
< 7.3.0
7.3.0

References

Frequently Asked Questions

What is CVE-2024-47183?
CVE-2024-47183 is a security vulnerability in Parse server involving Parse Server's custom object ID allows to acquire role privileges under CWE-285: Improper Authorization.
Which Parse server versions are affected?
Affected versions include releases prior to 6.5.9, 7.3.0 across affected packages: parse-server.
What version fixes CVE-2024-47183?
Upgrading to 6.5.9, 7.3.0 (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.9, 7.3.0. Upgrade your dependency to 6.5.9, 7.3.0 or later.
What is the CVSS score of CVE-2024-47183?
CVE-2024-47183 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2024-47183?
CVE-2024-47183 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check npm dependencies for CVE-2024-47183?
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-8xq9-g7ch-35hg",
  "modified" : "2024-10-04T18:50:56Z",
  "published" : "2024-10-04T18:50:56Z",
  "aliases" : [ "CVE-2024-47183" ],
  "summary" : "Parse Server's custom object ID allows to acquire role privileges",
  "details" : "### Impact\n\nIf the Parse Server option `allowCustomObjectId: true` is set, an attacker that is allowed to create a new user can set a custom object ID for that new user that exploits the vulnerability and acquires privileges of a specific role.\n\n### Patches\n\nImproved validation for custom user object IDs. Session tokens for existing users with an object ID that exploits the vulnerability are now rejected.\n\n### Workarounds\n\n- Disable custom object IDs by setting `allowCustomObjectId: false` or not setting the option which defaults to `false`.\n- Use a Cloud Code Trigger to validate that a new user's object ID doesn't start with the prefix `role:`.\n\n### References\n\n- https://github.com/parse-community/parse-server/security/advisories/GHSA-8xq9-g7ch-35hg\n- https://github.com/parse-community/parse-server/pull/9317 (fix for Parse Server 7)\n- https://github.com/parse-community/parse-server/pull/9318 (fix for Parse Server 6)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "parse-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.5.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "parse-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/security/advisories/GHSA-8xq9-g7ch-35hg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-47183"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/pull/9317"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/pull/9318"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/commit/13ee52f0d19ef3a3524b3d79aea100e587eb3cfc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parse-community/parse-server/commit/1bfbccf9ee7ea77533b2b2aa7c4c69f3bd35e66f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/parse-community/parse-server"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285", "CWE-863" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-04T18:50:56Z",
    "nvd_published_at" : "2024-10-04T15:15:13Z"
  }
}