Skip to main content

CVE-2026-106437: CWE-191: Integer Underflow (Wrap or Wraparound) in MongoDB C Driver

0
Medium
VulnerabilityCVE-2026-106437cvecve-2026-106437cwe-191
Published: 10/08/2026 (10/08/2026, 18:42:14 UTC)
Source: CVE Database V5
Vendor/Project: MongoDB
Product: C Driver

Description

CVE-2026-106437 is an integer underflow vulnerability in the BSON buffer-reservation API of the MongoDB C Driver. The issue arises when the API records a length smaller than the BSON minimum of five bytes, causing underflow in unsigned length calculations during subsequent operations. This can lead to out-of-bounds reads or writes in the document buffer, potentially causing application termination or memory corruption. Exploitation requires the embedding application to supply an undersized length to bson_reserve_buffer and then perform an affected operation.

CVSS v4.0

Score 5.9medium

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N

Affected software

MongoDB

C Driver

Affected versions
>=1.4.0 <1.30.13>=2.0.0 <2.5.6
GitHub Actionsmore threats →ai
mongodb/mongo-c-driver
pkg:github/mongodb/mongo-c-driver
Affected versions
>=1.4.0 <1.30.13>=2.0.0 <2.5.6

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/08/2026, 21:04:04 UTC

Technical Analysis

The MongoDB C Driver's BSON buffer-reservation API can accept a length value smaller than the BSON minimum of five bytes. This causes unsigned integer underflow during later append or comparison operations, resulting in out-of-bounds memory access. An attacker who can influence the length parameter passed by the embedding application may cause the application to crash or corrupt adjacent memory. The vulnerability affects versions >=1.4.0 <1.30.13 and >=2.0.0 <2.5.6 of the MongoDB C Driver.

Potential Impact

An attacker able to control the length parameter passed to bson_reserve_buffer can trigger out-of-bounds memory reads or writes, potentially causing application crashes or memory corruption. This could lead to denial of service or data integrity issues within the affected application. There is no indication of remote exploitability without local access or influence over the embedding application. No known exploits are reported in the wild.

Mitigation Recommendations

No official patch or fix is explicitly stated in the provided data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, applications should ensure that lengths passed to bson_reserve_buffer meet the BSON minimum size requirements and validate input lengths rigorously to prevent underflow conditions.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
mongodb
Date Reserved
2026-10-06T16:40:35.017Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ac7feef2cdf04f656318bf6

Added to database: 10/08/2026, 20:37:03 UTC

Last enriched: 10/08/2026, 21:04:04 UTC

Last updated: 10/08/2026, 21:08:23 UTC

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses