Skip to main content
CVE-2024-6383VulnerabilityPublished Updated

CVE-2024-6383: MongoDB libbson · Heap-based Buffer Overflow

Affects MongoDB libbsonSource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium : upgrade to 1.27.1 when convenient.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 49% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.27.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Jul 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: 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 2026-10-26.

What to do

Upgrade MongoDB libbson to 1.27.1.

Affected software

ProductAffectedFixed in
MongoDB Inc libbsonAffected
  • =0
  • <1.27.1
Fixed in
  • 1.27.1

AI-suggested

1. Immediately identify and inventory all software and services using libbson, particularly versions prior to 1.27.1. 2. 3. If patches are not yet available, consider temporary mitigations such as disabling or restricting access to services using vulnerable libbson components. 4. Employ runtime memory protection tools such as AddressSanitizer or similar to detect heap corruption during testing and staging. 5. Conduct thorough code reviews and fuzz testing on applications that use bson_string_append or related functions to identify potential exploitation paths. 6. Monitor network traffic and logs for anomalous behavior that could indicate exploitation attempts, focusing on services interfacing with MongoDB C Driver. 7. Engage with software vendors and third-party providers to ensure they are aware of the vulnerability and have plans to update their products. 8. Incorporate this vulnerability into incident response plans and threat modeling to prepare for potential exploitation scenarios. 9. Educate development teams on secure memory management practices to prevent similar vulnerabilities in custom code.

Description

The bson_string_append function in MongoDB C Driver may be vulnerable to a buffer overflow where the function might attempt to allocate too small of buffer and may lead to memory corruption of neighbouring heap memory. This issue affects libbson versions prior to 1.27.1

References

Community reviews

Loading reviews…