4.0medium
MongoDB C Driver bson_strfreev may be susceptible to integer overflow
- Severity
- 4.0medium CVSS:3.1 by mongodb
- Exploit likelihood
- 0.39% (higher than 35% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| MongoDB Inc libbson | before 1.26.2 | CVE List |
| mongodb libbson | before 1.26.2 | NVD |
All scores
| mongodb | 4.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-6381 changed 2025-11-03 | CVE Terms of Use |
| NVD | CVE-2024-6381 changed 2026-06-17 | Public domain |