# CVE-2020-12135

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2020-04-24 · Modified: 2024-08-04
- Aliases: UBUNTU-CVE-2020-12135, DEBIAN-CVE-2020-12135
- Record: https://cvemate.com/vulnerability/CVE-2020-12135 · JSON: https://cvemate.com/vulnerability/CVE-2020-12135/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 1.165%, percentile 68.36%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian duo-unix (Debian): All versions (No fix recorded)
- ubuntu duo-unix (Ubuntu): All versions (No fix recorded)
- ubuntu whoopsie (Ubuntu): \< 0.2.52.5ubuntu0.5 \| \< 0.2.62ubuntu0.5 \| \< 0.2.69ubuntu0.1
- mongodb c driver: \< 0.8
- whoopsie\_project whoopsie: ≤ 0.2.69

## References

- <https://bugs.launchpad.net/ubuntu/+source/whoopsie/+bug/1872560>
- <https://launchpadlibrarian.net/474887364/bson-fix-overflow.patch>
- <https://github.com/10gen-archive/mongo-c-driver-legacy/commit/1a1f5e26a4309480d88598913f9eebf9e9cba8ca#diff-f7d29a680148f52d6601f59ed787f577>
- <https://usn.ubuntu.com/4450-1/>
- <https://ubuntu.com/security/CVE-2020-12135>
- <https://ubuntu.com/security/notices/USN-4450-1>
- <https://www.cve.org/CVERecord?id=CVE-2020-12135>
- <https://security-tracker.debian.org/tracker/CVE-2020-12135>

---

Data as of 2026-12-05T12:31:12.029Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
