{"id":"CVE-2026-80212","aliases":["CVE-2026-80212"],"related":[],"kind":"vulnerability","state":"published","title":"An issue was discovered in the resolv gem before 0.7.2 for Ruby.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-08-27T14:15:04.403Z","modified":"2026-09-09T16:04:24.933Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.3.2","status":"affected"},{"type":"semver","introduced":"0.4.0","fixed":"0.7.2","status":"affected"}],"vendor":"Ruby","product":"resolv","source":"cvelist"}],"references":[{"url":"https://github.com/ruby/resolv","tags":[],"sources":["cvelist","nvd"]},{"url":"https://www.ruby-lang.org/en/news/2026/08/27/multiple-vulnerabilities-in-resolv/","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-08-27T19:33:50.602Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80212","url":"https://www.cve.org/CVERecord?id=CVE-2026-80212","licence":"CVE Terms of Use","modified":"2026-08-27T19:33:58.773Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80212","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80212","licence":"Public domain","modified":"2026-09-09T16:04:24.933Z"}],"updatedAt":"2026-11-25T22:59:35.496Z","epss":{"score":0.00401,"percentile":0.36471,"date":"2026-12-01T12:00:22.000Z"}}