CVE-2026-80212: High severity rubygems/resolv vulnerability

Published Aug 27, 2026
·
Updated

An issue was discovered in the resolv gem before 0.7.2 for Ruby. Resolv::DNS::Resource.getclass, Resolv::DNS::Resource::Generic.create, and Resolv::DNS::SvcParam::Generic.create generate a new class for each unknown DNS resource record (type, class) pair, or each unknown SvcParamKey, encountered while decoding a response. Each generated class was permanently registered both as a constant on Resource (or SvcParam::Generic) and as an entry in a class-lookup hash (ClassHash), and thus the class remained reachable through that constant after the response was discarded. Type and class are each 16-bit values, and thus an attacker controlling DNS responses (a spoofed response, or a malicious or hijacked upstream DNS server) has roughly 2^32 distinct (type, class) pairs to choose from. A single response of a few hundred kilobytes carrying tens of thousands of distinct unknown types permanently grows process memory by tens of megabytes; repeated responses accumulate without bound and are never reclaimed by garbage collection, because the constant keeps each class alive. Any code path that calls Resolv::DNS::Message.decode on attacker-influenced DNS responses is affected. resolv is a default gem, and thus this is reachable from a plain Ruby installation without any additional dependency.

Affected Software

1 affected component
rubygems/resolv<0.7.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade resolv to a version that resolves this vulnerability.

    Fixed in 0.7.2

Event History

Aug 27, 2026
CVE Published
via MITRE·02:15 PM
Data Sourced
via MITRE·02:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:20 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Ruby applications using resolv versions before 0.7.2 are affected if they decode attacker-influenced DNS responses through Resolv::DNS::Message.decode. This includes applications whose DNS responses can be spoofed or are supplied by a malicious or hijacked upstream DNS server.

2

What does an attacker need to exploit this issue?

An attacker needs control over DNS responses that reach an affected decoding path. They can include many distinct unknown DNS resource-record type/class pairs or unknown SvcParamKey values in responses to cause permanent memory growth.

3

What is the operational impact of repeated malicious responses?

Each unknown value can create a class that remains permanently reachable through registered constants and lookup hashes, so garbage collection does not reclaim it. Repeated responses can accumulate memory without bound and lead to denial of service.

4

What version should be deployed to address the affected version range?

Update resolv to version 0.7.2 or later. The issue affects versions before 0.7.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203