JLSEC-2026-2347: Medium severity julia/mongoc_jll vulnerability
The BSON buffer-reservation API in the MongoDB C Driver can record a length smaller than the five-byte BSON minimum. Later append or comparison operations can underflow unsigned length calculations and read or write outside the document buffer. An actor who can influence the length supplied by an embedding application can cause the application to terminate or read or corrupt adjacent process memory. Reaching this issue requires the application to pass an undersized value to bsonreservebuffer and then perform an affected operation.
Affected Software
Event History
Frequently Asked Questions
Which applications are realistically exposed?
Applications using julia/mongoc_jll are exposed only if their embedding code calls bson_reserve_buffer with a length below the five-byte BSON minimum and subsequently performs an affected append or comparison operation.
What does an attacker need to control?
An attacker must be able to influence the length value that the embedding application supplies to bson_reserve_buffer. No authentication or user interaction is required once that input path is reachable.
What is the potential impact if the condition is reached?
The application may terminate, read adjacent process memory, or corrupt adjacent process memory due to unsigned-length underflow causing out-of-bounds reads or writes.