# CVE-2025-24294: resolv vulnerable to DoS via insufficient DNS domain name length validation

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 55% of CVEs (2026-11-30)
- Published: 2025-07-12T03:30:40.226Z
- Modified: 2026-09-10T03:50:26.410Z
- Also known as: GHSA-xh69-987w-hrp8
- Weaknesses: CWE-400, CWE-1284
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: hackerone

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

(As written by CVE List.)

## Affected

- Ruby resolv: from 0.2 up to 0.2.2; from 0.3.0 up to 0.3.0; from 0.6 up to 0.6.1
- resolv (RubyGems): before 0.2.3; from 0.4.0 before 0.6.2; from 0.3.0 before 0.3.1

## Every score

- CISA-ADP: 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`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U`

## References

- <https://www.ruby-lang.org/en/news/2025/07/08/dos-resolv-cve-2025-24294/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-24294> (advisory)
- <https://github.com/ruby/resolv/commit/4c2f71b5e80826506f78417d85b38481c058fb25> (web)
- <https://github.com/ruby/resolv> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/resolv/CVE-2025-24294.yml> (web)
- <https://www.ruby-lang.org/en/news/2025/07/08/dos-resolv-cve-2025-24294> (web)

## Sources

- CVE List: [CVE-2025-24294](https://www.cve.org/CVERecord?id=CVE-2025-24294), CVE Terms of Use, modified 2025-07-16
- GitHub Advisory Database: [GHSA-xh69-987w-hrp8](https://github.com/advisories/GHSA-xh69-987w-hrp8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-24294](https://nvd.nist.gov/vuln/detail/CVE-2025-24294), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-24294 · Whole record: https://cve.day/CVE-2025-24294.json · Rebuilt by cve.day 2026-11-25T22:59:01.175Z
