An off-by-one error in the BSON bulk document writer in the MongoDB C Driver can write one zero byte immediately past a heap allocation when a document ends at a specific buffer boundary. An actor who can influence the size of documents serialized by an embedding application can corrupt adjacent process memory or terminate the process. Reaching this issue requires the application to use the BSON bulk-writer API and produce a precise cumulative document size.
Attack Parameters
Impact Assessment
CVSS Vector v4.0
Weakness Type (CWE)
Vulnerable Products 2
| Configuration | From (including) | Up to (excluding) |
|---|---|---|
|
Mongodb C_Driver
cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:mongodb:*:*
|
0.5.0
|
1.30.13
|
|
Mongodb C_Driver
cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:mongodb:*:*
|
2.0.0
|
2.5.6
|