CVE-2026-106437: CWE-191: Integer Underflow (Wrap or Wraparound) in MongoDB 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
Affected software
MongoDB
C Driver
pkg:github/mongodb/mongo-c-driverRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.