Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. ring
  4. ›
  5. CVE-2025-4432

CVE-2025-4432: Some AES functions may panic when overflow checking is enabled in ring

March 7, 2025 (updated December 29, 2025)

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

  • access.redhat.com/security/cve/CVE-2025-4432
  • bugzilla.redhat.com/show_bug.cgi?id=2350655
  • github.com/advisories/GHSA-4p46-pwfr-66x6
  • github.com/briansmith/ring
  • github.com/briansmith/ring/blob/main/RELEASES.md
  • github.com/briansmith/ring/commit/ec2d3cf1d91f148c84e4806b4f0b3c98f6df3b38
  • github.com/briansmith/ring/pull/2447
  • nvd.nist.gov/vuln/detail/CVE-2025-4432
  • rustsec.org/advisories/RUSTSEC-2025-0009.html

Code Behaviors & Features

Detect and mitigate CVE-2025-4432 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.17.12

Fixed versions

  • 0.17.12

Solution

Upgrade to version 0.17.12 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

cargo/ring/CVE-2025-4432.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 12:18:42 +0000.