CVE Vulnerabilities

CVE-2025-24294

Uncontrolled Resource Consumption

Published: Jul 12, 2025 | Modified: Jul 16, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
5.3 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Ubuntu
MEDIUM

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.

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.

Weakness

The product does not properly control the allocation and maintenance of a limited resource.

Affected Software

Name Vendor Start Version End Version
Ruby2.5 Ubuntu esm-infra/bionic *
Ruby2.7 Ubuntu esm-infra/focal *
Ruby3.0 Ubuntu jammy *
Ruby3.2 Ubuntu noble *
Ruby3.2 Ubuntu upstream *
Ruby3.3 Ubuntu devel *
Ruby3.3 Ubuntu plucky *
Ruby3.3 Ubuntu upstream *
Rubygems Ubuntu devel *
Rubygems Ubuntu plucky *

Potential Mitigations

  • Mitigation of resource exhaustion attacks requires that the target system either:

  • The first of these solutions is an issue in itself though, since it may allow attackers to prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question.

  • The second solution is simply difficult to effectively institute – and even when properly done, it does not provide a full solution. It simply makes the attack require more resources on the part of the attacker.

References