Advisory
UBUNTU-CVE-2020-12135
Also known as: CVE-2020-12135
Summary
The record has no summary.
Details
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.
Severity
Medium Basis: CVSS v3 score 5.5, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Dates
- Published
- 2020-04-24 01:15 UTC
- Modified
- 2026-10-17 12:55 UTC
Affected packages and fixes
| Package | System | Affected | Fix |
|---|---|---|---|
| whoopsie | Debian packages (deb) · Ubuntu 16.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| duo-unix | Debian packages (deb) · Ubuntu 16.04 | introduced 0 | No fixed version is listed. |
| whoopsie | Debian packages (deb) · Ubuntu 18.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| duo-unix | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| whoopsie | Debian packages (deb) · Ubuntu 20.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| duo-unix | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| duo-unix | Debian packages (deb) · Ubuntu 22.04 | introduced 0 | No fixed version is listed. |
| duo-unix | Debian packages (deb) · Ubuntu 24.04 | introduced 0 | No fixed version is listed. |
| duo-unix | Debian packages (deb) · Ubuntu 25.10 | introduced 0 | No fixed version is listed. |
| duo-unix | Debian packages (deb) · Ubuntu 26.10 | introduced 0 | No fixed version is listed. |
| duo-unix | Debian packages (deb) · Ubuntu 26.04 | introduced 0 | No fixed version is listed. |
Some commands upgrade the distribution's packages. Compare the fixed version with the version you have installed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Links
- https://ubuntu.com/security/CVE-2020-12135
- https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577
- https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch
- https://ubuntu.com/security/notices/USN-4450-1
- https://www.cve.org/CVERecord?id=CVE-2020-12135
Source
Source: Ubuntu Security Notices · CC BY-SA 4.0