CVE-2026-80213

EUVD-2026-67139
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
4 MEDIUM
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N
Awaiting analysis
This vulnerability is currently awaiting analysis.
Base Score
CVSS 3.x
EPSS Score
Percentile: 26.66%
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
ruby3.4
Amazon Linux 2023
0:3.4.8-27.amzn2023.0.7
fixed
ruby3.4-bundled-gems
Amazon Linux 2023
0:3.4.8-27.amzn2023.0.7
fixed
ruby3.4-bundled-gems-debuginfo
Amazon Linux 2023
0:3.4.8-27.amzn2023.0.7
fixed
ruby3.4-debuginfo
Amazon Linux 2023
0:3.4.8-27.amzn2023.0.7
fixed
ruby3.4-debugsource
Amazon Linux 2023
0:3.4.8-27.amzn2023.0.7
fixed
ruby3.4-default-gems
Amazon Linux 2023
0:3.4.8-27.amzn2023.0.7
fixed
ruby3.4-devel
Amazon Linux 2023
0:3.4.8-27.amzn2023.0.7
fixed
ruby3.4-doc
Amazon Linux 2023
0:3.4.8-27.amzn2023.0.7
fixed
ruby3.4-libs
Amazon Linux 2023
0:3.4.8-27.amzn2023.0.7
fixed
ruby3.4-libs-debuginfo
Amazon Linux 2023
0:3.4.8-27.amzn2023.0.7
fixed
ruby3.4-rubygem-bigdecimal
Amazon Linux 2023
0:3.1.8-27.amzn2023.0.7
fixed
ruby3.4-rubygem-bigdecimal-debuginfo
Amazon Linux 2023
0:3.1.8-27.amzn2023.0.7
fixed
ruby3.4-rubygem-bundler
Amazon Linux 2023
0:2.6.9-27.amzn2023.0.7
fixed
ruby3.4-rubygem-io-console
Amazon Linux 2023
0:0.8.1-27.amzn2023.0.7
fixed
ruby3.4-rubygem-io-console-debuginfo
Amazon Linux 2023
0:0.8.1-27.amzn2023.0.7
fixed
ruby3.4-rubygem-irb
Amazon Linux 2023
0:1.14.3-27.amzn2023.0.7
fixed
ruby3.4-rubygem-json
Amazon Linux 2023
0:2.9.1-27.amzn2023.0.7
fixed
ruby3.4-rubygem-json-debuginfo
Amazon Linux 2023
0:2.9.1-27.amzn2023.0.7
fixed
ruby3.4-rubygem-minitest
Amazon Linux 2023
0:5.25.4-27.amzn2023.0.7
fixed
ruby3.4-rubygem-power_assert
Amazon Linux 2023
0:2.0.5-27.amzn2023.0.7
fixed
ruby3.4-rubygem-psych
Amazon Linux 2023
0:5.2.2-27.amzn2023.0.7
fixed
ruby3.4-rubygem-psych-debuginfo
Amazon Linux 2023
0:5.2.2-27.amzn2023.0.7
fixed
ruby3.4-rubygem-racc
Amazon Linux 2023
0:1.8.1-27.amzn2023.0.7
fixed
ruby3.4-rubygem-racc-debuginfo
Amazon Linux 2023
0:1.8.1-27.amzn2023.0.7
fixed
ruby3.4-rubygem-rake
Amazon Linux 2023
0:13.2.1-27.amzn2023.0.7
fixed
ruby3.4-rubygem-rbs
Amazon Linux 2023
0:3.8.0-27.amzn2023.0.7
fixed
ruby3.4-rubygem-rbs-debuginfo
Amazon Linux 2023
0:3.8.0-27.amzn2023.0.7
fixed
ruby3.4-rubygem-rdoc
Amazon Linux 2023
0:6.14.0-27.amzn2023.0.7
fixed
ruby3.4-rubygem-rexml
Amazon Linux 2023
0:3.4.4-27.amzn2023.0.7
fixed
ruby3.4-rubygem-rss
Amazon Linux 2023
0:0.3.1-27.amzn2023.0.7
fixed
ruby3.4-rubygem-test-unit
Amazon Linux 2023
0:3.6.7-27.amzn2023.0.7
fixed
ruby3.4-rubygem-typeprof
Amazon Linux 2023
0:0.30.1-27.amzn2023.0.7
fixed
ruby3.4-rubygems
Amazon Linux 2023
0:3.6.9-27.amzn2023.0.7
fixed
ruby3.4-rubygems-devel
Amazon Linux 2023
0:3.6.9-27.amzn2023.0.7
fixed
ruby4.0
Amazon Linux 2023
0:4.0.1-32.amzn2023.0.4
fixed
ruby4.0-bundled-gems
Amazon Linux 2023
0:4.0.1-32.amzn2023.0.4
fixed
ruby4.0-bundled-gems-debuginfo
Amazon Linux 2023
0:4.0.1-32.amzn2023.0.4
fixed
ruby4.0-debuginfo
Amazon Linux 2023
0:4.0.1-32.amzn2023.0.4
fixed
ruby4.0-debugsource
Amazon Linux 2023
0:4.0.1-32.amzn2023.0.4
fixed
ruby4.0-default-gems
Amazon Linux 2023
0:4.0.1-32.amzn2023.0.4
fixed
ruby4.0-devel
Amazon Linux 2023
0:4.0.1-32.amzn2023.0.4
fixed
ruby4.0-doc
Amazon Linux 2023
0:4.0.1-32.amzn2023.0.4
fixed
ruby4.0-libs
Amazon Linux 2023
0:4.0.1-32.amzn2023.0.4
fixed
ruby4.0-libs-debuginfo
Amazon Linux 2023
0:4.0.1-32.amzn2023.0.4
fixed
ruby4.0-rubygem-bigdecimal
Amazon Linux 2023
0:4.0.1-32.amzn2023.0.4
fixed
ruby4.0-rubygem-bigdecimal-debuginfo
Amazon Linux 2023
0:4.0.1-32.amzn2023.0.4
fixed
ruby4.0-rubygem-bundler
Amazon Linux 2023
0:4.0.3-32.amzn2023.0.4
fixed
ruby4.0-rubygem-io-console
Amazon Linux 2023
0:0.8.2-32.amzn2023.0.4
fixed
ruby4.0-rubygem-io-console-debuginfo
Amazon Linux 2023
0:0.8.2-32.amzn2023.0.4
fixed
ruby4.0-rubygem-irb
Amazon Linux 2023
0:1.16.0-32.amzn2023.0.4
fixed
ruby4.0-rubygem-json
Amazon Linux 2023
0:2.18.0-32.amzn2023.0.4
fixed
ruby4.0-rubygem-json-debuginfo
Amazon Linux 2023
0:2.18.0-32.amzn2023.0.4
fixed
ruby4.0-rubygem-minitest
Amazon Linux 2023
0:6.0.0-32.amzn2023.0.4
fixed
ruby4.0-rubygem-power_assert
Amazon Linux 2023
0:3.0.1-32.amzn2023.0.4
fixed
ruby4.0-rubygem-psych
Amazon Linux 2023
0:5.3.1-32.amzn2023.0.4
fixed
ruby4.0-rubygem-psych-debuginfo
Amazon Linux 2023
0:5.3.1-32.amzn2023.0.4
fixed
ruby4.0-rubygem-racc
Amazon Linux 2023
0:1.8.1-32.amzn2023.0.4
fixed
ruby4.0-rubygem-racc-debuginfo
Amazon Linux 2023
0:1.8.1-32.amzn2023.0.4
fixed
ruby4.0-rubygem-rake
Amazon Linux 2023
0:13.3.1-32.amzn2023.0.4
fixed
ruby4.0-rubygem-rbs
Amazon Linux 2023
0:3.10.0-32.amzn2023.0.4
fixed
ruby4.0-rubygem-rbs-debuginfo
Amazon Linux 2023
0:3.10.0-32.amzn2023.0.4
fixed
ruby4.0-rubygem-rdoc
Amazon Linux 2023
0:7.0.3-32.amzn2023.0.4
fixed
ruby4.0-rubygem-rexml
Amazon Linux 2023
0:3.4.4-32.amzn2023.0.4
fixed
ruby4.0-rubygem-rss
Amazon Linux 2023
0:0.3.2-32.amzn2023.0.4
fixed
ruby4.0-rubygem-test-unit
Amazon Linux 2023
0:3.7.5-32.amzn2023.0.4
fixed
ruby4.0-rubygem-typeprof
Amazon Linux 2023
0:0.31.1-32.amzn2023.0.4
fixed
ruby4.0-rubygems
Amazon Linux 2023
0:4.0.3-32.amzn2023.0.4
fixed
ruby4.0-rubygems-devel
Amazon Linux 2023
0:4.0.3-32.amzn2023.0.4
fixed
Azure Linux logo
Azure Linux Releases
Azure Package
Release
ruby
Azure Linux 3.0
0:3.3.5-9.azl3
fixed