CVE-2020-12135
Duo Unix vulnerability analysis and mitigation

Overview

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 (MITRE CVE, NVD).

Technical details

The vulnerability exists in the bson_ensure_space() function where the bytesNeeded parameter is incorrectly typed as uint32_t instead of size_t. This can lead to an integer overflow when processing large inputs. The issue specifically occurs when the length of 'key' in .crash file exceeds certain bounds: UINT32_MAX - {length of 'value'} - 7 < {length of 'key'} < UINT32_MAX (GitHub Commit, Launchpad Bug).

Impact

A local attacker could use this vulnerability to cause Whoopsie to crash, resulting in a denial of service, or possibly execute arbitrary code through a crafted .crash file (Ubuntu Notice).

Exploitability

The vulnerability can be exploited by creating a specially crafted .crash file with specific key lengths that trigger the integer overflow condition. The exploitation requires local access to the system to create and place the malicious .crash file (Launchpad Bug).

Mitigation and workarounds

The issue has been fixed by updating the data type of bytesNeeded from uint32_t to size_t in the bson_ensure_space() function. Users should update to the following versions: Ubuntu 20.04: whoopsie 0.2.69ubuntu0.1, Ubuntu 18.04: whoopsie 0.2.62ubuntu0.5, Ubuntu 16.04: whoopsie 0.2.52.5ubuntu0.5 (Ubuntu Notice).

Additional resources


SourceThis report was generated using AI

Related Duo Unix vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2019-11484HIGH7.8
  • Duo Unix logoDuo Unix
  • whoopsie
NoYesFeb 08, 2020
CVE-2020-12135MEDIUM5.5
  • Duo Unix logoDuo Unix
  • duo-unix
NoYesApr 24, 2020

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management