CVE-2025-12657 Malformed KMIP response may result in access violation
A malformed KMIP response can cause read access violations in MongoDB, potentially leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-12657?
CVE-2025-12657 is a medium-severity memory corruption vulnerability in Mongodb Mongodb, published on 3 Nov 2025. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
The KMIP response parser built into mongo binaries is overly tolerant of certain malformed packets, and may parse them into invalid objects. Later reads of this object can result in read access violations.
Weakness: CWE-754
Which versions are affected by CVE-2025-12657?
1 open source package ship an affected version, including mongodb. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mongodb Bitnami | From 6.0.0 | 7.0.22, 8.0.10 |
Products include Mongodb Mongodb.
How do I fix CVE-2025-12657?
Upgrade mongodb to a fixed version for your release line: 7.0.22 or 8.0.10.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-12657 being exploited?
There is no known exploitation of CVE-2025-12657 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-2025-12657, GHSA-7vcx-r7wm-hfxx, MINI-fffj-7hhg-c7px, MINI-m38x-8cc6-jj4g, UBUNTU-CVE-2025-12657.