CVE-2025-24294 Details
Description
The attack vector is a potential Denial of Service (DoS). The vulnerability is caused by an insufficient check on the length of a decompressed domain name within a DNS packet. An attacker can craft a malicious DNS packet containing a highly compressed domain name. When the resolv library parses such a packet, the name decompression process consumes a large amount of CPU resources, as the library does not limit the resulting length of the name. This resource consumption can cause the application thread to become unresponsive, resulting in a Denial of Service condition.
A denial-of-service vulnerability has been identified in the resolv gem included with Ruby. This issue arises from inadequate checks on the length of decompressed domain names within DNS packets. An attacker can create a malicious DNS packet with a highly compressed domain name. When the resolv library processes this packet, the decompression can lead to excessive CPU usage, as there is no limit on the length of the resulting name. This increased resource consumption can cause the application thread to become unresponsive, creating a denial-of-service condition.
Users are advised to upgrade the resolv gem. The vulnerability affects the resolv gem bundled with Ruby 3.2 series (resolv version 0.2.2 and earlier), Ruby 3.3 series (resolv version 0.3.0), and Ruby 3.4 series (resolv version 0.6.1 and earlier).
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 12, 2025CISA-ADP
Assessed Jul 15, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.ruby-lang.org/en/news/2025/07/08/dos-resolv-cve-2025-24294/ | CISA-ADP | AdvisoryRemedyVendor |
| https://www.ruby-lang.org/en/news/2025/07/08/dos-resolv-cve-2025-24294/ | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| Ruby | >= 3.2, <= 3.2.2 >= 3.3, <= 3.3.0 >= 3.4, <= 3.4.6 |
CPE
Remediation
| |
| Ruby resolv | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 16, 2025 | CVE Modified | CISA-ADP |
| Jul 15, 2025 | CVE Modified | CISA-ADP |
| Jul 12, 2025 | New CVE Received | [email protected] |
Volerion