CVEvulnerability

CVE-2020-12135

5.5 MEDIUM Published 2020-04-24 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2020-04-24
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0 ([email protected])
4.3 MEDIUM — AV:N/AC:M/Au:N/C:N/I:N/A:P
Weaknesses
CWE-190

Description

bson before 0.8 incorrectly uses int rather than size_t for many variables, parameters, and return values. In particular, the bson_ensure_space() parameter bytesNeeded could have an integer overflow via properly constructed bson input.

Affected configurations

• whoopsie project whoopsie (<= 0.2.69) • mongodb c driver (< 0.8)

Related

Weakness · CWE (1)

  • CWE-190 Integer Overflow or Wraparound weakness

References