Buffer overflow in Rust Programming Language - CVE-2019-12083

 

Buffer overflow in Rust Programming Language - CVE-2019-12083

Published: May 13, 2019 / Updated: July 17, 2020


Vulnerability identifier: #VU31073
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-12083
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

The Rust Programming Language Standard Library 1.34.x before 1.34.2 contains a stabilized method which, if overridden, can violate Rust's safety guarantees and cause memory unsafety. If the `Error::type_id` method is overridden then any type can be safely cast to any other type, causing memory safety vulnerabilities in safe code (e.g., out-of-bounds write or read). Code that does not manually implement Error::type_id is unaffected.


Affected software

Rust Programming Language

hostapd (Alpine package)
rust (Alpine package)
rust
Fedora

How to mitigate CVE-2019-12083

Install update from vendor's website.

Rust Programming Language - update to 1.34.2
hostapd (Alpine package) - addressed in versions 0.7.3-r2, 0.7.3-r3
rust - addressed in versions 1.34.2-1.el7, 1.34.2-1.fc29, 1.34.2-1.fc30, 1.35.0-1.el7
- update to 2.11-8ubuntu4

External References

Related Security Bulletins