# CVE-2020-12135: libwhoopsie0: bson before 0.8 incorrectly uses int rather than size_t for many variables,parameters, and return values

CVE-2020-12135 is fixed in 2 products on 1 platform, first by libwhoopsie0 0.2.62ubuntu0.5, released July 6, 2020. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2020-12135
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0117
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 23, 2020

## 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 properlyconstructed bson input.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libwhoopsie0 Ubuntu 18.04.6 LTS (bionic) | 0.2.62ubuntu0.5 | [libwhoopsie0 0.2.62ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libwhoopsie0-0.2.62ubuntu0.5.md) | Jul 6, 2020 |
| Linux | libwhoopsie0 Ubuntu 20.04 LTS (focal) | 0.2.69ubuntu0.1 | [libwhoopsie0 0.2.69ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libwhoopsie0-0.2.69ubuntu0.1.md) | Jul 6, 2020 |
| Linux | libwhoopsie0 Ubuntu 24.10 (oracular) | 0.2.71 | [libwhoopsie0 0.2.71](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-libwhoopsie0-0.2.71.md) | Jan 16, 2026 |
| Linux | libwhoopsie0 Ubuntu 25.04 (plucky) | 0.2.71 | [libwhoopsie0 0.2.71](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libwhoopsie0-0.2.71.md) | Jan 16, 2026 |
| Linux | whoopsie Ubuntu 18.04.6 LTS (bionic) | 0.2.62ubuntu0.5 | [whoopsie 0.2.62ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-whoopsie-0.2.62ubuntu0.5.md) | Jul 6, 2020 |
| Linux | whoopsie Ubuntu 20.04 LTS (focal) | 0.2.69ubuntu0.1 | [whoopsie 0.2.69ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-whoopsie-0.2.69ubuntu0.1.md) | Jul 6, 2020 |
| Linux | whoopsie Ubuntu 24.10 (oracular) | 0.2.71 | [whoopsie 0.2.71](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-whoopsie-0.2.71.md) | Jan 16, 2026 |
| Linux | whoopsie Ubuntu 25.04 (plucky) | 0.2.71 | [whoopsie 0.2.71](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-whoopsie-0.2.71.md) | Jan 16, 2026 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
