Skip to content

CVE-2024-6383 MongoDB C Driver bson_string_append may be vulnerable to a buffer overflow

MediumCVSS 5.3 EPSS 0.63%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebian

Description

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

Upgrade path

7 packages: 6 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/mongo-c-driver(Ubuntu 22.04) All versions No fix listed No fix yet
debian/libbson-xs-perl(Debian 12) < 0.8.4-2+deb12u1; = 0.8.4-2 0.8.4-2+deb12u1 Fixed
debian/mongo-c-driver(Debian 12) < 1.23.1-1+deb12u1; = 1.23.1-1 1.23.1-1+deb12u1 Fixed
debian/mongo-c-driver(Debian 13) < 1.27.1-1 1.27.1-1 Fixed
debian/mongo-c-driver(Debian 14) < 1.27.1-1 1.27.1-1 Fixed
MongoDB libbson < 1.27.1 1.27.1 Fixed
ubuntu/mongo-c-driver(Ubuntu 24.04) < 1.26.0-1.1ubuntu2+esm1 1.26.0-1.1ubuntu2+esm1 Fixed

Affected products

ProductAffected versionsFixed in
debian/libbson-xs-perl(Debian:12) < 0.8.4-2+deb12u1 0.8.4-2+deb12u1
debian/libbson-xs-perl(Debian:12) = 0.8.4-2 No fix listed
debian/mongo-c-driver(Debian:12) < 1.23.1-1+deb12u1 1.23.1-1+deb12u1
debian/mongo-c-driver(Debian:12) = 1.23.1-1 No fix listed
debian/mongo-c-driver(Debian:13) < 1.27.1-1 1.27.1-1
debian/mongo-c-driver(Debian:14) < 1.27.1-1 1.27.1-1
ubuntu/mongo-c-driver(Ubuntu:22.04) All versions No fix listed
MongoDB libbson < 1.27.1 1.27.1
ubuntu/mongo-c-driver(Ubuntu:24.04) < 1.26.0-1.1ubuntu2+esm1 1.26.0-1.1ubuntu2+esm1

References