CVE-2026-80212 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...
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- DebianRed Hat
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.
Upgrade path
34 packages: 18 fixed, 16 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/ruby3.1(Debian 12) | = 3.1.2-7; = 3.1.2-7+deb12u1; = 3.1.2-7+hurd.1; = 3.1.2-8 +5 more | No fix listed | No fix yet |
| debian/ruby3.3(Debian 14) | = 3.3.8-2; = 3.3.8-2.1; = 3.3.8-2.2; All versions | No fix listed | No fix yet |
| redhat/lightspeed-core/rag-tool-cpu-rhel9(Red Hat lightspeed_core) | All versions | No fix listed | No fix yet |
| redhat/lightspeed-core/rag-tool-cuda-12.9-rhel9(Red Hat lightspeed_core) | All versions | No fix listed | No fix yet |
| redhat/ruby:2.5-8040020261007063956.522a0ee4(Red Hat rhel_aus 8.4) | All versions | No fix listed | No fix yet |
| redhat/ruby:2.5-8040020261007063956.522a0ee4(Red Hat rhel_eus_long_life 8.4) | All versions | No fix listed | No fix yet |
| redhat/ruby:2.5-8060020261006170103.ad008a3a(Red Hat rhel_aus 8.6) | All versions | No fix listed | No fix yet |
| redhat/ruby:2.5-8060020261006170103.ad008a3a(Red Hat rhel_eus_long_life 8.6) | All versions | No fix listed | No fix yet |
| redhat/ruby:2.5-8080020261006163955.63b34585(Red Hat rhel_e4s 8.8) | All versions | No fix listed | No fix yet |
| redhat/ruby:2.5-8080020261006163955.63b34585(Red Hat rhel_tus 8.8) | All versions | No fix listed | No fix yet |
| redhat/ruby:2.5-8100020260923114349.489197e6(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/ruby:3.3-8100020260909091101.489197e6(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/ruby:3.3-9040020260925105409.9(Red Hat rhel_e4s 9.4) | All versions | No fix listed | No fix yet |
| redhat/ruby:3.3-9060020260925110613.9(Red Hat rhel_eus 9.6) | All versions | No fix listed | No fix yet |
| redhat/ruby:3.3-9080020260909091103.9(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/ruby:4.0-9080020260909091105.9(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| alpine/ruby(Alpine v3.21) | < 3.3.13-r0 | 3.3.13-r0 | Fixed |
| alpine/ruby(Alpine v3.22) | < 3.4.12-r0 | 3.4.12-r0 | Fixed |
| alpine/ruby(Alpine v3.23) | < 3.4.12-r0 | 3.4.12-r0 | Fixed |
| alpine/ruby(Alpine v3.24) | < 3.4.12-r0 | 3.4.12-r0 | Fixed |
| azure linux ruby(Azure Linux 4.0) | < 0:3.4.10-36.azl4 | 0:3.4.10-36.azl4 | Fixed |
| debian/ruby3.3(Debian 13) | < 3.3.13-0+deb13u1; = 3.3.8-2; = 3.3.8-2.1; = 3.3.8-2.2 | 3.3.13-0+deb13u1 | Fixed |
| redhat/ruby(Red Hat enterprise_linux 10.2) | < 3.3.12-15.el10_2 | 3.3.12-15.el10_2 | Fixed |
| redhat/ruby(Red Hat enterprise_linux 9) | < 3.0.7-168.el9_8 | 3.0.7-168.el9_8 | Fixed |
| redhat/ruby(Red Hat enterprise_linux_eus 10.0) | < 3.3.12-12.el10_0 | 3.3.12-12.el10_0 | Fixed |
| redhat/ruby(Red Hat rhel_e4s 9.2) | < 3.0.4-162.el9_2 | 3.0.4-162.el9_2 | Fixed |
| redhat/ruby(Red Hat rhel_e4s 9.4) | < 3.0.7-163.el9_4 | 3.0.7-163.el9_4 | Fixed |
| redhat/ruby(Red Hat rhel_els 7) | < 2.0.0.648-40.el7_9 | 2.0.0.648-40.el7_9 | Fixed |
| redhat/ruby(Red Hat rhel_eus 9.6) | < 3.0.7-166.el9_6 | 3.0.7-166.el9_6 | Fixed |
| redhat/ruby3-3-main(Red Hat hummingbird 1) | < 0.21.9-23.6.hum1; < 3.3.10-23.5.hum1; < 3.3.10-23.6.hum1 | 0.21.9-23.6.hum1, 3.3.10-23.5.hum1, 3.3.10-23.6.hum1 | Fixed |
… and 4 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems resolv | < 0.3.2 | 0.3.2 |
| rubygems resolv | >= 0.4.0, < 0.7.2 | 0.7.2 |
| redhat/ruby4.0(Red Hat:enterprise_linux:10.2) | < 4.0.6-37.el10_2 | 4.0.6-37.el10_2 |
| redhat/ruby(Red Hat:enterprise_linux:10.2) | < 3.3.12-15.el10_2 | 3.3.12-15.el10_2 |
| redhat/ruby(Red Hat:enterprise_linux_eus:10.0) | < 3.3.12-12.el10_0 | 3.3.12-12.el10_0 |
| redhat/ruby(Red Hat:rhel_els:7) | < 2.0.0.648-40.el7_9 | 2.0.0.648-40.el7_9 |
| redhat/ruby:3.3-8100020260909091101.489197e6(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/ruby:2.5-8100020260923114349.489197e6(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/ruby:2.5-8040020261007063956.522a0ee4(Red Hat:rhel_aus:8.4) | All versions | No fix listed |
| redhat/ruby:2.5-8040020261007063956.522a0ee4(Red Hat:rhel_eus_long_life:8.4) | All versions | No fix listed |
| redhat/ruby:2.5-8060020261006170103.ad008a3a(Red Hat:rhel_aus:8.6) | All versions | No fix listed |
| redhat/ruby:2.5-8060020261006170103.ad008a3a(Red Hat:rhel_eus_long_life:8.6) | All versions | No fix listed |
| redhat/ruby:2.5-8080020261006163955.63b34585(Red Hat:rhel_tus:8.8) | All versions | No fix listed |
| redhat/ruby:2.5-8080020261006163955.63b34585(Red Hat:rhel_e4s:8.8) | All versions | No fix listed |
| redhat/ruby(Red Hat:enterprise_linux:9) | < 3.0.7-168.el9_8 | 3.0.7-168.el9_8 |
| redhat/ruby:4.0-9080020260909091105.9(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/ruby:3.3-9080020260909091103.9(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/ruby(Red Hat:rhel_e4s:9.2) | < 3.0.4-162.el9_2 | 3.0.4-162.el9_2 |
| redhat/ruby(Red Hat:rhel_e4s:9.4) | < 3.0.7-163.el9_4 | 3.0.7-163.el9_4 |
| redhat/ruby:3.3-9040020260925105409.9(Red Hat:rhel_e4s:9.4) | All versions | No fix listed |
| redhat/ruby(Red Hat:rhel_eus:9.6) | < 3.0.7-166.el9_6 | 3.0.7-166.el9_6 |
| redhat/ruby:3.3-9060020260925110613.9(Red Hat:rhel_eus:9.6) | All versions | No fix listed |
| redhat/ruby4-0-main(Red Hat:hummingbird:1) | < 4.0.6-37.2.hum1 | 4.0.6-37.2.hum1 |
| redhat/ruby3-3-main(Red Hat:hummingbird:1) | < 3.3.10-23.5.hum1 | 3.3.10-23.5.hum1 |
| redhat/ruby3-4-main(Red Hat:hummingbird:1) | < 3.4.10-31.6.hum1 | 3.4.10-31.6.hum1 |
Show 29 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/ruby3-3-main(Red Hat:hummingbird:1) | < 0.21.9-23.6.hum1 | 0.21.9-23.6.hum1 |
| redhat/ruby3-3-main(Red Hat:hummingbird:1) | < 3.3.10-23.6.hum1 | 3.3.10-23.6.hum1 |
| redhat/ruby4-0-main(Red Hat:hummingbird:1) | < 0.3.2-37.3.hum1 | 0.3.2-37.3.hum1 |
| redhat/ruby4-0-main(Red Hat:hummingbird:1) | < 4.0.6-37.3.hum1 | 4.0.6-37.3.hum1 |
| redhat/lightspeed-core/rag-tool-cpu-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/lightspeed-core/rag-tool-cuda-12.9-rhel9(Red Hat:lightspeed_core) | All versions | No fix listed |
| redhat/ruby(Red Hat:rhel_els:6) | All versions | No fix listed |
| debian/ruby3.1(Debian:12) | All versions | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-7 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-7+deb12u1 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-7+hurd.1 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-8 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-8.1~exp1 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-8.3 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-8.4 | No fix listed |
| debian/ruby3.1(Debian:12) | = 3.1.2-8.5 | No fix listed |
| debian/ruby3.3(Debian:13) | < 3.3.13-0+deb13u1 | 3.3.13-0+deb13u1 |
| debian/ruby3.3(Debian:13) | = 3.3.8-2 | No fix listed |
| debian/ruby3.3(Debian:13) | = 3.3.8-2.1 | No fix listed |
| debian/ruby3.3(Debian:13) | = 3.3.8-2.2 | No fix listed |
| debian/ruby3.3(Debian:14) | All versions | No fix listed |
| debian/ruby3.3(Debian:14) | = 3.3.8-2 | No fix listed |
| debian/ruby3.3(Debian:14) | = 3.3.8-2.1 | No fix listed |
| debian/ruby3.3(Debian:14) | = 3.3.8-2.2 | No fix listed |
| alpine/ruby(Alpine:v3.21) | < 3.3.13-r0 | 3.3.13-r0 |
| alpine/ruby(Alpine:v3.22) | < 3.4.12-r0 | 3.4.12-r0 |
| alpine/ruby(Alpine:v3.23) | < 3.4.12-r0 | 3.4.12-r0 |
| alpine/ruby(Alpine:v3.24) | < 3.4.12-r0 | 3.4.12-r0 |
| azure linux ruby(Azure Linux:4.0) | < 0:3.4.10-36.azl4 | 0:3.4.10-36.azl4 |
References
- github.com
- www.ruby-lang.org
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:72427 patch vendor-advisory
- RHSA-2026:72785 patch vendor-advisory
- RHSA-2026:83570 patch vendor-advisory
- RHSA-2026:96099 patch vendor-advisory
- RHSA-2026:72285 patch vendor-advisory
- RHSA-2026:73519 patch vendor-advisory
- RHSA-2026:95512 patch vendor-advisory
- RHSA-2026:95513 patch vendor-advisory
- RHSA-2026:95514 patch vendor-advisory
- RHSA-2026:72286 patch vendor-advisory
- RHSA-2026:72484 patch vendor-advisory
- RHSA-2026:72485 patch vendor-advisory
- RHSA-2026:83574 patch vendor-advisory
- RHSA-2026:83572 patch vendor-advisory
- RHSA-2026:86208 patch vendor-advisory
- RHSA-2026:83571 patch vendor-advisory
- RHSA-2026:86207 patch vendor-advisory
- RHSA-2026:57565 patch vendor-advisory
- RHSA-2026:57986 patch vendor-advisory
- RHSA-2026:57994 patch vendor-advisory
- RHSA-2026:62562 patch vendor-advisory
- RHSA-2026:62563 patch vendor-advisory
- Red Hat Bugzilla 2525066 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com
- Debian Security Tracker CVE-2026-80212 vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- ENISA EUVD EUVD-2026-67138 third-party-advisory