CVE-2024-8654 MongoDB Server may access non-initialized region of memory leading to unexpected behaviour
Attackers can trigger unexpected behavior or crashes in MongoDB Server by calling internal aggregation stages with zero arguments.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-8654?
CVE-2024-8654 is a medium-severity vulnerability in Mongodb Mongodb, published on 10 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are called in internal aggregation stage. This issue affected MongoDB Server v6.0 version 6.0.3.
Weakness: CWE-908
Which versions are affected by CVE-2024-8654?
1 open source package ship an affected version, including mongodb. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mongodb Bitnami | From 6.0.0 | 6.0.15 |
Products include Mongodb Mongodb.
How do I fix CVE-2024-8654?
Upgrade mongodb to 6.0.15 or later.
Is CVE-2024-8654 being exploited?
There is no known exploitation of CVE-2024-8654 in the wild and no public exploit code.
Other vulnerabilities in Mongodb Mongodb
- CVE-2025-14847 MongoDB and MongoDB Server Improper Handling of Length Parameter Inconsistency
- CVE-2026-82067 Auth bypass in MongoDB Server
- CVE-2026-13072 MongoDB Improper Input Validation in Compute Mode External Data Processing Leading to Memory Corruption
- CVE-2017-15535 Denial of service in n/a
- CVE-2026-18691 Improper Authentication in MongoDB Intra-Cluster Connections Allows Credential Exposure
Sources
Also known as BIT-mongodb-2024-8654, GHSA-pw8j-vg82-pm6c.