Ruby resolv
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.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 0.2, <= 0.2.2
- >= 0.3.0, <= 0.3.0
- >= 0.6, <= 0.6.1
- >= 0.4.0, < 0.6.2
Fixed in 0.6.2
from GitHub Security Advisory GHSA-xh69-987w-hrp8
- >= 0.3.0, < 0.3.1
Fixed in 0.3.1
from GitHub Security Advisory GHSA-xh69-987w-hrp8
Mitigation
Upgrade resolv to 0.2.3 or later.
Upgrade resolv to 0.6.2 or later.
Upgrade resolv to 0.3.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.