|
| 1 | +--- |
| 2 | +layout: advisory |
| 3 | +title: 'CVE-2025-24294 (resolv): Possible Denial of Service in resolv gem' |
| 4 | +comments: false |
| 5 | +categories: |
| 6 | +- resolv |
| 7 | +advisory: |
| 8 | + gem: resolv |
| 9 | + cve: 2025-24294 |
| 10 | + url: https://www.ruby-lang.org/en/news/2025/07/08/dos-resolv-cve-2025-24294 |
| 11 | + title: Possible Denial of Service in resolv gem |
| 12 | + date: 2025-07-09 |
| 13 | + description: | |
| 14 | + A denial of service vulnerability has been discovered in the |
| 15 | + resolv gem bundled with Ruby. |
| 16 | + This vulnerability has been assigned the CVE identifier |
| 17 | + CVE-2025-24294. We recommend upgrading the resolv gem. |
| 18 | +
|
| 19 | + ## Details |
| 20 | + The vulnerability is caused by an insufficient check on the |
| 21 | + length of a decompressed domain name within a DNS packet. |
| 22 | +
|
| 23 | + An attacker can craft a malicious DNS packet containing a highly |
| 24 | + compressed domain name. When the resolv library parses such a |
| 25 | + packet, the name decompression process consumes a large amount |
| 26 | + of CPU resources, as the library does not limit the resulting |
| 27 | + length of the name. |
| 28 | +
|
| 29 | + This resource consumption can cause the application thread to |
| 30 | + become unresponsive, resulting in a Denial of Service condition. |
| 31 | +
|
| 32 | + ## Affected Version |
| 33 | + The vulnerability affects the resolv gem bundled with the |
| 34 | + following Ruby series: |
| 35 | + * Ruby 3.2 series: resolv version 0.2.2 and earlier |
| 36 | + * Ruby 3.3 series: resolv version 0.3.0 |
| 37 | + * Ruby 3.4 series: resolv version 0.6.1 and earlier |
| 38 | +
|
| 39 | + ## Credits |
| 40 | + Thanks to Manu for discovering this issue. |
| 41 | +
|
| 42 | + ## History |
| 43 | + Originally published at 2025-07-08 07:00:00 (UTC) |
| 44 | + patched_versions: |
| 45 | + - "~> 0.2.2" |
| 46 | + - "~> 0.3.0" |
| 47 | + - ">= 0.6.1" |
| 48 | + related: |
| 49 | + url: |
| 50 | + - https://www.ruby-lang.org/en/news/2025/07/08/dos-resolv-cve-2025-24294 |
| 51 | + - https://rubygems.org/gems/resolv |
| 52 | + - https://www.cve.org/CVERecord?id=CVE-2025-24294 |
| 53 | +--- |
0 commit comments