Security Advisories (3)
CVE-2024-6383 (2024-07-03)

The bson_string_append function in MongoDB C Driver may be vulnerable to a buffer overflow where the function might attempt to allocate too small of buffer and may lead to memory corruption of neighbouring heap memory. This issue affects libbson versions prior to 1.27.1

CVE-2024-6381 (2024-07-02)

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

CVE-2025-40906 (2025-05-16)

BSON::XS versions 0.8.4 and earlier for Perl includes a bundled libbson 1.1.7, which has several vulnerabilities. Those include CVE-2017-14227, CVE-2018-16790, CVE-2023-0437, CVE-2024-6381, CVE-2024-6383, and CVE-2025-0755. BSON-XS was the official Perl XS implementation of MongoDB's BSON serialization, but this distribution has reached its end of life as of August 13, 2020 and is no longer supported.

Changes for version v0.6.0 - 2018-11-29

  • Changed
    • PERL-1031 Limit BSON max-depth
    • PERL-1040 Improve error message for unknown BSON type
  • Prereqs
    • Requires BSON v1.10.0
  • Testing
    • Synchronize tests with BSON.pm

Documentation

Modules

XS implementation of MongoDB's BSON serialization