Vulnerability · Published Jul 3, 2024 · Assigned by mongodb
CVE-2024-6383MongoDB C Driver bson_string_append may be vulnerable to a buffer overflow
Medium 5.3
In plain English
A medium-severity heap buffer overflow in libbson from MongoDB Inc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.6%top 49.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
The bson_string_append function in MongoDB C Driver may be vulnerable to a buffer overflow where the function might attempt to allocate too small of buffer and may lead to memory corruption of neighbouring heap memory. This issue affects libbson versions prior to 1.27.1
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libbson-xs-perl | 0.8.4-2+deb12u1 | DEBIAN-CVE-2024-6383 |
| Debian:12 | mongo-c-driver | 1.23.1-1+deb12u1 | DEBIAN-CVE-2024-6383 |
| Debian:13 | mongo-c-driver | 1.27.1-1 | DEBIAN-CVE-2024-6383 |
| Debian:14 | mongo-c-driver | 1.27.1-1 | DEBIAN-CVE-2024-6383 |
| Ubuntu:22.04:LTS | mongo-c-driver | no fix listed | UBUNTU-CVE-2024-6383 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| MongoDB Inc | libbson | 0 – before 1.27.1 |
Weakness: CWE-122 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N