# GHSA-3288-p39f-rqpv: Unsoundness in opt-in ARMv8 assembly backend for `keccak`

- Severity: Low (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-02-12T12:00:00.000Z
- Modified: 2026-09-10T03:50:59.332Z
- Also known as: RUSTSEC-2026-0012
- Weaknesses: CWE-758

## Description

### Summary

The `asm!` block enabled by the off-by-default `asm` feature, when enabled on ARMv8 targets, misspecified the operand
type for all of its operands, using `in` for pointers and values which were subsequently mutated by operations performed
within the assembly block.

### Impact

It's unclear what practical impact, if any, this actually had. Incorrect operand types are technically undefined
behavior, however changing them had no actual impact on the generated assembly for these targets. The possibility still
exists that it may lead to potential memory safety or other issues on hypothetical future versions of rustc.

### Mitigation

The operand types were changed from `in` to `inout`, and the impacted versions of the `keccak` crate were yanked.

(As written by GitHub Advisory Database.)

## Affected

- keccak (crates.io): before 0.1.6; from 0.0.0-0 before 0.1.6

## References

- <https://github.com/RustCrypto/sponges/pull/101> (web)
- <https://github.com/RustCrypto/sponges/commit/7ac1920198ebb7d0192e6d2c3581e15b38a6e0e5> (web)
- <https://github.com/RustCrypto/sponges> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0012.html> (advisory, web)
- <https://crates.io/crates/keccak> (package)

## Sources

- GitHub Advisory Database: [GHSA-3288-p39f-rqpv](https://github.com/advisories/GHSA-3288-p39f-rqpv), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2026-0012](https://rustsec.org/advisories/RUSTSEC-2026-0012.html), CC0-1.0, modified 2026-02-20

---

Page: https://cve.day/GHSA-3288-p39f-rqpv · Whole record: https://cve.day/GHSA-3288-p39f-rqpv.json · Rebuilt by cve.day 2026-11-25T22:56:43.304Z
