Skip to content

Commit 52a3cc0

Browse files
authored
Add CVE-2025-24294: DoS in resolv gem (#914)
1 parent 8107219 commit 52a3cc0

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

rubies/ruby/CVE-2025-24294.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
engine: ruby
3+
cve: 2025-24294
4+
url: https://www.ruby-lang.org/en/news/2025/07/08/dos-resolv-cve-2025-24294/
5+
title: Possible Denial of Service in resolv gem
6+
date: 2025-07-08
7+
description: |
8+
A denial of service vulnerability has been discovered in the `resolv` gem bundled with Ruby.
9+
10+
The vulnerability is caused by an insufficient check on the length of a decompressed domain name within a DNS packet.
11+
An attacker can craft a malicious DNS packet containing a highly compressed domain name. When the resolv library parses such a packet,
12+
the name-decompression process consumes a large amount of CPU resources, as the library does not limit the resulting length of the name.
13+
This resource consumption can cause the application thread to become unresponsive, resulting in a Denial of Service condition.
14+
patched_versions:
15+
- "~> 3.2.9"
16+
- "~> 3.3.9"
17+
- ">= 3.4.5"
18+
related:
19+
url:
20+
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/resolv/CVE-2025-24294.yml
21+
- https://www.cve.org/CVE-2025-24294
22+
- https://www.ruby-lang.org/en/news/2025/07/24/ruby-3-2-9-released/
23+
- https://www.ruby-lang.org/en/news/2025/07/24/ruby-3-3-9-released/
24+
- https://www.ruby-lang.org/en/news/2025/07/15/ruby-3-4-5-released/

0 commit comments

Comments
 (0)