CVE-2026-80213Patch

LOWCVSS 4.0 · MEDIUM

Signal is active with 2 mentions in latest observed window

Immediate actions

  • Patch affected systems immediately

Recommended action window: Monitor and triage in normal cycle

NVD 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.

0.5/ 10 priority

Sources & remediation

Weakness type (CWE)
CWE-197

Priority

LOW

Exploitation

NONE

PoC

NONE

Patch

AVAILABLE

Momentum

NONE

Threat summary

  • Patch or workaround signal is available
  • 2 mentions across 1 observed day

What's happening

  • Patch or workaround mentioned in 2 signals
  • Technical details provided in 1 signal
  • 2 total mentions across 1 day

Deep dive

Activity timeline2 mentions / 1d
01122Mentions · 2026-08-27: 2Patch / Workaround · 2026-08-27: 2Technical Details · 2026-08-27: 108-27
Signal classification1 categories
Patch
2100.0%
Referenced assets1 URL
Full discourse2 posts
  • Hiroshi SHIBATA@hsbt
    Patch

    resolv 0.7.2 and 0.3.2 are out, fixing CVE-2026-80212 (memory exhaustion) and CVE-2026-80213 (hostname validation bypass). Only code that resolves names through the resolv gem is affected. Ordinary socket and Net::HTTP connections are not. https://www.ruby-lang.org/en/news/2026/08/27/multiple-vulnerabilities-in-resolv/

    Post summary

    Ruby releases 0.7.2 and 0.3.2 to patch memory exhaustion and hostname validation bypass issues in the resolv gem, affecting only gem-based name resolution.

    0802722.2K
    7.8K followersView on X
  • Sergio Pereda@chapuzon
    Patch

    🔒 Nuevas amenazas encontradas en el gem 'resolv' de Ruby: CVE-2026-80212 y CVE-2026-80213. ¡Asegura tus aplicaciones actualizando a la versión 0.7.2! Infórmate aquí: https://www.ruby-lang.org/en/news/2026/08/27/multiple-vulnerabilities-in-resolv/ #Ciberseguridad

    Post summary

    The tweet announces new CVEs in Ruby’s 'resolv' gem and urges users to upgrade to version 0.7.2 to address the vulnerabilities.

    0000075
    121 followersView on X

Explore more