{"id":"CVE-2024-6381","summary":"MongoDB C Driver bson_strfreev may be susceptible to integer overflow","details":"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","modified":"2026-08-12T03:51:29.531438721Z","published":"2024-07-02T17:14:48.908Z","database_specific":{"cna_assigner":"mongodb","cwe_ids":["CWE-680"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6381.json","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"fixed":"1.26.2"}]}]},"references":[{"type":"WEB","url":"https://jira.mongodb.org/browse/CDRIVER-5622"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6381.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6381"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mongodb/mongo-c-driver","events":[{"introduced":"0"},{"fixed":"586171d661f584d841bdc32fc998e9f6cf903228"}],"database_specific":{"source":"CPE_RANGE","cpe":"cpe:2.3:a:mongodb:libbson:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.26.2"}]}}],"versions":["1.26.1","1.26.0","1.11.0","1.9.0-rc1","1.9.0-rc0","1.7.0-rc0","1.6.0","1.6.0-rc0","1.5.0-rc4","1.5.0-rc3","1.5.0-rc2","1.5.0-rc1","1.5.0-rc0","1.4.0-beta1","1.3.0","1.3.0-rc0","1.1.11","1.1.10","1.1.9","1.1.8","1.1.7","1.1.6","1.1.5","1.1.4","1.1.2","1.1.0","1.1.0-rc0","1.0.2","1.0.0","0.98.2","0.98.0","0.96.4","0.96.0","0.94.2","0.94.0","0.92.2","0.92.0","0.90.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-6381.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}]}