Skip to content

Commit e7c946a

Browse files
committed
CVE-2025-24294
1 parent 64481f9 commit e7c946a

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
layout: news_post
3+
title: "CVE-2025-24294: Possible Denial of Service in resolv gem"
4+
author: "mame"
5+
translator:
6+
date: 2025-07-08 07:00:00 +0000
7+
tags: security
8+
lang: en
9+
---
10+
11+
A denial of service vulnerability has been discovered in the `resolv` gem bundled with Ruby.
12+
This vulnerability has been assigned the CVE identifier [CVE-2025-24294].
13+
We recommend upgrading the resolv gem.
14+
15+
## Details
16+
17+
The vulnerability is caused by an insufficient check on the length of a decompressed domain name within a DNS packet.
18+
19+
An attacker can craft a malicious DNS packet containing a highly compressed domain name.
20+
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.
21+
22+
This resource consumption can cause the application thread to become unresponsive, resulting in a Denial of Service condition.
23+
24+
## Affected versions
25+
26+
The vulnerability affects the resolv gem bundled with the following Ruby series:
27+
28+
* Ruby 3.2 series: resolv version 0.2.2 and earlier
29+
* Ruby 3.3 series: resolv version 0.3.0
30+
* Ruby 3.4 series: resolv version 0.6.1 and earlier
31+
32+
## Credits
33+
34+
Thanks to [Manu] for discovering this issue.
35+
36+
## History
37+
38+
* Originally published at 2025-07-08 07:00:00 (UTC)
39+
40+
[CVE-2025-24294]: https://www.cve.org/CVERecord?id=CVE-2025-24294
41+
[Manu]: https://hackerone.com/manun

0 commit comments

Comments
 (0)