# CVE-2024-6381: MongoDB C Driver bson\_strfreev may be susceptible to integer overflow

- Priority: **Routine**
- Reason: Not severe (CVSS 4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-07-02 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2024-6381, DEBIAN-CVE-2024-6381
- Record: https://cvemate.com/vulnerability/CVE-2024-6381 · JSON: https://cvemate.com/vulnerability/CVE-2024-6381/json

## Description

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

## Signals

- CVSS: 5.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- EPSS: 0.392%, percentile 35.489%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libbson-xs-perl (Debian): \< 0.8.4-2+deb12u1
- debian mongo-c-driver (Debian): \< 1.23.1-1+deb12u1 \| \< 1.26.2-1
- ubuntu libbson (Ubuntu): All versions (No fix recorded)
- ubuntu libbson-xs-perl (Ubuntu): All versions (No fix recorded)
- ubuntu mongo-c-driver (Ubuntu): \< 1.16.1-1ubuntu0.1~esm1 \| \< 1.21.0-1ubuntu0.1~esm1 \| \< 1.26.0-1.1ubuntu2+esm1
- mongodb inc libbson: \< 1.26.2
- mongodb libbson: \< 1.26.2

## References

- <https://jira.mongodb.org/browse/CDRIVER-5622>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00012.html>
- <https://ubuntu.com/security/CVE-2024-6381>
- <https://www.cve.org/CVERecord?id=CVE-2024-6381>
- <https://ubuntu.com/security/notices/USN-7613-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-6381>

---

Data as of 2026-12-05T05:19:17.157Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
