CVE-2025-24294: High severity rubygems/resolv vulnerability

Published Jul 12, 2025
·
Updated

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)

Other sources

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.

— Red Hat

Affected Software

8 affected componentsFixes available
rubygems/resolv>=0.3.0<0.3.1
0.3.1
rubygems/resolv>=0.4.0<0.6.2
0.6.2
rubygems/resolv<0.2.3
0.2.3
debian/ruby3.1*
debian/ruby3.3<3.3.13-0+deb13u1
3.3.13-0+deb13u1
debian/ruby3.3*
debian/ruby3.1<=3.1.2-7+deb12u1
debian/ruby3.3<=3.3.8-2, <=3.3.8-2.2
3.3.13-0+deb13u1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rubygems/resolv to a version that resolves this vulnerability.

    Fixed in 0.3.1
  2. Upgrade

    Upgrade rubygems/resolv to a version that resolves this vulnerability.

    Fixed in 0.6.2
  3. Upgrade

    Upgrade rubygems/resolv to a version that resolves this vulnerability.

    Fixed in 0.2.3
  4. Upgrade

    Upgrade debian/ruby3.3 to a version that resolves this vulnerability.

    Fixed in 3.3.13-0+deb13u1
  5. Upgrade

    Upgrade resolv gem (bundled with Ruby) to a version that resolves this vulnerability.

    Fixed in 0.2.2
  6. Upgrade

    Upgrade resolv gem (bundled with Ruby) to a version that resolves this vulnerability.

    Fixed in 0.3.0
  7. Upgrade

    Upgrade resolv gem (bundled with Ruby) to a version that resolves this vulnerability.

    Fixed in 0.6.1

Event History

Jul 12, 2025
CVE Published
via MITRE·03:30 AM
Data Sourced
via MITRE·03:30 AM
Description
Data Sourced
via Red Hat·04:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:15 AM
DescriptionSeverityWeakness
Data Sourced
via OSV·04:15 AM
DescriptionSeverityAffected Software
Jul 15, 2025
Advisory Published
via GitHub·02:37 PM
Data Sourced
via GitHub·02:37 PM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-24294?

CVE-2025-24294 is classified as a denial of service vulnerability that can disrupt service availability.

2

How do I fix CVE-2025-24294?

To fix CVE-2025-24294, update the resolv gem to versions 0.3.1, 0.6.2, or later.

3

Which versions of the resolv gem are affected by CVE-2025-24294?

CVE-2025-24294 affects resolv gem versions between 0.3.0 and 0.3.1, 0.4.0 up to 0.6.2, and all versions prior to 0.2.3.

4

What type of attack can exploit CVE-2025-24294?

CVE-2025-24294 can be exploited by an attacker sending a crafted DNS packet that causes a denial of service.

5

Is the resolv gem the only software affected by CVE-2025-24294?

Yes, CVE-2025-24294 specifically impacts the resolv gem bundled with Ruby.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203