CVE-2022-2564
published 2022-07-28CVE-2022-2564: Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6.
PriorityP355critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
32.68%
98.1th percentile
Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| automattic | automattic_mongoose | >= unspecified < 6.4.6 | 6.4.6 |
| cesanta | mongoose | >= 0 < 5.13.15 | 5.13.15 |
| cesanta | mongoose | >= 6.0.0 < 6.4.6 | 6.4.6 |
| mongoosejs | mongoose | < 5.13.15 | 5.13.15 |
| mongoosejs | mongoose | >= 6.0.0 < 6.4.6 | 6.4.6 |
| seal-security | mongoose-fixed | >= 5.3.3 < 5.3.4 | 5.3.4 |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv3.07.0HIGHCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
ghsa9.1CRITICAL
osv9.1CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Prototype Pollution in ali-security/mongoose
ghsa·2023-10-17·CVSS 9.1
CVE-2023-3696 [CRITICAL] CWE-1321 Prototype Pollution in ali-security/mongoose
Prototype Pollution in ali-security/mongoose
### Impact
This vulnerability causes a Prototype Pollution in document.js, through functions such as findByIdAndUpdate().
For applications using Express and EJS, this can potentially allow remote code execution.
### Patches
The original patched version for mongoose 5.3.3 did not include a fix for CVE-2023-3696. Therefore the existing version @seal-security/mongoose-fixed version 5.3.3 is affected by this vulnerability (though it is protected from CVE-2022-2564 and CVE-2019-17426). To mitigate this issue, a @seal-security/mongoose-fixed version 5.3.4 has been deployed. Note that this version is compatible with the original mongoose version 5.3.3, not version 5.3.4
### References
https://security.snyk.io/vuln/SNYK-JS-MONGOOSE-5777721
https://gi
OSV
Prototype Pollution in ali-security/mongoose
osv·2023-10-17·CVSS 9.1
CVE-2023-3696 [CRITICAL] Prototype Pollution in ali-security/mongoose
Prototype Pollution in ali-security/mongoose
### Impact
This vulnerability causes a Prototype Pollution in document.js, through functions such as findByIdAndUpdate().
For applications using Express and EJS, this can potentially allow remote code execution.
### Patches
The original patched version for mongoose 5.3.3 did not include a fix for CVE-2023-3696. Therefore the existing version @seal-security/mongoose-fixed version 5.3.3 is affected by this vulnerability (though it is protected from CVE-2022-2564 and CVE-2019-17426). To mitigate this issue, a @seal-security/mongoose-fixed version 5.3.4 has been deployed. Note that this version is compatible with the original mongoose version 5.3.3, not version 5.3.4
### References
https://security.snyk.io/vuln/SNYK-JS-MONGOOSE-5777721
https://gi
GHSA
automattic/mongoose vulnerable to Prototype pollution via Schema.path
ghsa·2022-07-29
CVE-2022-2564 [HIGH] CWE-1321 automattic/mongoose vulnerable to Prototype pollution via Schema.path
automattic/mongoose vulnerable to Prototype pollution via Schema.path
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.
OSV
automattic/mongoose vulnerable to Prototype pollution via Schema.path
osv·2022-07-29
CVE-2022-2564 [HIGH] automattic/mongoose vulnerable to Prototype pollution via Schema.path
automattic/mongoose vulnerable to Prototype pollution via Schema.path
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/Automattic/mongoose/blob/51e758541763b6f14569744ced15cc23ab8b50c6/lib/schema.js#L88-L141https://github.com/Automattic/mongoose/compare/6.4.5...6.4.6https://github.com/automattic/mongoose/commit/a45cfb6b0ce0067ae9794cfa80f7917e1fb3c6f8https://huntr.dev/bounties/055be524-9296-4b2f-b68d-6d5b810d1dddhttps://github.com/Automattic/mongoose/blob/51e758541763b6f14569744ced15cc23ab8b50c6/lib/schema.js#L88-L141https://github.com/Automattic/mongoose/compare/6.4.5...6.4.6https://github.com/automattic/mongoose/commit/a45cfb6b0ce0067ae9794cfa80f7917e1fb3c6f8https://huntr.dev/bounties/055be524-9296-4b2f-b68d-6d5b810d1ddd
2022-07-28
Published