GHSA-3288-p39f-rqpv: Keccak Unsoundness Vulnerability

LOW
CWE-758
Published
Advisory Summary

GHSA-3288-p39f-rqpv is a LOW unsoundness vulnerability (CWE-758: Reliance on Undefined, Unspecified, or Implementation-Defined Behavior) affecting Keccak libraries in the crates.io ecosystem. The issue involves unsoundness in opt-in armv8 assembly backend for `keccak`. Remediation is available by upgrading affected packages to version 0.1.6.

GHSA-3288-p39f-rqpv at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-3288-p39f-rqpv
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-758: Reliance on Undefined, Unspecified, or Implementation-Defined Behavior
Affected Product Keccak
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-3288-p39f-rqpv

To remediate this vulnerability, upgrade all affected Keccak dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

keccak fixed: 0.1.6
Upgrade keccak to 0.1.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for keccak

How to Check if You Are Affected

To determine whether your application is affected by GHSA-3288-p39f-rqpv, inspect your project dependencies for Keccak:

inspect dependencies for keccak

Analyze the terminal output to locate any version of Keccak in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.6), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-758: Reliance on Undefined, Unspecified, or Implementation-Defined Behavior, where the product uses an api function, data structure, or other entity in a way that relies on properties that are not always guaranteed to hold for that entity. In Keccak, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

GHSA-3288-p39f-rqpv Affected Keccak Versions

1 component(s)
Fixed Versions:
0.1.6
Product / Package Ecosystem Affected Versions Fixed Version
keccak
crates.io
< 0.1.6
0.1.6

References

Frequently Asked Questions

What is GHSA-3288-p39f-rqpv?
GHSA-3288-p39f-rqpv is a security vulnerability in Keccak involving Unsoundness in opt-in ARMv8 assembly backend for `keccak` under CWE-758: Reliance on Undefined, Unspecified, or Implementation-Defined Behavior.
Which Keccak versions are affected?
Affected versions include releases prior to 0.1.6 across affected packages: keccak.
What version fixes GHSA-3288-p39f-rqpv?
Upgrading to 0.1.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is keccak affected?
Yes, keccak is affected in releases prior to 0.1.6. Upgrade your dependency to 0.1.6 or later.
What CWE is associated with GHSA-3288-p39f-rqpv?
GHSA-3288-p39f-rqpv is classified under CWE-758: Reliance on Undefined, Unspecified, or Implementation-Defined Behavior (The product uses an API function, data structure, or other entity in a way that relies on properties that are not always guaranteed to hold for that entity.).
How can I check crates.io dependencies for GHSA-3288-p39f-rqpv?
Run the dependency tree command: 'inspect dependencies for keccak'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3288-p39f-rqpv",
  "modified" : "2026-02-19T15:17:41Z",
  "published" : "2026-02-19T15:17:41Z",
  "aliases" : [ ],
  "summary" : "Unsoundness in opt-in ARMv8 assembly backend for `keccak`",
  "details" : "### Summary\n\nThe `asm!` block enabled by the off-by-default `asm` feature, when enabled on ARMv8 targets, misspecified the operand\ntype for all of its operands, using `in` for pointers and values which were subsequently mutated by operations performed\nwithin the assembly block.\n\n### Impact\n\nIt's unclear what practical impact, if any, this actually had. Incorrect operand types are technically undefined\nbehavior, however changing them had no actual impact on the generated assembly for these targets. The possibility still\nexists that it may lead to potential memory safety or other issues on hypothetical future versions of rustc.\n\n### Mitigation\n\nThe operand types were changed from `in` to `inout`, and the impacted versions of the `keccak` crate were yanked.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "keccak"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/RustCrypto/sponges/pull/101"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/RustCrypto/sponges/commit/7ac1920198ebb7d0192e6d2c3581e15b38a6e0e5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/RustCrypto/sponges"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2026-0012.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-758" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-19T15:17:41Z",
    "nvd_published_at" : null
  }
}