CVE-2024-6381
JSON

4.0medium

MongoDB C Driver bson_strfreev may be susceptible to integer overflow

Severity
4.0medium CVSS:3.1 by mongodb
Exploit likelihood
0.39% (higher than 35% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mongodb

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

Product or packageVersionsReported by
MongoDB Inc libbsonbefore 1.26.2CVE List
mongodb libbsonbefore 1.26.2NVD

All scores

mongodb4.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Classification

CWE-680

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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

NVD (es)

La función bson_strfreev en la librería del controlador MongoDB C puede ser susceptible a un desbordamiento de enteros donde la función intentará liberar memoria con un desplazamiento negativo. Esto puede provocar daños en la memoria. Este problema afectó a las versiones de Libbson anteriores a la 1.26.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-6381 changed 2025-11-03CVE Terms of Use
NVDCVE-2024-6381 changed 2026-06-17Public domain