CVE-2025-12119 Bulk write with options may read invalid memory

Medium 6.9 Published Updated

An attacker can cause a denial of service by passing large options to bulk write operations in the MongoDB C Driver.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-12119?

CVE-2025-12119 is a medium-severity memory corruption vulnerability in MongoDB C Driver, published on 18 Nov 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A mongoc_bulk_operation_t may read invalid memory if large options are passed.

Weakness: CWE-825

Which versions are affected by CVE-2025-12119?

2 open source packages ship an affected version, including mongodb/mongodb-extension. It affects 2 products.

PackageAffectedFixed in
mongodb/mongodb-extension PackagistAll versions1.21.2
mongodb/mongodb-extension PackagistAll versions1.21.2

Products include Mongodb C Driver, Mongodb Php Driver.

How do I fix CVE-2025-12119?

Upgrade mongodb/mongodb-extension to 1.21.2 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-12119 being exploited?

There is no known exploitation of CVE-2025-12119 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2025-12119, DLA-4438-1, GHSA-mwcc-7vpp-xmv9, JLSEC-2026-181, OESA-2025-2821, OESA-2025-2822 and 4 more.

Is CVE-2025-12119 in your software?

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

Check your SBOMs for free