# CVE-2024-6381: MongoDB C Driver bson_strfreev may be susceptible to integer overflow

- Severity: Medium 4.0 (CVSS:3.1, scored by mongodb) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2024-07-02T17:14:48.908Z
- Modified: 2026-06-17T08:17:53.870Z
- Weaknesses: CWE-680
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mongodb

## 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

(As written by CVE List.)

## Affected

- MongoDB Inc libbson: before 1.26.2
- mongodb libbson: before 1.26.2

## Every score

- mongodb: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://jira.mongodb.org/browse/CDRIVER-5622> (issue-tracking, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html>

## Sources

- CVE List: [CVE-2024-6381](https://www.cve.org/CVERecord?id=CVE-2024-6381), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2024-6381](https://nvd.nist.gov/vuln/detail/CVE-2024-6381), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-6381 · Whole record: https://cve.day/CVE-2024-6381.json · Rebuilt by cve.day 2026-11-25T22:58:42.474Z
