Vulnerability · Published Jul 12, 2025 · Assigned by hackerone

CVE-2025-24294

High 7.5

In plain English

A high-severity uncontrolled resource consumption in resolv from Ruby. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.7%top 48.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8ruby3.3.10-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9ruby3.3.10-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:8ruby-bundled-gems3.3.10-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9ruby-bundled-gems3.3.10-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:10ruby-default-gems3.3.10-11.el10_1ALSA-2025:23141
AlmaLinux:8ruby-default-gems3.3.10-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9ruby-default-gems3.3.10-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:8ruby-devel3.3.10-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9ruby-devel3.3.10-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:10ruby-doc3.3.10-11.el10_1ALSA-2025:23141
AlmaLinux:8ruby-doc3.3.10-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9ruby-doc3.3.10-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:8ruby-libs3.3.10-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9ruby-libs3.3.10-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:8rubygem-abrt0.4.0-1.module_el8.10.0+3799+191214ccALSA-2025:23062
AlmaLinux:8rubygem-abrt-doc0.4.0-1.module_el8.10.0+3799+191214ccALSA-2025:23062
AlmaLinux:8rubygem-bigdecimal3.1.5-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-bigdecimal3.1.5-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:10rubygem-bundler2.5.22-11.el10_1ALSA-2025:23141
AlmaLinux:8rubygem-bundler2.5.22-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-bundler2.5.22-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:8rubygem-io-console0.7.1-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-io-console0.7.1-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:10rubygem-irb1.13.1-11.el10_1ALSA-2025:23141
AlmaLinux:8rubygem-irb1.13.1-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-irb1.13.1-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:8rubygem-json2.7.2-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-json2.7.2-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:10rubygem-minitest5.20.0-11.el10_1ALSA-2025:23141
AlmaLinux:8rubygem-minitest5.20.0-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-minitest5.20.0-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:8rubygem-mysql20.5.5-1.module_el8.10.0+3799+191214ccALSA-2025:23062
AlmaLinux:9rubygem-mysql20.5.5-3.module_el9.7.0+184+e2e36072ALSA-2025:23063
AlmaLinux:8rubygem-mysql2-doc0.5.5-1.module_el8.10.0+3799+191214ccALSA-2025:23062
AlmaLinux:9rubygem-mysql2-doc0.5.5-3.module_el9.7.0+184+e2e36072ALSA-2025:23063
AlmaLinux:8rubygem-pg1.5.4-1.module_el8.10.0+3799+191214ccALSA-2025:23062
AlmaLinux:9rubygem-pg1.5.4-1.module_el9.4.0+75+1a8fe981ALSA-2025:23063
AlmaLinux:8rubygem-pg-doc1.5.4-1.module_el8.10.0+3799+191214ccALSA-2025:23062
AlmaLinux:9rubygem-pg-doc1.5.4-1.module_el9.4.0+75+1a8fe981ALSA-2025:23063
AlmaLinux:10rubygem-power_assert2.0.3-11.el10_1ALSA-2025:23141
AlmaLinux:8rubygem-power_assert2.0.3-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-power_assert2.0.3-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:8rubygem-psych5.1.2-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-psych5.1.2-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:8rubygem-racc1.7.3-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-racc1.7.3-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:10rubygem-rake13.1.0-11.el10_1ALSA-2025:23141
AlmaLinux:8rubygem-rake13.1.0-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-rake13.1.0-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:8rubygem-rbs3.4.0-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-rbs3.4.0-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:10rubygem-rdoc6.6.3.1-11.el10_1ALSA-2025:23141
AlmaLinux:8rubygem-rdoc6.6.3.1-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-rdoc6.6.3.1-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:10rubygem-rexml3.4.4-11.el10_1ALSA-2025:23141
AlmaLinux:8rubygem-rexml3.4.4-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-rexml3.4.4-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:10rubygem-rss0.3.1-11.el10_1ALSA-2025:23141
AlmaLinux:8rubygem-rss0.3.1-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-rss0.3.1-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:10rubygem-test-unit3.6.1-11.el10_1ALSA-2025:23141
AlmaLinux:8rubygem-test-unit3.6.1-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-test-unit3.6.1-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:10rubygem-typeprof0.21.9-11.el10_1ALSA-2025:23141
AlmaLinux:8rubygem-typeprof0.21.9-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygem-typeprof0.21.9-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:10rubygems3.5.22-11.el10_1ALSA-2025:23141
AlmaLinux:8rubygems3.5.22-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygems3.5.22-5.module_el9.7.0+193+58179166ALSA-2025:23063
AlmaLinux:10rubygems-devel3.5.22-11.el10_1ALSA-2025:23141
AlmaLinux:8rubygems-devel3.5.22-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux:9rubygems-devel3.5.22-5.module_el9.7.0+193+58179166ALSA-2025:23063
Debian:12ruby3.1no fix listedDEBIAN-CVE-2025-24294
Debian:13ruby3.3no fix listedDEBIAN-CVE-2025-24294
Debian:14ruby3.3no fix listedDEBIAN-CVE-2025-24294
Rocky Linux:10ruby0:3.3.10-11.el10_1RLSA-2025:23141
Rocky Linux:8ruby0:3.3.10-5.module+el8.10.0+40038+e29e4152RLSA-2025:23062
Rocky Linux:9ruby0:3.3.10-5.module+el9.7.0+40039+300ba1edRLSA-2025:23063
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1679+61871737RLSA-2025:23062
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1827+16ecb9d2RLSA-2025:23062
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.5.0+668+665814faRLSA-2025:23062
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.9.0+1537+0b2034bdRLSA-2025:23062
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1741+bdb5b6caRLSA-2025:23062
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1820+f3fffb92RLSA-2025:23062
Rocky Linux:8rubygem-abrt0:0.4.0-1.module+el8.10.0+1826+b62220b4RLSA-2025:23062
Rocky Linux:8rubygem-mysql20:0.5.5-1.module+el8.10.0+1827+16ecb9d2RLSA-2025:23062
Rocky Linux:8rubygem-mysql20:0.5.5-1.module+el8.10.0+1679+61871737RLSA-2025:23062
Rocky Linux:9rubygem-mysql20:0.5.5-3.module+el9.7.0+40032+36e56d0dRLSA-2025:23063
Rocky Linux:8rubygem-pg0:1.5.4-1.module+el8.10.0+1679+61871737RLSA-2025:23062
Rocky Linux:8rubygem-pg0:1.5.4-1.module+el8.10.0+1827+16ecb9d2RLSA-2025:23062
Rocky Linux:9rubygem-pg0:1.5.4-1.module+el9.7.0+40032+36e56d0d.0.1RLSA-2025:23063
RubyGemsresolv0.2.3GHSA-xh69-987w-hrp8
RubyGemsresolv0.6.2GHSA-xh69-987w-hrp8
RubyGemsresolv0.3.1GHSA-xh69-987w-hrp8
Ubuntu:24.04:LTSjrubyno fix listedUBUNTU-CVE-2025-24294
Ubuntu:25.10jrubyno fix listedUBUNTU-CVE-2025-24294
Ubuntu:26.04:LTSjrubyno fix listedUBUNTU-CVE-2025-24294
Ubuntu:26.10jrubyno fix listedUBUNTU-CVE-2025-24294
Ubuntu:22.04:LTSruby3.03.0.2-7ubuntu2.11USN-7734-1
Ubuntu:22.04:LTSruby3.03.0.2-7ubuntu2.11UBUNTU-CVE-2025-24294
Ubuntu:24.04:LTSruby3.23.2.3-1ubuntu0.24.04.6USN-7734-1
Ubuntu:24.04:LTSruby3.23.2.3-1ubuntu0.24.04.6UBUNTU-CVE-2025-24294
Ubuntu:25.10ruby3.33.3.8-2ubuntu2UBUNTU-CVE-2025-24294
Ubuntu:26.04:LTSruby3.33.3.8-2ubuntu2UBUNTU-CVE-2025-24294
Ubuntu:22.04:LTSrubygems3.3.5-2ubuntu1.1USN-7735-1
Ubuntu:25.10rubygems3.6.7-2ubuntu1UBUNTU-CVE-2025-24294
Ubuntu:26.04:LTSrubygems3.6.7-2ubuntu1UBUNTU-CVE-2025-24294

Affected products (as reported)

VendorProductVersions
Ruby resolv 0.2 – through 0.2.20.3.0 – through 0.3.00.6 – through 0.6.1

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References