{"id":"UBUNTU-CVE-2020-25016","details":"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.","modified":"2026-05-20T16:04:17.419247048Z","published":"2020-08-29T16:15:00Z","upstream":["CVE-2020-25016"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-25016"},{"type":"REPORT","url":"https://rustsec.org/advisories/RUSTSEC-2020-0029.html"},{"type":"REPORT","url":"https://github.com/kornelski/rust-rgb/issues/35"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-25016"}],"affected":[{"package":{"name":"rust-rgb","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/rust-rgb?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.11-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-rgb+serde-dev","binary_version":"0.8.11-1"},{"binary_name":"librust-rgb-dev","binary_version":"0.8.11-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25016.json"}},{"package":{"name":"rust-rgb","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/rust-rgb?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.11-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-rgb+serde-dev","binary_version":"0.8.11-1"},{"binary_name":"librust-rgb-dev","binary_version":"0.8.11-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25016.json"}},{"package":{"name":"rust-rgb","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/rust-rgb?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.36-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-rgb-dev","binary_version":"0.8.36-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25016.json"}},{"package":{"name":"rust-rgb","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/rust-rgb?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.50-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-rgb-dev","binary_version":"0.8.50-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25016.json"}},{"package":{"name":"rust-rgb","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/rust-rgb?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8.50-1","0.8.52-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-rgb-dev","binary_version":"0.8.52-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25016.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}