CVE-2024-6381

MongoDB C Driver bson_strfreev may be susceptible to integer overflow

Published Jul 2, 2024 CVSS 3.1 · 4 Medium EPSS < 1% KEV · Not listed
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

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4160-1 libbson-xs-perl security update
Debian DLA Debian DLA DLA-4175-1 mongo-c-driver security update
EUVD EUVD EUVD-2024-47488 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
Ubuntu USN Ubuntu USN USN-7613-1 mongo-c-driver vulnerabilities
Weaknesses

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Nov 3, 2025, 7:34 PM
Reserved
Jun 27, 2024, 8:03 AM
Status
Modified
Published
Jul 2, 2024, 6:15 PM
Modified
Jun 17, 2026, 8:17 AM