4

CVE-2026-80213: ruby resolv Numeric Truncation Error

Deferred
AliasesCGA-8x9x-phhc-gffqCGA-97f4-v2g8-hh9mCGA-cfrp-vm49-mj5w
Published 27-08-2026Last modified 27-08-2026

Vulnerability summary

CVE-2026-80213 is a medium (CVSS 4.0) Numeric Truncation Error vulnerability in ruby resolv. EPSS estimates a 0.27% chance of exploitation in the next 30 days, higher than 19.3% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 4, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
4.0/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.27%
0%100%
Low · -0.08 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 5

Timeline

  1. 27-08-2026
    PublishedVulnerability first disclosed.
  2. 27-08-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.27%

Chance of exploitation in the next 30 days

Percentile

19%

Versus all other CVEs

30-day change

Decrease -0.08 pp

From 0.35% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard4 products
  • ruby-3.2All versions (No fix recorded)
  • ruby-3.3< 3.3.12-r5
  • ruby-3.4< 3.4.10-r7
  • ruby-4.0All versions (No fix recorded)
Wolfi4 products
  • ruby-3.2All versions (No fix recorded)
  • ruby-3.3< 3.3.12-r5
  • ruby-3.4< 3.4.10-r7
  • ruby-4.0All versions (No fix recorded)
Alpine1 product
  • ruby< 3.3.13-r0 | < 3.4.12-r0
Ruby1 product
  • resolv< 0.3.2 | ≥ 0.4.0, < 0.7.2

4 vendors · 10 products

References

5 links