CVE-2024-6383

NameCVE-2024-6383
DescriptionThe 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
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4160-1, DLA-4175-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libbson-xs-perl (PTS)bookworm0.8.4-2+deb12u1fixed
mongo-c-driver (PTS)bookworm1.23.1-1+deb12u3fixed
trixie1.30.4-1+deb13u3fixed
forky2.5.2-1fixed
sid2.5.3-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libbson-xs-perlsourcebullseye0.8.4-1+deb11u1DLA-4160-1
libbson-xs-perlsourcebookworm0.8.4-2+deb12u1
libbson-xs-perlsource(unstable)(unfixed)
mongo-c-driversourcebullseye1.17.6-1+deb11u1DLA-4175-1
mongo-c-driversourcebookworm1.23.1-1+deb12u1
mongo-c-driversource(unstable)1.27.1-1

Notes

https://jira.mongodb.org/browse/CDRIVER-5628
Fixed by: https://github.com/mongodb/mongo-c-driver/commit/1d642e461e7c0e26abe3a90c7bbac081ac4a0053 (1.28.0)
Fixed by: https://github.com/mongodb/mongo-c-driver/commit/7c34461863211be172e6317221d72e4429bed45e (1.27.1)

Search for package or bug name: Reporting problems