Email me

Rust advisories / libcrux-ml-dsa

Vulnerability HighRUSTSEC-2026-0076 · libcrux-ml-dsa

RUSTSEC-2026-0076: Panic in Signature Hint Decoding During Verification

Short answerA security vulnerability in the libcrux-ml-dsa crate: Panic in Signature Hint Decoding During Verification. GitHub rates it High. Fixed in 0.0.8: update to a fixed version.

Cratelibcrux-ml-dsa
TypeVulnerability
Affected versionsBefore 0.0.8.
Fixed in0.0.8
SeverityHigh (GitHub rating)
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
Published2026-03-04
Last changed2026-03-27
Also known asGHSA-xrf2-5r3p-5wgj
Affected functionslibcrux_ml_dsa::ml_dsa_44::verify, libcrux_ml_dsa::ml_dsa_65::verify, libcrux_ml_dsa::ml_dsa_87::verify

What to do

  1. See which version you have: cargo tree -i libcrux-ml-dsa (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p libcrux-ml-dsa. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example libcrux-ml-dsa = "0.0.8") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

During ML-DSA verification the serialized hint values are decoded as specified in algorithm 22 HintBitUnpack of FIPS 204, subsection 7.1. The algorithm requires that the cumulative hint counters per row of the hint vector are strictly increasing and below a maximum value which depends on the choice of ML-DSA parameter set (line 4).

In libcrux-ml-dsa, hint decoding did not check the boundedness of the cumulative hint counter of the last row of the hint vector.

Impact

A manipulated invalid hint can cause an out-of-bounds memory access since the hint decoding logic may attempt to read outside the bounds of the serialized signature, causing a runtime panic.

Mitigation

Starting from version 0.0.8, hint decoding will check the cumulative hint counter of the last row as well.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for libcrux-ml-dsa

Full security history of libcrux-ml-dsa

Up next

Same cratelibcrux-ml-dsa: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ