{"id":"CVE-2024-6381","aliases":["CVE-2024-6381"],"related":[],"kind":"vulnerability","state":"published","title":"MongoDB C Driver bson_strfreev may be susceptible to integer overflow","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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","source":"cvelist"},{"lang":"es","text":"La función bson_strfreev en la librería del controlador MongoDB C puede ser susceptible a un desbordamiento de enteros donde la función intentará liberar memoria con un desplazamiento negativo. Esto puede provocar daños en la memoria. Este problema afectó a las versiones de Libbson anteriores a la 1.26.2.","source":"nvd"}],"published":"2024-07-02T17:14:48.908Z","modified":"2026-06-17T08:17:53.870Z","severity":{"scorer":"mongodb","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":4,"rating":"MEDIUM"},"severities":[{"scorer":"mongodb","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-680"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"1.26.2","status":"affected"}],"vendor":"MongoDB Inc","product":"libbson","cpe":"cpe:2.3:a:mongodb:libbson:0.2.0:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.26.2"}],"vendor":"mongodb","product":"libbson","cpe":"cpe:2.3:a:mongodb:libbson:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://jira.mongodb.org/browse/CDRIVER-5622","tags":["issue-tracking","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mongodb","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-07-02T18:54:05.940Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-6381","url":"https://www.cve.org/CVERecord?id=CVE-2024-6381","licence":"CVE Terms of Use","modified":"2025-11-03T19:34:28.669Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-6381","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6381","licence":"Public domain","modified":"2026-06-17T08:17:53.870Z"}],"updatedAt":"2026-11-25T22:58:42.474Z","epss":{"score":0.00392,"percentile":0.35495,"date":"2026-12-01T12:00:22.000Z"}}