CVE-2018-1000810
rust: Buffer overflow in str::repeat function in the standard library
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium).
Description
The Rust Programming Language Standard Library version 1.29.0, 1.28.0, 1.27.2, 1.27.1, 127.0, 126.2, 126.1, 126.0 contains a CWE-680: Integer Overflow to Buffer Overflow vulnerability in standard library that can result in buffer overflow. This attack appear to be exploitable via str::repeat, passed a large number, can overflow an internal buffer. This vulnerability appears to have been fixed in 1.29.1.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| debian 11 | rustc | 1.30.0+dfsg1-1 |
| debian 12 | rustc | 1.30.0+dfsg1-1 |
| debian 13 | rustc | 1.30.0+dfsg1-1 |
| debian 14 | rustc | 1.30.0+dfsg1-1 |
| echo | rustc | 1.30.0+dfsg1-1 |
References
- https://access.redhat.com/security/cve/CVE-2018-1000810
- https://blog.rust-lang.org/2018/09/21/Security-advisory-for-std.html
- https://groups.google.com/forum/#%21topic/rustlang-security-announcements/CmSuTm-SaU0
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000810
- https://security.gentoo.org/glsa/201812-11
- https://www.cve.org/CVERecord?id=CVE-2018-1000810