Vulnerability · Published Jul 2, 2024 · Assigned by mongodb

CVE-2024-6381MongoDB C Driver bson_strfreev may be susceptible to integer overflow

Medium 4.0

In plain English

A medium-severity security flaw 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.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.0Medium
Exploit odds (30 days)0.4%top 66.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

The bson_strfreev function in the MongoDB C driver library may be susceptible to an integer overflow where the function will try to free memory at a negative offset. This may result in memory corruption. This issue affected libbson versions prior to 1.26.2

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libbson-xs-perl0.8.4-2+deb12u1DEBIAN-CVE-2024-6381
Debian:12mongo-c-driver1.23.1-1+deb12u1DEBIAN-CVE-2024-6381
Debian:13mongo-c-driver1.26.2-1DEBIAN-CVE-2024-6381
Debian:14mongo-c-driver1.26.2-1DEBIAN-CVE-2024-6381

Affected products (as reported)

VendorProductVersions
MongoDB Inc libbson 0 – before 1.26.2

Weakness: CWE-680 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References