CVE-2025-24294Ruby resolv
High 7.5 No auth needed
Follow: this CVE · Ruby · Ruby resolv We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Jul 12, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-400
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for resolv.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | resolv |
< 0.2.3 |
0.2.3 |
gem "resolv", ">= 0.2.3" |
| RubyGems | resolv |
≥ 0.4.0 < 0.6.2 |
0.6.2 |
gem "resolv", ">= 0.6.2" |
| RubyGems | resolv |
≥ 0.3.0 < 0.3.1 |
0.3.1 |
gem "resolv", ">= 0.3.1" |
Per OSV / GitHub Advisories (GHSA-xh69-987w-hrp8). Check the version in your lockfile before upgrading.
Affected products
- Ruby · resolv
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Red Hat Security Advisory: ruby security update · Red Hat · RHSA-2025:23141 · Jan 3, 2026 Medium
- Red Hat Security Advisory: ruby:3.3 security update · Red Hat · RHSA-2025:23062 · Jan 3, 2026 Medium
- Red Hat Security Advisory: ruby:3.3 security update · Red Hat · RHSA-2025:23063 · Jan 3, 2026 Medium
Also: Red Hat (+2)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.