Skip to main content
No exploitation reportedFix available

CVE-2024-6381

No exploitation reported by the sources we read.

  • Published2024-07-02
  • Fixed in1.26.2
  • WeaknessCWE-680

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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

Timeline

dates in UTC
  1. 2024-07-0218:15CVE publishedNVD

Versions per branch

NVD
Mongodb libbson
BranchAffectedFixed in
1.26< 1.26.21.26.2

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As mongodb, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • MongoDB Inc libbsonother versions: not affected
    Affected
    • < 1.26.2fixed in 1.26.2custom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-07-02

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • libbsonUbuntu:Pro:18.04:LTSall versions · no fixed version listed
  • libbsonUbuntu:Pro:16.04:LTSall versions · no fixed version listed
  • libbson-xs-perlDebian:12all versions · fixed in 0.8.4-2+deb12u1
  • libbson-xs-perlDebian:11all versions · fixed in 0.8.4-1+deb11u1
  • mongo-c-driverUbuntu:Pro:24.04:LTSall versions · fixed in 1.26.0-1.1ubuntu2+esm1
  • mongo-c-driverUbuntu:Pro:22.04:LTSall versions · fixed in 1.21.0-1ubuntu0.1~esm1
  • mongo-c-driverUbuntu:Pro:20.04:LTSall versions · fixed in 1.16.1-1ubuntu0.1~esm1
  • mongo-c-driveropenEuler:24.03-LTSall versions · fixed in 1.27.4-1.oe2403

8 more package ranges on OSV.dev

Full record on NVD

Fix

  1. Update Mongodb libbson to 1.26.2

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

  • EUVD-2024-47488same flawENISA EUVD · LicenseRef-ENISA-legal-notice
  • GHSA-vc2m-fm8c-xx2jsame flawGitHub Advisory Database · CC-BY-4.0
  • DLA-4160-1advisory covering several CVEsDebian · LicenseRef-unstated
  • DLA-4175-1advisory covering several CVEsDebian · LicenseRef-unstated
  • OESA-2024-1891advisory covering several CVEsopenEuler · LicenseRef-unstated
  • USN-7613-1advisory covering several CVEsUbuntu

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Published
2024-07-02
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-vc2m-fm8c-xx2j

Frequently asked questions

What is CVE-2024-6381?

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

Is CVE-2024-6381 actively exploited?

Active exploitation of CVE-2024-6381 has not been confirmed. Its EPSS score was 0.4% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-6381?

CVE-2024-6381 has a CVSS v3 base score of 5.3 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.

Running libbson? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record