CVE-2020-25016
CRITICAL 9.1CVSS 3.1Out of bounds access in rgb
A safety violation was discovered in the rgb crate before 0.8.20 for Rust, leading to (for example) dereferencing of arbitrary pointers or disclosure of uninitialized memory. This occurs because structs can be treated as bytes for read and write operations.
- Published
- 29 Aug 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-119CWE-843
- Also known as
- GHSA-g4rw-8m5q-6453RUSTSEC-2020-0029
- Sources
- NVDJSONOSV GHSA-g4rw-8m5q-6453JSONOSV RUSTSEC-2020-0029JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | RustSec | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.4 | AV:N/AC:L/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rgb-rust_project | rgb-rustcpe:2.3:a:rgb-rust_project:rgb-rust:*:*:*:*:*:*:*:* |
< 0.8.20 | 0.8.20 |
| OSV | crates.io | rgb | >= 0.5.4, < 0.8.20 | 0.8.20 |
References
- https://github.com/kornelski/rust-rgb/issues/35 · Exploit, Third Party Advisory, WEB, REPORT
- https://rustsec.org/advisories/RUSTSEC-2020-0029.html · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2020-25016 · ADVISORY
- https://github.com/kornelski/rust-rgb · PACKAGE
- https://crates.io/crates/rgb · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 29 Aug 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Jun 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)