{"id":"CVE-2025-24294","aliases":["CVE-2025-24294","GHSA-xh69-987w-hrp8"],"related":[],"kind":"vulnerability","state":"published","title":"resolv vulnerable to DoS via insufficient DNS domain name length validation","summary":"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.\n\nAn 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.\n\nThis resource consumption can cause the application thread to become unresponsive, resulting in a Denial of Service condition.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\nAn 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.\n\nThis resource consumption can cause the application thread to become unresponsive, resulting in a Denial of Service condition.","source":"cvelist"},{"lang":"en","text":"A denial of service vulnerability has been discovered in the resolv gem bundled with Ruby.\n\n## Details\nThe vulnerability is caused by an insufficient check on the length of a decompressed domain name within a DNS packet.\n\nAn 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\nlength of the name.\n\nThis resource consumption can cause the application thread to become unresponsive, resulting in a Denial of Service condition.\n\n## Affected Version\nThe vulnerability affects the resolv gem bundled with the following Ruby series:\n* Ruby 3.2 series: resolv version 0.2.2 and earlier\n* Ruby 3.3 series: resolv version 0.3.0\n* Ruby 3.4 series: resolv version 0.6.1 and earlier\n\n## Credits\nThanks to Manu for discovering this issue.\n\n## History\nOriginally published at 2025-07-08 07:00:00 (UTC)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-07-12T03:30:40.226Z","modified":"2026-09-10T03:50:26.410Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-400","CWE-1284"],"affected":[{"ranges":[{"type":"custom","introduced":"0.2","lastAffected":"0.2.2","status":"affected"},{"type":"custom","introduced":"0.3.0","lastAffected":"0.3.0","status":"affected"},{"type":"custom","introduced":"0.6","lastAffected":"0.6.1","status":"affected"}],"vendor":"Ruby","product":"resolv","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.2.3"}],"ecosystem":"RubyGems","package":"resolv","purl":"pkg:gem/resolv","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.4.0","status":"affected","fixed":"0.6.2"}],"ecosystem":"RubyGems","package":"resolv","purl":"pkg:gem/resolv","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.3.0","status":"affected","fixed":"0.3.1"}],"ecosystem":"RubyGems","package":"resolv","purl":"pkg:gem/resolv","source":"ghsa"}],"references":[{"url":"https://www.ruby-lang.org/en/news/2025/07/08/dos-resolv-cve-2025-24294/","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-24294","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ruby/resolv/commit/4c2f71b5e80826506f78417d85b38481c058fb25","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ruby/resolv","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/resolv/CVE-2025-24294.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://www.ruby-lang.org/en/news/2025/07/08/dos-resolv-cve-2025-24294","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"hackerone","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-07-15T13:48:11.171Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-24294","url":"https://www.cve.org/CVERecord?id=CVE-2025-24294","licence":"CVE Terms of Use","modified":"2025-07-16T13:37:43.395Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xh69-987w-hrp8","url":"https://github.com/advisories/GHSA-xh69-987w-hrp8","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:26.410Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-24294","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-24294","licence":"Public domain","modified":"2026-06-17T08:58:30.603Z"}],"updatedAt":"2026-11-25T22:59:01.175Z","epss":{"score":0.00835,"percentile":0.54988,"date":"2026-11-30T12:00:22.000Z"}}