Technical impact
A vulnerability in the MongoDB Java Driver’s BSON encoder fails to confirm that the length claimed by a raw document matches the actual byte range supplied. When an application supplies untrusted raw BSON to the driver, the driver copies the data without verification and the database can interpret trailing bytes as new fields of a command. This causes commands to be altered without the user’s intent, allowing an attacker to read or write arbitrary data using the application’s credentials, and does not require authentication to the driver or database.
Affected Systems
The issue affects the MongoDB Java Driver; any application that incorporates this driver and accepts raw BSON input from untrusted sources is impacted. The driver has already released a patch in version 5.14.0, which can be seen from the provided release notes link.
Risk and Exploitability
The CVSS score of 6.9 indicates moderate severity. The EPSS score of 0.00192, which is below 1%, indicates a very low probability of exploitation. Because no authentication to the driver or database is required beyond the ability to influence the raw bytes, attacker interaction is minimal. The attack vector appears to be application‑side injection into the database command, making it potentially a low‑effort attack in a compromised or vulnerable application.