CVE-2026-81524: Namespace Injection in MongoDB C Driver
- Vendor
- Mongodb
CVE-2026-81524 is a namespace-injection vulnerability in MongoDB C Driver (libmongoc), affecting versions 1.0.0 through 2.5.0. The driver insufficiently validates caller-supplied database and collection name components when constructing an operation's target namespace. If an application incorporates untrusted input into these components, injected period or NUL characters can redirect operations to an unintended database or collection. This can undermine application-level resource isolation, including tenant separation. Libmongoc 2.5.1 introduces validation addressing the flaw.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can redirect database operations to unintended resources, potentially exposing or modifying another tenant's data where the application's database credentials permit access. The vulnerability has low confidentiality and integrity impacts and no identified availability impact. It does not establish a bypass of MongoDB server-side authorization.
Mitigation
If you can’t patch tonight, do this now.
Prevent untrusted input from directly determining database or collection names. Map tenant or resource identifiers to server-controlled, allowlisted names, and reject prohibited period and NUL characters before passing name components to the driver. Limit application database credentials to the resources they require, and restrict access to affected application interfaces until patched.
Remediation
Patch, then assume compromise.
Upgrade to libmongoc 2.5.1 or later, or install a distribution package containing the backported fix. Alpine Linux identifies mongo-c-driver 1.30.14-r0 or later as a corrected package. Fedora 45 and EPEL provide corrected 2.5.1 and 2.5.2 builds; use the latest applicable supported security update.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-81524 exploited in the wild?
- As of Oct 30, 2026, Mallory has no reports of CVE-2026-81524 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-81524?
- As of Oct 30, 2026, Mallory has found no public exploit for CVE-2026-81524.
- Is there a patch for CVE-2026-81524?
- Upgrade to libmongoc 2.5.1 or later, or install a distribution package containing the backported fix. Alpine Linux identifies mongo-c-driver 1.30.14-r0 or later as a corrected package.
- What products are affected by CVE-2026-81524?
- Mongodb C Driver.
- How severe is CVE-2026-81524?
- CVE-2026-81524 has a CVSS v4 score of 5.3 (Medium) and an EPSS score of 0.28% (13th percentile) as of Oct 30, 2026.
Recent activity
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.