Loading...
Skip to main content

CVE-2025-24294 — Vulnerability in resolv — CVE Details

MEDIUM

resolv vulnerable to DoS via insufficient DNS domain name length validation

Published July 15, 2025Updated September 10, 2026Source: osv

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 (454 days ago).
  • Last revised September 10, 2026 — 422 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update resolv to 0.6.2 or later
gem install resolv -v 0.6.2
Bundler
Update resolv to 0.2.3 or later
gem install resolv -v 0.2.3
Bundler
Update resolv to 0.3.1 or later
gem install resolv -v 0.3.1

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
resolv
rubygems
0.4.0, 0.5.0, 0.6.0, 0.6.10.6.2
resolv
rubygems
0.1.0, 0.2.0, 0.2.1, 0.2.20.2.3
resolv
rubygems
0.3.00.3.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

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

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. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-24294 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.3

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-xh69-987w-hrp8

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies