USN-9487-1: libbson-xs-perl vulnerabilities
It was discovered that the bundled libbson library in libbson-xs-perl did not correctly handle freeing memory in the bsonstrfreev function, which could lead to an integer overflow. An attacker could possibly use this issue to cause libbson-xs-perl to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2024-6381)
It was discovered that the bundled libbson library in libbson-xs-perl did not correctly allocate memory in the bsonstringappend function, which could lead to a buffer overflow. An attacker could possibly use this issue to cause libbson-xs-perl to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2024-6383)
It was discovered that the bundled libbson library in libbson-xs-perl did not correctly handle the maximum size of BSON documents in its bsonappend functions, which could lead to a buffer overflow. An attacker could possibly use this issue to cause libbson-xs-perl to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2025-0755)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/libbson-xs-perlto a version that resolves this vulnerability.Fixed in 0.8.4-1+deb11u1build0.22.04.1
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Does this affect a separately installed libbson library or code included with the Perl package?
The affected libbson code is bundled with libbson-xs-perl. The notice identifies memory-handling flaws in bson_strfreev, bson_string_append, and bson_append functions.
Should crashes associated with this issue be treated only as a denial-of-service event?
No. The reported flaws can cause crashes and may also allow arbitrary code execution, so affected incidents should be assessed for both availability impact and potential compromise.