cve.bz

CVE-2025-24294 ruby resolv: Uncontrolled Resource Consumption

7.5 highEPSS 0.7%Fix available

High (7.5) in ruby resolv. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in resolv 0.2.3, 0.3.1, 0.6.2.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-07-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • resolv (RubyGems): fixed in 0.2.3, 0.6.2, 0.3.1
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Azure Linux, Alpaquita: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2025-24294 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-24294?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-24294?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-24294 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Ruby resolvfrom 0.2 through 0.2.2
Ruby resolvfrom 0.3.0 through 0.3.0
Ruby resolvfrom 0.6 through 0.6.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xh69-987w-hrp8RubyGemsresolv<0.2.30.2.3
GHSA-xh69-987w-hrp8RubyGemsresolv>=0.4.0 <0.6.20.6.2
GHSA-xh69-987w-hrp8RubyGemsresolv>=0.3.0 <0.3.10.3.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby2.72.7.4-1+deb11u6DLA-4716-1
Debian12ruby3.1no fix listedDEBIAN-CVE-2025-24294
Debian13ruby3.33.3.13-0+deb13u1DEBIAN-CVE-2025-24294 DSA-6614-1
Debian14ruby3.3no fix listedDEBIAN-CVE-2025-24294
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morejrubyno fix listedUBUNTU-CVE-2025-24294
Ubuntu22.04:LTSruby3.03.0.2-7ubuntu2.11UBUNTU-CVE-2025-24294 USN-7734-1
Ubuntu22.04:LTSrubygems3.3.5-2ubuntu1.1USN-7735-1
Ubuntu24.04:LTSruby3.23.2.3-1ubuntu0.24.04.6UBUNTU-CVE-2025-24294 USN-7734-1
Ubuntu25.10, 26.04:LTSruby3.33.3.8-2ubuntu2UBUNTU-CVE-2025-24294
Ubuntu25.10, 26.04:LTSrubygems3.6.7-2ubuntu1UBUNTU-CVE-2025-24294
UbuntuPro:16.04:LTSruby2.3no fix listedUBUNTU-CVE-2025-24294
UbuntuPro:18.04:LTSruby2.52.5.1-1ubuntu1.16+esm5UBUNTU-CVE-2025-24294 USN-7734-1
UbuntuPro:20.04:LTSruby2.72.7.0-5ubuntu1.18+esm1UBUNTU-CVE-2025-24294 USN-7734-1
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.3.10-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21226+b78a28c4RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.5-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-bundler0:2.5.22-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-io-console, rubygem-io-console-debuginfo0:0.7.1-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-irb0:1.13.1-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-json, rubygem-json-debuginfo0:2.7.2-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-minitest0:5.20.0-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-mysql2, rubygem-mysql2-doc, rubygem-mysql2-debuginfo and 1 more0:0.5.5-1.module+el8.10.0+21226+b78a28c4RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-pg, rubygem-pg-doc, rubygem-pg-debuginfo and 1 more0:1.5.4-1.module+el8.10.0+21226+b78a28c4RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-power_assert0:2.0.3-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-psych, rubygem-psych-debuginfo0:5.1.2-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
85 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Basesystem 15 SP6ruby2.52.5.9-150000.4.54.1SUSE-SU-2025:3776-1
SUSELinux Enterprise Module for Basesystem 15 SP7ruby2.52.5.9-150700.24.3.1SUSE-SU-2025:4264-1
openSUSELeap 15.6ruby2.52.5.9-150000.4.54.1SUSE-SU-2025:3776-1
AlmaLinux8ruby, ruby-doc, ruby-libs and 3 more3.3.10-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.10.0+3799+191214ccALSA-2025:23062
AlmaLinux8rubygem-bigdecimal3.1.5-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-bundler2.5.22-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-io-console0.7.1-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-irb1.13.1-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-json2.7.2-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-minitest5.20.0-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-mysql2, rubygem-mysql2-doc0.5.5-1.module_el8.10.0+3799+191214ccALSA-2025:23062
AlmaLinux8rubygem-pg, rubygem-pg-doc1.5.4-1.module_el8.10.0+3799+191214ccALSA-2025:23062
AlmaLinux8rubygem-power_assert2.0.3-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-psych5.1.2-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
41 more for AlmaLinux in the JSON.
Rocky Linux8ruby0:3.3.10-5.module+el8.10.0+40038+e29e4152RLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1679+61871737RLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1741+bdb5b6caRLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1820+f3fffb92RLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1826+b62220b4RLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1827+16ecb9d2RLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.5.0+668+665814faRLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.9.0+1537+0b2034bdRLSA-2025:23062
Rocky Linux8rubygem-mysql20:0.5.5-1.module+el8.10.0+1679+61871737RLSA-2025:23062
Rocky Linux8rubygem-mysql20:0.5.5-1.module+el8.10.0+1827+16ecb9d2RLSA-2025:23062
Rocky Linux8rubygem-pg0:1.5.4-1.module+el8.10.0+1679+61871737RLSA-2025:23062
Rocky Linux8rubygem-pg0:1.5.4-1.module+el8.10.0+1827+16ecb9d2RLSA-2025:23062
4 more for Rocky Linux in the JSON.
Azure Linux2ruby3.1.7-3AZL-65202
Azure Linux3ruby3.3.5-5AZL-65241
Alpaquita23ruby3.3.10-r1BELL-CVE-2025-24294
Alpaquita25, streamruby3.4.7-r0BELL-CVE-2025-24294

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Moderate impact affects Red Hat Insights compliance-backend and Red Hat Enterprise Linux Ruby packages in the affected RHEL streams. A remote attacker without privileges can send a crafted DNS packet containing a highly compressed domain name to a process using the resolv gem; excessive decompression CPU consumption can make the application thread unresponsive, resulting in denial of service. Red Hat's CVSS is 5.3 (Moderate), lower than CISA's 7.5 (Important) because Red Hat assesses the availability impact as Low rather than High. Remediation for the affected entries is deferred in the current record, which does not document a more specific reason; the residual risk is continued CPU exhaustion and denial of service when attacker-supplied DNS packets are parsed. Ruby 4.0 entries in RHEL 9 and RHEL 10 are not affected because the vulnerable code is not present, while the RHEL 6 and RHEL 7 entries are marked out of support.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10ruby-0:3.3.10-11.el10_1Fixed 2025-12-11RHSA-2025:23141
Red Hat Enterprise Linux 10.0 Extended Update Supportruby-0:3.3.10-11.el10_0Fixed 2025-12-22RHSA-2025:23927
Red Hat Enterprise Linux 8ruby:3.3-8100020251124151715.489197e6Fixed 2025-12-10RHSA-2025:23062
Red Hat Enterprise Linux 9ruby:3.3-9070020251113101221.9Fixed 2025-12-10RHSA-2025:23063
Red Hat Enterprise Linux 9.6 Extended Update Supportruby:3.3-9060020251210162455.9Fixed 2025-12-18RHSA-2025:23648
Red Hat Enterprise Linux 10ruby4.0Not affected
Red Hat Enterprise Linux 6rubyOut of support scope
Red Hat Enterprise Linux 7rubyOut of support scope
Red Hat Enterprise Linux 8ruby:2.5/rubyFix deferred
Red Hat Enterprise Linux 9rubyFix deferred
Red Hat Enterprise Linux 9ruby:4.0/rubyNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-24294.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON