CVE-2026-80213
CVE-2026-80213
CVSS 4.0 · Medium · EPSS 0.4% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- resolvUpdate to 0.3.2 / 0.7.2
- ruby Alpine 3.21Update to 3.3.13-r0
- ruby Alpine 3.22Update to 3.4.12-r0
- ruby Alpine 3.23Update to 3.4.12-r0
- and 4 more
Check the installed version:
apk list -I -o rubyAssess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- DSA-6614-1 · Debian 13 ·
- RHSA-2026:62563 · Red Hat hummingbird 1 ·
- RHSA-2026:62562 · Red Hat hummingbird 1 ·
- RHSA-2026:57986 · Red Hat hummingbird 1 ·
- RHSA-2026:57994 · Red Hat hummingbird 1 ·
- RHSA-2026:57565 · Red Hat hummingbird 1 ·
Stack: system
Affected products and versions
resolv
- Versions
- ≥ 0, < 0.3.2: Affected (semver)
- ≥ 0.4.0, < 0.7.2: Affected (semver)
Update to 0.3.2; Update to 0.7.2
ruby Alpine 3.21
- Affected ranges
- ECOSYSTEM: < 3.3.13-r0
Update to 3.3.13-r0
ruby Alpine 3.22
- Affected ranges
- ECOSYSTEM: < 3.4.12-r0
Update to 3.4.12-r0
ruby Alpine 3.23
- Affected ranges
- ECOSYSTEM: < 3.4.12-r0
Update to 3.4.12-r0
ruby Alpine 3.24
- Affected ranges
- ECOSYSTEM: < 3.4.12-r0
Update to 3.4.12-r0
ruby3.1 Debian 12
- Versions
- 3.1.2-7
- 3.1.2-7+deb12u1
- 3.1.2-7+hurd.1
- 3.1.2-8
- 3.1.2-8.1~exp1
- 3.1.2-8.3
All versions (8)
- 3.1.2-8.4
- 3.1.2-8.5
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby3.3 Debian 13
- Versions
- 3.3.8-2
- 3.3.8-2.1
- 3.3.8-2.2
- Affected ranges
- ECOSYSTEM: < 3.3.13-0+deb13u1
Update to 3.3.13-0+deb13u1
ruby3.3 Debian 14
- Versions
- 3.3.8-2
- 3.3.8-2.1
- 3.3.8-2.2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published