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, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libbson-xs-perl (PTS)bullseye0.8.4-1vulnerable
bookworm0.8.4-2vulnerable
mongo-c-driver (PTS)bullseye1.17.6-1vulnerable
bookworm1.23.1-1vulnerable
sid, trixie1.30.3-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libbson-xs-perlsource(unstable)(unfixed)
mongo-c-driversource(unstable)1.27.1-1

Notes

[bookworm] - libbson-xs-perl <no-dsa> (Minor issue)
[bookworm] - mongo-c-driver <no-dsa> (Minor issue)
[bullseye] - mongo-c-driver <no-dsa> (Minor issue)
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