MongoDB C Driver
cpe:2.3:a:mongodb:c_driver:*:*:*:*:mongodb:*:*
A heap buffer overflow vulnerability has been identified in the MongoDB C Driver's integration with Cyrus SASL. This issue arises from unsafe string copying during the canonicalization of usernames. The vulnerability can be exploited by providing untrusted input in the username field of a MongoDB URI that includes the GSSAPI authentication mechanism. The buffer overflow occurs before any authentication is performed or network traffic is transmitted.
Exploitation of this vulnerability leads to a heap buffer overflow, which can potentially be exploited to execute arbitrary code.
To reproduce this vulnerability, create a MongoDB URI that includes the GSSAPI authentication mechanism. Insert an overly long or specially crafted username that exploits the unsafe string copying during canonicalization. When the URI is processed by the MongoDB C Driver, the buffer overflow will occur.
Users can upgrade to MongoDB C Driver versions 2.2.0 or 2.1.3, where this vulnerability has been fixed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.