Email me

Rust advisories / ring

Vulnerability MediumRUSTSEC-2025-0009 · ring

RUSTSEC-2025-0009: Some AES functions may panic when overflow checking is enabled.

Short answerA security vulnerability in the ring crate: Some AES functions may panic when overflow checking is enabled.. GitHub rates it Medium. Fixed in 0.17.12: update to a fixed version.

Cratering
TypeVulnerability (denial-of-service)
Affected versionsBefore 0.17.12.
Fixed in0.17.12
SeverityMedium (GitHub rating)
Published2025-03-06
Last changed2025-10-28
Also known asCVE-2025-4432, GHSA-4p46-pwfr-66x6, GHSA-c86p-w88r-qvqr, GO-2025-3678

What to do

  1. See which version you have: cargo tree -i ring (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p ring. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example ring = "0.17.12") 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

ring::aead::quic::HeaderProtectionKey::new_mask() may panic when overflow checking is enabled. In the QUIC protocol, an attacker can induce this panic by sending a specially-crafted packet. Even unintentionally it is likely to occur in 1 out of every 2**32 packets sent and/or received.

On 64-bit targets operations using ring::aead::{AES_128_GCM, AES_256_GCM} may panic when overflow checking is enabled, when encrypting/decrypting approximately 68,719,476,700 bytes (about 64 gigabytes) of data in a single chunk. Protocols like TLS and SSH are not affected by this because those protocols break large amounts of data into small chunks. Similarly, most applications will not attempt to encrypt/decrypt 64GB of data in one chunk.

Overflow checking is not enabled in release mode by default, but RUSTFLAGS="-C overflow-checks" or overflow-checks = true in the Cargo.toml profile can override this. Overflow checking is usually enabled by default in debug mode.

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 ring

Full security history of ring

Up next

Same cratering: 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