Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2024-6381: The bson_strfreev function in the MongoDB C driver library may be susceptible to an integer overflow where the

22
Routine
MEDIUM 4.0UPGRADE

CVE-2024-6381 is a medium-severity flaw (CVSS 4.0) affecting libbson. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score4.0 (Medium)
Attack vectorLocal
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance0.4% (top 67%)
CISA exploited listNo
WeaknessCWE-680
Published2024-07-02
Last modified2026-06-17
Publisher (CNA): MongoDB, Inc. · Vendor: mongodb

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

mongodb libbson UPGRADE
Affected: < 1.26.2
Fixed in: 1.26.2
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy libbson || rpm -q libbson || libbson --version
2. UPGRADE to 1.26.2 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade libbson
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade libbson
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2024-6381?

libbson: upgrade to 1.26.2. Exact commands for each OS are on this page.

Is CVE-2024-6381 being exploited?

CVE-2024-6381 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2024-6381 affect?

CVE-2024-6381 affects libbson. Severity is medium (CVSS 4.0). 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

How urgent is CVE-2024-6381?

Priority 22/100. No elevated risk signals yet.

Software pages

MongoDB vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.