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

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.

Check my Gemfile.lock

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.

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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: RubyGems (1).

PackageFixed In
resolv RubyGems · Affected: 0.4.0, 0.5.0, 0.6.0, 0.6.10.6.2
resolv RubyGems · Affected: 0.1.0, 0.2.0, 0.2.1, 0.2.20.2.3
resolv RubyGems · Affected: 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. 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

CVSS Score
5.3

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.84%
EPSS percentile: 54.9

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

GHSA-xh69-987w-hrp8

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Gemfile.lock