Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

RUSTSEC-2026-0306

UNSCORED

`hex_decode_unchecked` AVX2 path reads past `src`

Mitigation

  • Upgrade faster-hex to 0.10.1 or later.

Who should check

  • Projects that depend on crates.io package faster-hex (>= 0.3.0, < 0.10.1)

Vulnerability facts

Affected
faster-hex >= 0.3.0, < 0.10.1
Fixed in
0.10.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
Published
Modified

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() >= 32` and then loads 32 bytes from `src` and 32 bytes from `src[32..]`. Nothing in that loop requires `src` to contain 64 bytes. A safe caller can pass a short `src` and a `dst` of at least 32 bytes. The AVX2 load then reads outside `src`. The 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() >= 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 `>= 0.10.1`. Other architectures take the scalar fallback and are outside this advisory.

Affected and fixed versions

Package / productAffectedFixedSource
crates.io faster-hex>= 0.3.0, < 0.10.10.10.1osv

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by RUSTSEC-2026-0306. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/RUSTSEC-2026-0306.md
Affected: faster-hex >= 0.3.0, < 0.10.1
Fixed in: 0.10.1

Steps:
1. Search this machine and project for faster-hex (crates.io): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is RUSTSEC-2026-0306 being exploited?

There is no confirmed exploitation: RUSTSEC-2026-0306 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is RUSTSEC-2026-0306?

It has no CVSS score yet. Unknown.

Which versions are affected by RUSTSEC-2026-0306?

faster-hex >= 0.3.0, < 0.10.1.

Is there a fix for RUSTSEC-2026-0306?

Yes. Fixed in 0.10.1. Upgrade faster-hex to 0.10.1 or later.

How do I check if I'm affected by RUSTSEC-2026-0306?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors