CVE-2026-80213
An issue was discovered in the resolv gem before 0.7.2 for Ruby. Resolv::DNS::MessageEncoder wrote a DNS label's length into a single octet without checking its range. A label longer than 255 octets had its length stored modulo 256 but the label data was written unchanged, and thus the bytes on the wire described a different name than the one the application asked to encode. RFC 1035 section 2.3.4 limits a label to 63 octets, and the two high bits of the length octet are reserved for compression pointers. put_string packed the length with put_pack("C", d.length) and put_label used it for labels, and thus any value from 0 to 255 could end up as a label length octet, including the reserved 0x40-0xBF range and the 0xC0-0xFF pointer range. Resolv::DNS::Name.create did not check per-label or total name length either, and thus an attacker-controlled hostname reached the encoder unchanged. An application that resolves an attacker-controlled hostname sends a query whose wire bytes name a domain the attacker chose. A hostname suffix that the application validates against an allowlist becomes padding that never appears on the wire, and thus allowlist and egress checks can be bypassed. The recursive resolver caches the response under the attacker's name, and DNS logs record that name rather than the one the application asked for. A label length whose low octet lands in the 0xC0-0xFF range produces a length octet that conforming parsers read as the start of a compression pointer, with the following attacker-controlled byte as the offset.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Debian, Red Hat have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Debian 14 | ruby3.3 | Fix pending | DEBIAN-CVE-2026-80213 | |
| Debian 13 | ruby3.3 | Fixed | 3.3.13-0+deb13u1 | DEBIAN-CVE-2026-80213 |
| Debian 12 | ruby3.1 | Fix pending | DEBIAN-CVE-2026-80213 | |
| Red Hat Enterprise Linux 10 | ruby | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ruby-bundled-gems | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ruby-default-gems | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ruby-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ruby-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ruby-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ruby4.0 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ruby4.0-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ruby4.0-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ruby4.0-rubygem-mysql2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | ruby4.0-rubygem-pg | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-bigdecimal | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-bundler | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-io-console | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-irb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-json | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-minitest | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-power_assert | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-psych | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-racc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-rake | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-rbs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-rdoc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-rexml | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-rss | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-test-unit | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygem-typeprof | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygems | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | rubygems-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | ruby | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | ruby-default-gems | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | ruby-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | ruby-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | ruby-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygem-bigdecimal | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygem-bundler | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygem-io-console | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygem-irb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygem-json | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygem-minitest | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygem-power_assert | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygem-psych | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygem-rake | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygem-rbs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygem-rdoc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygem-rexml | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygem-rss | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygem-test-unit | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygem-typeprof | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygems | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | rubygems-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ruby | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ruby-bundled-gems | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ruby-default-gems | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ruby-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ruby-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ruby-irb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | ruby-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-abrt | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-abrt-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-bigdecimal | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-bson | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-bson-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-bundler | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-bundler-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-did_you_mean | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-io-console | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-irb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-json | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-minitest | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-mongo | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-mongo-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-mysql2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-mysql2-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-net-telnet | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-openssl | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-pg | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-pg-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-power_assert | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-psych | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-racc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-rake | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-rbs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-rdoc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-rexml | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-rss | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-test-unit | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-typeprof | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygem-xmlrpc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygems | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | rubygems-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | ruby | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | ruby-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | ruby-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | ruby-irb | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | ruby-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | ruby-tcltk | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | rubygem-bigdecimal | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | rubygem-io-console | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | rubygem-json | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | rubygem-minitest | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | rubygem-psych | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | rubygem-rake | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | rubygem-rdoc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | rubygems | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | rubygems-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | ruby | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-docs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-irb | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-rdoc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-ri | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-tcltk | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | ruby | Fixed | 3.4.12-r0 | ALPINE-CVE-2026-80213 |
| Alpine Linux 3.23 | ruby | Fixed | 3.4.12-r0 | ALPINE-CVE-2026-80213 |
| Alpine Linux 3.22 | ruby | Fixed | 3.4.12-r0 | ALPINE-CVE-2026-80213 |
| Alpine Linux 3.21 | ruby | Fixed | 3.3.13-r0 | ALPINE-CVE-2026-80213 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Ruby resolv: affected: before 0.3.2, 0.4.0 to before 0.7.2; fixed in
0.3.2,0.7.2
References
- https://github.com/ruby/resolv
- https://www.ruby-lang.org/en/news/2026/08/27/multiple-vulnerabilities-in-resolv/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.