{"id":"CVE-2021-25904","aliases":["CVE-2021-25904","GHSA-352p-rhvq-7g78","RUSTSEC-2021-0007"],"related":[],"kind":"vulnerability","state":"published","title":"Null pointer deference in av-data","summary":"An issue was discovered in the av-data crate before 0.3.0 for Rust. A raw pointer is dereferenced, leading to a read of an arbitrary memory address, sometimes causing a segfault.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the av-data crate before 0.3.0 for Rust. A raw pointer is dereferenced, leading to a read of an arbitrary memory address, sometimes causing a segfault.","source":"cvelist"},{"lang":"en","text":"`fn Frame::copy_from_raw_parts()` is a safe API that can take a\nraw pointer and dereference it. It is possible to read arbitrary memory address\nwith an arbitrarily fed pointer. This allows the safe API to access & read\narbitrary address in memory. Feeding an invalid memory address pointer to\nthe API may also cause the program to segfault.\n\nThe flaw was corrected in https://github.com/rust-av/rust-av/pull/137,\nby removing the API `fn Frame::copy_from_raw_parts()`.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate av-data versiones anteriores a 0.3.0 para Rust.&#xa0;Un puntero sin procesar es desreferenciado, conllevando a la lectura de una dirección de memoria arbitraria, lo que a veces causa un fallo de segmentación","source":"nvd"}],"published":"2021-01-07T12:00:00.000Z","modified":"2026-06-17T03:42:33.187Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.0"}],"ecosystem":"crates.io","package":"av-data","purl":"pkg:cargo/av-data","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.3.0"}],"ecosystem":"crates.io","package":"av-data","purl":"pkg:cargo/av-data","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.3.0"}],"vendor":"av-data_project","product":"av-data","cpe":"cpe:2.3:a:av-data_project:av-data:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0007.html","tags":["advisory","exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25904","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rust-av/rust-av/issues/136","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/rust-av/rust-av","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/av-data","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-25904","url":"https://www.cve.org/CVERecord?id=CVE-2021-25904","licence":"CVE Terms of Use","modified":"2024-08-03T20:11:28.450Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-352p-rhvq-7g78","url":"https://github.com/advisories/GHSA-352p-rhvq-7g78","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:16.736Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0007","url":"https://rustsec.org/advisories/RUSTSEC-2021-0007.html","licence":"CC0-1.0","modified":"2023-11-08T04:05:16.736Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-25904","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25904","licence":"Public domain","modified":"2026-06-17T03:42:33.187Z"}],"updatedAt":"2026-11-25T22:57:59.724Z","epss":{"score":0.01343,"percentile":0.72182,"date":"2026-12-01T12:00:22.000Z"}}