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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| whoopsie_project whoopsie | up to 0.2.69 | NVD |
| mongodb c_driver | before 0.8 | NVD |
All scores
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 4.3medium CVSS:2.0 | AV: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
| https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560 | exploit, third-party-advisory | |
| https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch | patch, third-party-advisory | |
| https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577 | patch, third-party-advisory | |
| https://usn.ubuntu.com/4450-1/ | vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-12135 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2020-12135 changed 2026-06-17 | Public domain |