Skip to content
OpenAdvisories
Unscored CVE-2017-14227 EUVD-2017-5737GHSA-98vg-qmpv-23vr

In MongoDB libbson 1.7.0, the bson_iter_codewscope function in bson-iter.c miscalculates a bson_utf8_validate length argument, which allows…

Published Sep 9, 2017 · Updated Nov 3, 2025 · Assigned by mitre

Description

In MongoDB libbson 1.7.0, the bson_iter_codewscope function in bson-iter.c miscalculates a bson_utf8_validate length argument, which allows remote attackers to cause a denial of service (heap-based buffer over-read in the bson_utf8_validate function in bson-utf8.c), as demonstrated by bson-to-json.c.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 libbson-xs-perl 0.8.4-2+deb12u1 —
Debian 11 libbson-xs-perl 0.8.4-1+deb11u1 DLA-4160-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS libbson 1.9.2-1ubuntu0.1~esm2 USN-4812-1
Ubuntu Pro 16.04 LTS libbson 1.3.1-1ubuntu0.1~esm1 USN-4812-1

Advisories 3

References