Skip to content
Fencer Vulns
medium 4.0

CVE-2024-6381 json

MongoDB C Driver bson_strfreev may be susceptible to integer overflow

published 2024-07-02 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-47488

cvss
4.0
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 33%
public exploits
0
none known

Summary

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

Patch / fix

  • MongoDB Inc libbson 1.26.2
  • mongo-c-driver Debian 12 1.23.1-1+deb12u1
  • mongo-c-driver Debian 14, Debian 13 1.26.2-1
  • libbson-xs-perl Debian 12 0.8.4-2+deb12u1

debian advisories DEBIAN-CVE-2024-6381

  • mongo-c-driver Ubuntu Pro 20.04 LTS 1.16.1-1ubuntu0.1~esm1
  • mongo-c-driver Ubuntu Pro 22.04 LTS 1.21.0-1ubuntu0.1~esm1
  • mongo-c-driver Ubuntu Pro 24.04 LTS 1.26.0-1.1ubuntu2+esm1

ubuntu advisories UBUNTU-CVE-2024-6381

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.39% chance of exploitation in the next 30 days, higher than 33% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 4.0 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected products

  • MongoDB Inc libbson

Classification

Weakness
  • CWE-680 Integer Overflow to Buffer Overflow

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.