resolv
Affected
- introduced
0, fixed0.2.3(ecosystem)
Fixed versions
0.2.3
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2025-24294
resolv vulnerable to DoS via insufficient DNS domain name length validation
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:
Credits
Thanks to Manu for discovering this issue.
History
Originally published at 2025-07-08 07:00:00 (UTC)
Medium Basis: The source's own band: MODERATE
0, fixed 0.2.3 (ecosystem)0.2.3
The export has no generic command for this ecosystem.
0.4.0, fixed 0.6.2 (ecosystem)0.6.2
The export has no generic command for this ecosystem.
0.3.0, fixed 0.3.1 (ecosystem)0.3.1
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0