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

EcosystemPackageFixed inAdvisory
Debian:12libbson-xs-perl0.8.4-2+deb12u1DEBIAN-CVE-2024-6383
Debian:12mongo-c-driver1.23.1-1+deb12u1DEBIAN-CVE-2024-6383
Debian:13mongo-c-driver1.27.1-1DEBIAN-CVE-2024-6383
Debian:14mongo-c-driver1.27.1-1DEBIAN-CVE-2024-6383
Ubuntu:22.04:LTSmongo-c-driverno fix listedUBUNTU-CVE-2024-6383

Affected products (as reported)

VendorProductVersions
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

References