CVE-2025-4432 — Vulnerability in ring — CVE Details
Some AES functions may panic when overflow checking is enabled in ring
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.13%). Schedule for your next planned update.
Does your project use an affected ring version?
Paste your Cargo.lock to check it for CVE-2025-4432 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published March 7, 2025 (629 days ago).
- Last revised September 10, 2026 — 551 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p ring --precise 0.17.12
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| ring crates.io · Affected: All versions | 0.17.12 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-770Allocation of Resources Without LimitsMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
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/E:U
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-4432ADVISORY
- https://github.com/briansmith/ring/pull/2447WEB
- https://github.com/briansmith/ring/commit/ec2d3cf1d91f148c84e4806b4f0b3c98f6df3b38WEB
- https://access.redhat.com/security/cve/CVE-2025-4432WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2350655WEB
- https://github.com/briansmith/ringPACKAGE
- https://github.com/briansmith/ring/blob/main/RELEASES.md#version-01712-2025-03-05WEB
- https://rustsec.org/advisories/RUSTSEC-2025-0009.htmlWEB
Frequently Asked Questions
- What is CVE-2025-4432?
- Some AES functions may panic when overflow checking is enabled in ring. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2025-4432?
- CVE-2025-4432 affects ring. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-4432 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 66% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-115906MEDIUM
zip: AES Entry HMAC Authentication Bypass on Premature EOF
- CVE-2026-35374MEDIUM
split: TOCTOU output-open allows truncating a swapped file