CVE-2020-12135
JSON

5.5medium

bson before 0.8 incorrectly uses int rather than sizet for many variables, parameters, and return values.

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
1.17% (higher than 68% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
whoopsie_project whoopsieup to 0.2.69NVD
mongodb c_driverbefore 0.8NVD

All scores

NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

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.

NVD (es)

bson en versiones anteriores a la 0.8 usa incorrectamente int en lugar de size_t para muchas variables, parámetros y valores de retorno. En particular, el parámetro bson_ensure_space () bytesNeeded podría tener un desbordamiento de enteros a través de una entrada bson construida correctamente.

References

Sources

SourceRecordLicence
CVE ListCVE-2020-12135 changed 2024-08-04CVE Terms of Use
NVDCVE-2020-12135 changed 2026-06-17Public domain