# CVE-2020-25016: Out of bounds access in rgb

- Severity: Critical 9.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.59%, higher than 76% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-06-14T12:00:00.000Z
- Modified: 2026-06-17T03:06:14.650Z
- Also known as: GHSA-g4rw-8m5q-6453, RUSTSEC-2020-0029
- Weaknesses: CWE-119, CWE-843
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- rgb (crates.io): from 0.5.4 before 0.8.20
- rgb-rust_project rgb-rust: before 0.8.20

## Every score

- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- RustSec Advisory Database: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:P/I:P/A:N`

## References

- <https://github.com/kornelski/rust-rgb/issues/35> (exploit, report, third-party-advisory, web)
- <https://rustsec.org/advisories/RUSTSEC-2020-0029.html> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-25016> (advisory)
- <https://github.com/kornelski/rust-rgb> (package)
- <https://crates.io/crates/rgb> (package)

## Sources

- CVE List: [CVE-2020-25016](https://www.cve.org/CVERecord?id=CVE-2020-25016), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-g4rw-8m5q-6453](https://github.com/advisories/GHSA-g4rw-8m5q-6453), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2020-0029](https://rustsec.org/advisories/RUSTSEC-2020-0029.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2020-25016](https://nvd.nist.gov/vuln/detail/CVE-2020-25016), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-25016 · Whole record: https://cve.day/CVE-2020-25016.json · Rebuilt by cve.day 2026-11-25T22:57:54.418Z
