{"answers":{"affected":"3 open source packages ship an affected version, including rkyv.","exploited":"There is no known exploitation of GHSA-vfvv-c25p-m7mm in the wild and no public exploit code.","fix":"Upgrade rkyv to 0.8.16 or later.","what":"GHSA-vfvv-c25p-m7mm is an use after free vulnerability in rkyv, published on 23 Apr 2026."},"fix_prompt":"Check this codebase for GHSA-vfvv-c25p-m7mm and fix it if it is affected.\n\nWhat it is: GHSA-vfvv-c25p-m7mm is an use after free vulnerability in rkyv, published on 23 Apr 2026. \nExploitation: There is no known exploitation of GHSA-vfvv-c25p-m7mm in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- rkyv (crates.io): affected from 0.8.0; fixed in 0.8.16\n- rkyv (crates.io): affected from 0.8.0; fixed in 0.8.16\n- rkyv (crates.io): affected from 0.8.0; fixed in 0.8.16\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-vfvv-c25p-m7mm/ (Markdown: https://insights.sbomify.com/GHSA-vfvv-c25p-m7mm/index.md)","id":"GHSA-vfvv-c25p-m7mm","markdown":"https://insights.sbomify.com/GHSA-vfvv-c25p-m7mm/index.md","name":"GHSA-vfvv-c25p-m7mm","record":{"aliases":["RUSTSEC-2026-0122"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution","denial_of_service"],"network_reachable":"unknown","non_default_config":true,"product_category":"Rust serialization library","requires_auth":"none","summary":"A use-after-free vulnerability in rkyv allows memory corruption or double-free if a panic occurs during vector clearing, potentially leading to code execution.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"`InlineVec::clear()` and `SerVec::clear()` in `rkyv` were not panic-safe.\nBoth functions iterate over their elements and call `drop_in_place` on each,\nupdating `self.len` only *after* the loop. If an element's `Drop` implementation\npanics during the loop, `self.len` is left at its original value.\n\nA subsequent invocation of `clear()` on the same container then re-visits the\nalready-freed elements:\n\n- `InlineVec::clear()` is called again from `InlineVec`'s own `Drop`\n  implementation when the value is later dropped.\n- `SerVec::clear()` is called again by `SerVec::with_capacity()` after the\n  user closure returns.\n\n## Impact\n- **CWE-415 (Double Free):** heap corruption when the element type is one that\n  owns memory, such as `Box\u003cT\u003e` or `Vec\u003cT\u003e`\n- **CWE-416 (Use-After-Free):** memory corruption when an element is accessed\n  following a caught panic\n\nBoth types of undefined behavior can be invoked in safe Rust, but only if\nunwinding panics are enabled and `std::panic::catch_unwind` is used.","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Potential use-after-free due to lack of panic safety in `InlineVec::clear` and `SerVec::clear`","id":"GHSA-vfvv-c25p-m7mm","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"use_after_free","year":"2026"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.8.16"],"introduced":["0.8.0"],"last_affected":[],"package":"rkyv","purl":null,"source":"GHSA-vfvv-c25p-m7mm"},{"ecosystem":"crates.io","fixed":["0.8.16"],"introduced":["0.8.0"],"last_affected":[],"package":"rkyv","purl":"pkg:cargo/rkyv","source":"GHSA-vfvv-c25p-m7mm"},{"ecosystem":"crates.io","fixed":["0.8.16"],"introduced":["0.8.0"],"last_affected":[],"package":"rkyv","purl":"pkg:cargo/rkyv","source":"RUSTSEC-2026-0122"}],"products":null,"published":"2026-04-23","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A use-after-free vulnerability in rkyv allows memory corruption or double-free if a panic occurs during vector clearing, potentially leading to code execution.","url":"https://insights.sbomify.com/GHSA-vfvv-c25p-m7mm/"}