7.5high
resolv vulnerable to DoS via insufficient DNS domain name length validation
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.83% (higher than 55% of CVEs)
- Published
- Last changed
- Assigned by
- hackerone
- Also known as
- GHSA-xh69-987w-hrp8
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
| Product or package | Versions | Reported by |
|---|---|---|
| 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 | CVE List |
| resolv (RubyGems) | before 0.2.3, from 0.4.0 before 0.6.2, from 0.3.0 before 0.3.1 | GitHub Advisory Database |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | medium CVSS:4.0 | 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 |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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)
NVD (es)
El vector de ataque es una posible denegación de servicio (DoS). La vulnerabilidad se debe a una verificación insuficiente de la longitud de un nombre de dominio descomprimido dentro de un paquete DNS. Un atacante puede manipular un paquete DNS malicioso que contenga un nombre de dominio muy comprimido. Cuando la librería resolv analiza dicho paquete, el proceso de descompresión del nombre consume una gran cantidad de recursos de CPU, ya que la librería no limita la longitud resultante del nombre. Este consumo de recursos puede provocar que el hilo de la aplicación deje de responder, lo que resulta en una condición de denegación de servicio.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-24294 changed 2025-07-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xh69-987w-hrp8 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-24294 changed 2026-06-17 | Public domain |