CVE-2024-6381 Affecting libbson-xs-perl package, versions <0.8.4-2+deb12u1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.39% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN12-LIBBSONXSPERL-10006632
  • published4 May 2025
  • disclosed2 Jul 2024

Introduced: 2 Jul 2024

CVE-2024-6381  (opens in a new tab)

How to fix?

Upgrade Debian:12 libbson-xs-perl to version 0.8.4-2+deb12u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libbson-xs-perl package and not the libbson-xs-perl package as distributed by Debian. See How to fix? for Debian:12 relevant fixed versions and status.

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

CVSS Base Scores

version 3.1