VDB

CVE-2026-80213

CVE-2026-80213 PUBLISHED CVSS 4 MEDIUM

Reported by mitre · Published August 27, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ruby3.4-develAmazon Linux3.4.8-27.amzn2023.0.7
ruby4.0-docAmazon Linux4.0.1-32.amzn2023.0.4
ruby-4.0Chainguard4.0.7-r0
ruby3.4-libsAmazon Linux3.4.8-27.amzn2023.0.7
ruby3.4-rubygem-rbsAmazon Linux3.8.0-27.amzn2023.0.7
ruby3.4-docAmazon Linux3.4.8-27.amzn2023.0.7
ruby3.4-rubygem-raccAmazon Linux1.8.1-27.amzn2023.0.7
ruby3.4-rubygem-rssAmazon Linux0.3.1-27.amzn2023.0.7
ruby-3.4Wolfi3.4.10-r7
ruby4.0Amazon Linux4.0.1-32.amzn2023.0.4
ruby-3.3Wolfi3.3.12-r5
ruby3.4Amazon Linux3.4.8-27.amzn2023.0.7

44 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
4
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N

Affected products

VendorProductVersions
Rubyresolv0, 0.4.0
amazon:2023ruby3.4-devel0
amazon:2023ruby4.0-doc0
chainguardruby-4.00
amazon:2023ruby3.4-libs0
amazon:2023ruby3.4-rubygem-rbs0
amazon:2023ruby3.4-doc0
amazon:2023ruby3.4-rubygem-racc0
amazon:2023ruby3.4-rubygem-rss0
wolfiruby-3.40
amazon:2023ruby4.00
wolfiruby-3.30
amazon:2023ruby3.40
amazon:2023ruby3.4-rubygem-irb0
amazon:2023ruby3.4-rubygem-bundler0
amazon:2023ruby3.4-rubygem-minitest0
amazon:2023ruby3.4-rubygem-typeprof0
amazon:2023ruby3.4-rubygem-rake0
amazon:2023ruby3.4-rubygem-rexml0
amazon:2023ruby4.0-libs0

…and 37 more

Timeline

  • Aug 27, 2026 Coalition ESS Score
  • Aug 27, 2026 CVE Published
  • Aug 27, 2026 CVE Updated
  • Aug 28, 2026 EPSS Score (23 in total, the first dated here)
  • Sep 2, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-80213
vulnetix vdb fixes CVE-2026-80213

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-80213/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›