CVE-2025-4432: Ring Some AES Functions May Panic Vulnerability

MODERATE
Advisory Identifier: GHSA-4p46-pwfr-66x6
CWE-770
Published
Advisory Summary

CVE-2025-4432 is a MODERATE some aes functions may panic vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Ring libraries in the crates.io ecosystem. The issue involves some aes functions may panic when overflow checking is enabled in ring. Remediation is available by upgrading affected packages to version 0.17.12.

CVE-2025-4432 at a Glance

CVE Identifier CVE-2025-4432
GHSA Identifier GHSA-4p46-pwfr-66x6
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Ring
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix CVE-2025-4432

To remediate this vulnerability, upgrade all affected Ring dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ring fixed: 0.17.12
Upgrade ring to 0.17.12
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for ring

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-4432, inspect your project dependencies for Ring:

inspect dependencies for ring

Analyze the terminal output to locate any version of Ring in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.17.12), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Ring, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

`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.

CVE-2025-4432 Affected Ring Versions

1 component(s)
Fixed Versions:
0.17.12
Product / Package Ecosystem Affected Versions Fixed Version
ring
crates.io
< 0.17.12
0.17.12

References

Frequently Asked Questions

What is CVE-2025-4432?
CVE-2025-4432 is a security vulnerability in Ring involving Some AES functions may panic when overflow checking is enabled in ring under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Ring versions are affected?
Affected versions include releases prior to 0.17.12 across affected packages: ring.
What version fixes CVE-2025-4432?
Upgrading to 0.17.12 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ring affected?
Yes, ring is affected in releases prior to 0.17.12. Upgrade your dependency to 0.17.12 or later.
What CWE is associated with CVE-2025-4432?
CVE-2025-4432 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check crates.io dependencies for CVE-2025-4432?
Run the dependency tree command: 'inspect dependencies for ring'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4p46-pwfr-66x6",
  "modified" : "2025-12-29T21:37:23Z",
  "published" : "2025-03-07T16:23:50Z",
  "aliases" : [ "CVE-2025-4432" ],
  "summary" : "Some AES functions may panic when overflow checking is enabled in ring",
  "details" : "`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.\n\nOn 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.\n\nOverflow 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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "ring"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.17.12"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-4432"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/briansmith/ring/pull/2447"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/briansmith/ring/commit/ec2d3cf1d91f148c84e4806b4f0b3c98f6df3b38"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2025-4432"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2350655"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/briansmith/ring"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/briansmith/ring/blob/main/RELEASES.md#version-01712-2025-03-05"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2025-0009.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-07T16:23:50Z",
    "nvd_published_at" : null
  }
}