Integer Underflow → Heap Out-of-Bounds Read in `bson_new_from_buffer()
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| MongoDB Inc. | C Driver | unaffected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Mongodb | C Driver |
|
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.402% probability within 30 days)
| Link | Providers |
|---|---|
| https://jira.mongodb.org/browse/CDRIVER-6343 |
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:mongodb:*:* |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Mongodb
Mongodb c Driver |
|
| Vendors & Products |
Mongodb
Mongodb c Driver |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | A missing lower-bound validation in the bson_new_from_buffer() function of libbson allows an integer underflow when processing BSON data with a zero-length prefix. The function reads a 32-bit document length from the input buffer but does not verify that the value is at least 5 (the minimum valid BSON document size) before using it in an array index calculation. When the length field is zero, the expression used to check the document's null terminator wraps to UINT32_MAX, causing a heap out-of-bounds read that crashes the process. An unauthorized party who can supply crafted BSON input to an application using this API can cause a denial of service. | |
| Title | Integer Underflow → Heap Out-of-Bounds Read in `bson_new_from_buffer() | |
| Weaknesses | CWE-191 | |
| References |
| |
| Metrics |
cvssV3_1
|