CVE-2025-24294
resolv vulnerable to DoS via insufficient DNS domain name length validation
Reported by hackerone · Published July 12, 2025
resolv is fixed in 0.6.2, 0.3.1 and 0.2.3 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| resolv | RubyGems | 0.6.2, 0.3.1, 0.2.3 |
| rubygems-devel | Amazon Linux | 2.0.14.1-36.amzn2.0.16 |
| ruby3.2-rubygem-io-console | Amazon Linux | 0.6.0-184.amzn2023.0.3 |
| rubygem-rdoc | Amazon Linux | 4.0.0-36.amzn2.0.16 |
| ruby3.2-rubygem-irb | Amazon Linux | 1.6.2-184.amzn2023.0.3 |
| ruby-libs | Amazon Linux | 2.0.0.648-36.amzn2.0.16 |
| ruby-3.4 | Chainguard | 3.4.5-r0 |
| ruby3.2-rubygems-devel | Amazon Linux | 3.4.19-184.amzn2023.0.3 |
| ruby3.2-rubygem-power_assert | Amazon Linux | 2.0.3-184.amzn2023.0.3 |
| rubygem-bigdecimal | Amazon Linux | 1.2.0-36.amzn2.0.16 |
| rubygems | Amazon Linux | 2.0.14.1-36.amzn2.0.16 |
| jruby-9.4 | Chainguard | 9.4.13.0-r1 |
35 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Ruby | resolv | 0.2, 0.3.0, 0.6 |
| amazon:2 | rubygems-devel | 0 |
| amazon:2023 | ruby3.2-rubygem-io-console | 0 |
| amazon:2 | rubygem-rdoc | 0 |
| amazon:2023 | ruby3.2-rubygem-irb | 0 |
| amazon:2 | ruby-libs | 0 |
| chainguard | ruby-3.4 | 0 |
| amazon:2023 | ruby3.2-rubygems-devel | 0 |
| amazon:2023 | ruby3.2-rubygem-power_assert | 0 |
| amazon:2 | rubygem-bigdecimal | 0 |
| amazon:2 | rubygems | 0 |
| chainguard | jruby-9.4 | 0 |
| amazon:2023 | ruby3.2-doc | 0 |
| amazon:2023 | ruby3.2-libs | 0 |
| amazon:2023 | ruby3.2-rubygem-rdoc | 0 |
| chainguard | ruby-3.2 | 0 |
| wolfi | jruby-9.4 | 0 |
| amazon:2 | rubygem-minitest | 0 |
| wolfi | ruby-3.2 | 0 |
| amazon:2023 | ruby3.2-rubygem-minitest | 0 |
…and 28 more
Timeline
- Jul 7, 2025 CVE Published
- Jul 12, 2025 EPSS Score (30 in total, the first dated here)
- Jul 12, 2025 Coalition ESS Score (13 in total, the first dated here)
- Jul 16, 2025 CVE Updated
- Mar 17, 2026 Security Advisory (7 in total, the first dated here)
- Oct 1, 2026 Distribution Patch (5 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-24294
vulnetix vdb fixes CVE-2025-24294
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-24294/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-24294 advisory
- https://github.com/advisories/GHSA-xh69-987w-hrp8 advisory
- https://github.com/ruby/resolv/commit/4c2f71b5e80826506f78417d85b38481c058fb25 patch
- https://github.com/ruby/resolv url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/resolv/CVE-2025-24294.yml advisory
- https://www.ruby-lang.org/en/news/2025/07/08/dos-resolv-cve-2025-24294 url