CVE-2025-12657 Malformed KMIP response may result in access violation

Medium 5.9 Published Updated

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.

PackageAffectedFixed in
mongodb BitnamiFrom 6.0.07.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.

All Mongodb Mongodb vulnerabilities

Sources

Also known as BIT-mongodb-2025-12657, GHSA-7vcx-r7wm-hfxx, MINI-fffj-7hhg-c7px, MINI-m38x-8cc6-jj4g, UBUNTU-CVE-2025-12657.

Is CVE-2025-12657 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free