CVE-2026-80213
Last modified
CVE-2026-80213 is a medium-severity vulnerability rated 4/10 on the CVSS scale. 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.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Ruby | resolv | < 0.3.2; >= 0.4.0, < 0.7.2 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-80213?
How severe is CVE-2026-80213?
How do I fix CVE-2026-80213?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-80208APITable through 1.13.0-beta.1 annotates both getUserHistori…8.2
- CVE-2026-80209The updateWorkspace handler in mods/identity/src/workspaces/…4.3
- CVE-2026-8021Script injection in UI in Google Chrome prior to 148.0.7778.…4.2
- CVE-2026-80210FrontAccounting through 2.4.20 generates a CSRF token in end…6.5
- CVE-2026-80211FrontAccounting through 2.4.20 stores and verifies user pass…5.9
- CVE-2026-80212An issue was discovered in the resolv gem before 0.7.2 for R…7.5
- CVE-2026-80214LibreNMS’s Virtualization Discovery module is vulnerable to …8.6
- CVE-2026-8022Inappropriate implementation in MHTML in Google Chrome prior…3.1
- CVE-2026-80223Incorrect Authorization vulnerability in ash-project ash_gra…7.1
- CVE-2026-80227Incorrect Comparison vulnerability in ash-project ash_sql al…2.1
- CVE-2026-8023Zephyr's HTTP server (subsys/net/lib/http) provides a static…7.5
- CVE-2026-80233CAYIN CMS-WS, CMS-SE, and SMP series products developed by C…7.2
Are you affected by CVE-2026-80213?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
