CVE-2025-24294 — Vulnerability in resolv — CVE Details
resolv vulnerable to DoS via insufficient DNS domain name length validation
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.84%). Schedule for your next planned update.
Does your project use an affected resolv version?
Paste your Gemfile.lock to check it for CVE-2025-24294 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
A denial of service vulnerability has been discovered in the resolv gem bundled with Ruby.
Details
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.
Affected Version
The vulnerability affects the resolv gem bundled with the following Ruby series:
- Ruby 3.2 series: resolv version 0.2.2 and earlier
- Ruby 3.3 series: resolv version 0.3.0
- Ruby 3.4 series: resolv version 0.6.1 and earlier
Credits
Thanks to Manu for discovering this issue.
History
Originally published at 2025-07-08 07:00:00 (UTC)
Advisory Timeline
- First published July 15, 2025 (499 days ago).
- Last revised September 10, 2026 — 422 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install resolv -v 0.6.2
gem install resolv -v 0.2.3
gem install resolv -v 0.3.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: RubyGems (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1284
- CWE-400Uncontrolled Resource ConsumptionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-24294ADVISORY
- https://github.com/ruby/resolv/commit/4c2f71b5e80826506f78417d85b38481c058fb25WEB
- https://github.com/ruby/resolvPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/resolv/CVE-2025-24294.ymlWEB
- https://www.ruby-lang.org/en/news/2025/07/08/dos-resolv-cve-2025-24294WEB
Frequently Asked Questions
- What is CVE-2025-24294?
- resolv vulnerable to DoS via insufficient DNS domain name length validation. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.3/10).
- How do I check if my project is affected by CVE-2025-24294?
- CVE-2025-24294 affects resolv. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-24294 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is an above-median EPSS score — 54.9% 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-128084MEDIUM
sqlite3-ruby: Possible SQL query truncation when a string is 4 GiB or larger
- CVE-2026-115472MEDIUM
Doorkeeper: When using public clients, any client can revoke any access token