{"answers":{"affected":"1 open source package ship an affected version, including faster-hex.","exploited":"There is no known exploitation of RUSTSEC-2026-0306 in the wild and no public exploit code.","fix":"Upgrade faster-hex to 0.10.1 or later.","what":"RUSTSEC-2026-0306 is a memory corruption vulnerability in faster-hex, published on 20 Sep 2026."},"fix_prompt":"Check this codebase for RUSTSEC-2026-0306 and fix it if it is affected.\n\nWhat it is: RUSTSEC-2026-0306 is a memory corruption vulnerability in faster-hex, published on 20 Sep 2026. \nExploitation: There is no known exploitation of RUSTSEC-2026-0306 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- faster-hex (crates.io): affected from 0.3.0; fixed in 0.10.1\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/RUSTSEC-2026-0306/ (Markdown: https://insights.sbomify.com/RUSTSEC-2026-0306/index.md)","id":"RUSTSEC-2026-0306","markdown":"https://insights.sbomify.com/RUSTSEC-2026-0306/index.md","name":"RUSTSEC-2026-0306","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"unknown","non_default_config":false,"product_category":"Rust hex decoding library","requires_auth":"none","summary":"A memory safety bug in the faster_hex library allows out-of-bounds reads on x86 systems with AVX2, potentially causing crashes or information disclosure.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"`faster_hex::hex_decode_unchecked` is a safe function. On x86 and x86_64, when AVX2 is enabled, `hex_decode_avx2` keeps decoding while `dst.len() \u003e= 32` and then loads 32 bytes from `src` and 32 bytes from `src[32..]`. Nothing in that loop requires `src` to contain 64 bytes.\n\nA safe caller can pass a short `src` and a `dst` of at least 32 bytes. The AVX2 load then reads outside `src`.\n\nThe function has had this shape since 0.3.0. 0.10.0 is the last release with the unbounded AVX2 read. The maintainer agreed to this advisory and shipped the backport in 0.10.1 (pull request 74): the AVX2 loop now requires `src.len() \u003e= 64` before those loads. 1.0.0 rewrites `hex_decode_unchecked` so the decoded length is `min(src.len() / 2, dst.len())`. Both are covered by `\u003e= 0.10.1`. Other architectures take the scalar fallback and are outside this advisory.","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":"`hex_decode_unchecked` AVX2 path reads past `src`","id":"RUSTSEC-2026-0306","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"memory_corruption","year":"2026"},"n_packages":1,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.10.1"],"introduced":["0.3.0"],"last_affected":[],"package":"faster-hex","purl":"pkg:cargo/faster-hex","source":"RUSTSEC-2026-0306"}],"products":null,"published":"2026-09-20","related":[],"sources":[{"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 memory safety bug in the faster_hex library allows out-of-bounds reads on x86 systems with AVX2, potentially causing crashes or information disclosure.","url":"https://insights.sbomify.com/RUSTSEC-2026-0306/"}