MongoDB Inc libbson
MongoDB C Driver bson library may be susceptible to buffer overflow
The various bson_append functions in the MongoDB C driver library may be susceptible to buffer overflow when performing operations that could result in a final BSON document which exceeds the maximum allowable size (INT32_MAX), resulting in a segmentation fault and possible application crash. This issue affected libbson versions prior to 1.27.5, MongoDB Server v8.0 versions prior to 8.0.1 and MongoDB Server v7.0 versions prior to 7.0.16
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.4high · scored by CNA · CWE-122
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
MongoDB Inc libbson
- < 1.27.5
Fixed in 1.27.5
MongoDB Inc MongoDB Server
- >= 8.0, < 8.0.1
- >= 7.0, < 7.0.16
Fixed in 8.0.1, 7.0.16
Mitigation
Upgrade libbson to 1.27.5 or later.
Upgrade MongoDB Server to 8.0.1 or 7.0.16 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.