IntelligenceAdvisoriesAdvisory
RUSTSEC-2025-0009
Some AES functions may panic when overflow checking is enabled.
In short
What to know.
- Package
- ring crates.iofrom 0.0.0-0 before 0.17.12
- What to do
- Upgrade ring to 0.17.12 or later.
- Source's rating
- Not ratedNoumen has not assessed it.
- Noumen finding
- NMN-2026-0090Candidate. Severity unknown, confidence high.
3 December 2026
Source
- OSV record RUSTSEC-2025-0009osv.devRetrieved 3 December 2026
Full record
- Identifier
- RUSTSEC-2025-0009
- Aliases
- CVE-2025-4432, GHSA-4p46-pwfr-66x6, GHSA-c86p-w88r-qvqr, GO-2025-3678
- Severity
- Not rated, as rated by the source. Noumen has not assessed it.
- Fixed versions
- 0.17.12
- Published
- 6 March 2025
- Modified
- 28 October 2025
- Source
- OSV record RUSTSEC-2025-0009, retrieved 3 December 2026, 00:00 UTC
Affected packages and ranges
| Package | Affected versions | Fixed in |
|---|---|---|
| ring crates.io | from 0.0.0-0 before 0.17.12 | 0.17.12 |
Affected means inside a published range, not that the code path is reachable in your project.
Details, as published by the source
`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.
