GHSA-pv9v-5j35-xwcr: Libcrux poly1305 Libcrux Panics During Standalone MAC Vulnerability

HIGH
CWE-125 CWE-805
Published
Advisory Summary

GHSA-pv9v-5j35-xwcr is a HIGH libcrux panics during standalone mac vulnerability (CWE-125: Out-of-bounds Read) affecting Libcrux poly1305 libraries in the crates.io ecosystem. The issue involves libcrux panics during standalone mac operations. Remediation is available by upgrading affected packages to version 0.0.5.

GHSA-pv9v-5j35-xwcr at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-pv9v-5j35-xwcr
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-125: Out-of-bounds Read
Affected Product Libcrux poly1305
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-pv9v-5j35-xwcr

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

libcrux-poly1305 fixed: 0.0.5
Upgrade libcrux-poly1305 to 0.0.5
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 libcrux-poly1305

How to Check if You Are Affected

To determine whether your application is affected by GHSA-pv9v-5j35-xwcr, inspect your project dependencies for Libcrux poly1305:

inspect dependencies for libcrux-poly1305

Analyze the terminal output to locate any version of Libcrux poly1305 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.5), 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-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Libcrux poly1305, 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

An incorrect constant for the key length in libcrux-poly1305 caused the standalone MAC function `libcrux_poly1305::mac` to always panic with an out-of-bounds memory access. ## Impact Applications wishing to use libcrux-poly1305 as a standalone MAC would experience panics. The use of libcrux-poly1305 in libcrux-chacha20poly1305 is unaffected. ## Mitigation Starting from version `0.0.5`, the correct value is used for the key length constant.

GHSA-pv9v-5j35-xwcr Affected Libcrux poly1305 Versions

1 component(s)
Fixed Versions:
0.0.5
Product / Package Ecosystem Affected Versions Fixed Version
libcrux-poly1305
crates.io
< 0.0.5
0.0.5

References

Frequently Asked Questions

What is GHSA-pv9v-5j35-xwcr?
GHSA-pv9v-5j35-xwcr is a security vulnerability in Libcrux poly1305 involving libcrux Panics During Standalone MAC Operations under CWE-125: Out-of-bounds Read.
Which Libcrux poly1305 versions are affected?
Affected versions include releases prior to 0.0.5 across affected packages: libcrux-poly1305.
What version fixes GHSA-pv9v-5j35-xwcr?
Upgrading to 0.0.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is libcrux-poly1305 affected?
Yes, libcrux-poly1305 is affected in releases prior to 0.0.5. Upgrade your dependency to 0.0.5 or later.
What CWE is associated with GHSA-pv9v-5j35-xwcr?
GHSA-pv9v-5j35-xwcr is classified under CWE-125: Out-of-bounds Read (The product reads data past the end, or before the beginning, of the intended buffer.).
How can I check crates.io dependencies for GHSA-pv9v-5j35-xwcr?
Run the dependency tree command: 'inspect dependencies for libcrux-poly1305'. 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-pv9v-5j35-xwcr",
  "modified" : "2026-03-26T18:00:05Z",
  "published" : "2026-03-26T18:00:05Z",
  "aliases" : [ ],
  "summary" : "libcrux Panics During Standalone MAC Operations",
  "details" : "An incorrect constant for the key length in libcrux-poly1305 caused the standalone MAC function `libcrux_poly1305::mac` to always panic with an out-of-bounds memory access.\n\n## Impact\nApplications wishing to use libcrux-poly1305 as a standalone MAC would experience panics. The use of libcrux-poly1305 in libcrux-chacha20poly1305 is unaffected.\n\n## Mitigation\nStarting from version `0.0.5`, the correct value is used for the key length constant.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "libcrux-poly1305"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cryspen/libcrux/pull/1351"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cryspen/libcrux"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2026-0073.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-125", "CWE-805" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-26T18:00:05Z",
    "nvd_published_at" : null
  }
}