Skip to main content
CVE-2024-6381VulnerabilityPublished Updated

Libbson: The bson_strfreev function

Affects libbsonSource GCVE Database

0
Compare
Authoritative record:CVE-2024-6381· Medium 4.0

Not known to be exploited · CVSS 4.0 Medium · fixed in 1.16.1-1ubuntu0.1~esm1 : update libbson when convenient.

Data as of 24 Nov 2026, 19:25 UTC

CVSS 3.1 base score
4.0Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (mongodb)CVSS 3.14.0
Patch
Available – fixed in 1.16.1-1ubuntu0.1~esm1, 1.21.0-1ubuntu0.1~esm1, 1.26.0-1.1ubuntu2+esm1
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Jul 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Upgrade the Ubuntu mongo-c-driver to 1.16.1-1ubuntu0.1~esm1 (package) or 1.21.0-1ubuntu0.1~esm1 (package) or 1.26.0-1.1ubuntu2+esm1 (package).

Affected software

ProductAffectedFixed in
Ubuntu Pro 24.04 LTSmongo-c-driverpkg:deb/ubuntu/mongo-c-driver?arch=source&distro=esm-apps/nobleOther threatsAffected
  • <1.26.0-1.1ubuntu2+esm1
Fixed in
  • 1.26.0-1.1ubuntu2+esm1
Ubuntu Pro 22.04 LTSmongo-c-driverpkg:deb/ubuntu/mongo-c-driver?arch=source&distro=esm-apps/jammyOther threatsAffected
  • <1.21.0-1ubuntu0.1~esm1
Fixed in
  • 1.21.0-1ubuntu0.1~esm1
Ubuntu Pro 20.04 LTSmongo-c-driverpkg:deb/ubuntu/mongo-c-driver?arch=source&distro=esm-apps/focalOther threatsAffected
  • <1.16.1-1ubuntu0.1~esm1
Fixed in
  • 1.16.1-1ubuntu0.1~esm1
Ubuntu Pro 18.04 LTSlibbsonpkg:deb/ubuntu/libbson?arch=source&distro=esm-apps/bionicOther threatsAffected
  • 1.8.0-1 – 1.9.2-1ubuntu0.1~esm2
5 affected builds
Fixed in–
Ubuntu Pro 16.04 LTSlibbsonpkg:deb/ubuntu/libbson?arch=source&distro=esm-apps/xenialOther threatsAffected
  • =1.3.1-1
  • =1.3.1-1ubuntu0.1~esm1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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

References

Community reviews

Loading reviews…