CVE-2021-31919Rkyv Project Rkyv
High 7.5 No auth needed
Follow: this CVE · Rkyv Project · Rkyv Project Rkyv We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 65
- Auth required
- No
- Published
- Apr 30, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-909
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Rkyv.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | rkyv |
< 0.6.0 |
0.6.0 |
cargo update -p rkyv --precise 0.6.0 |
| crates.io | rkyv |
≥ 0.0.0-0 < 0.6.0 |
0.6.0 |
cargo update -p rkyv --precise 0.6.0 |
Per OSV / GitHub Advisories (GHSA-w5cr-frph-hw7f, RUSTSEC-2021-0054). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rkyv_project | rkyv | < 0.6.0 |
Official sources
References
Links published by the sources. Open them with care.
- rustsec.org Third Party Advisory