{"id":"CVE-2021-31919","aliases":["EUVD-2021-1908","GHSA-w5cr-frph-hw7f","RUSTSEC-2021-0054"],"status":"published","title":"Use of uninitialized buffer in rkyv","description":"An issue was discovered in the rkyv crate before 0.6.0 for Rust. When an archive is created via serialization, the archive content may contain uninitialized values of certain parts of a struct.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01079,"percentile":0.65507,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-772","CWE-908","CWE-909"],"published":"2021-04-28T12:00:00Z","modified":"2026-10-24T10:30:51Z","fixes":[{"ecosystem":"crates.io","package":"rkyv","fixed_in":["0.6.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"rkyv","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"rkyv","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.6.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"rkyv","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.6.0"}]}]}],"products":[{"vendor":"rkyv_project","product":"rkyv"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0054.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31919","tags":["advisory"]},{"url":"https://github.com/djkoloski/rkyv/commit/9c65ae9c2c67dd949b5c3aba9b8eba6da802ab7e","tags":["web"]},{"url":"https://github.com/djkoloski/rkyv/commit/f141b560523a20557db6540576d153010bd18712","tags":["web"]},{"url":"https://github.com/djkoloski/rkyv/issues/113","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-w5cr-frph-hw7f"},{"url":"https://crates.io/crates/rkyv","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-31919","description":"An issue was discovered in the rkyv crate before 0.6.0 for Rust. When an archive is created via serialization, the archive content may contain uninitialized values of certain parts of a struct.","status":"published","published":"2021-04-30T03:00:15Z","modified":"2024-08-03T23:10:31.31Z","updated_at":"2026-11-02T14:33:05.665371Z"}],"euvd":[{"id":"EUVD-2021-1908","description":"An issue was discovered in the rkyv crate before 0.6.0 for Rust. When an archive is created via serialization, the archive content may contain uninitialized values of certain parts of a struct.","status":"published","published":"2021-04-30T03:00:15Z","modified":"2024-08-03T23:10:31Z","updated_at":"2026-11-03T03:24:37.407491Z"}],"ghsa":[{"id":"GHSA-w5cr-frph-hw7f","title":"Use of uninitialized buffer in rkyv","description":"An issue was discovered in the rkyv crate before 0.6.0 for Rust. When an archive is created via serialization, the archive content may contain uninitialized values of certain parts of a struct.","status":"published","published":"2021-08-25T21:01:50Z","modified":"2023-06-13T20:21:00Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-772","CWE-908"],"updated_at":"2026-11-02T14:36:54.225318Z"}],"nvd":[{"id":"CVE-2021-31919","description":"An issue was discovered in the rkyv crate before 0.6.0 for Rust. When an archive is created via serialization, the archive content may contain uninitialized values of certain parts of a struct.","status":"published","published":"2021-04-30T03:15:07.517Z","modified":"2026-06-17T03:52:29.423Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-909"],"updated_at":"2026-11-02T14:06:52.81233Z"}],"osv":[{"id":"CVE-2021-31919","description":"An issue was discovered in the rkyv crate before 0.6.0 for Rust. When an archive is created via serialization, the archive content may contain uninitialized values of certain parts of a struct.","status":"published","published":"2021-04-30T03:15:07.517Z","modified":"2026-10-24T10:30:51.624861357Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:19.483607Z"},{"id":"GHSA-w5cr-frph-hw7f","title":"Use of uninitialized buffer in rkyv","description":"An issue was discovered in the rkyv crate before 0.6.0 for Rust. When an archive is created via serialization, the archive content may contain uninitialized values of certain parts of a struct.","status":"published","published":"2021-08-25T21:01:50Z","modified":"2023-11-08T04:05:51.69952Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-772","CWE-908"],"updated_at":"2026-11-02T15:46:58.04805Z"},{"id":"RUSTSEC-2021-0054","title":"Archives may contain uninitialized memory","description":"`rkyv` is a serialization framework that writes struct-compatible memory to be stored or\ntransmitted. During serialization, struct padding bytes and unused enum bytes may not be\ninitialized. These bytes may be written to disk or sent over unsecured channels.","status":"published","published":"2021-04-28T12:00:00Z","modified":"2023-11-08T04:05:51.69952Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
