CVEBrief

Home / Ruby / resolv / CVE-2026-80213

CVE-2026-80213: is it exploited, and which versions of Ruby resolv are affected and fixed?

CVE-2026-80213 is a numeric Truncation Error vulnerability in Ruby resolv. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:39 UTC). Affected: resolv before 0.3.2 and resolv from 0.4.0 before 0.7.2 (CVE record by mitre). Fixed in 0.3.2 and 0.7.2 (CVE record by mitre). Severity: Medium (4.0, CVSS 3.1, from mitre).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 19, 2026, 07:06 UTC and NVD November 19, 2026, 07:08 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 15:39 UTC
Affected
resolv before 0.3.2 and resolv from 0.4.0 before 0.7.2
CVE record by mitre
Fixed in
0.3.2 and 0.7.2
CVE record by mitre
Severity
Medium 4.0
CVSS 3.1 from mitre
Exploit odds (EPSS)
0.27% in 30 days
higher than 21% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2026-80213?

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.

From the CVE record by mitre, last updated August 27, 2026, 17:52 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
Rubyresolvbefore 0.3.2
from 0.4.0 before 0.7.2
0.3.2, 0.7.2

As the CVE record by mitre states it, last updated August 27, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

How severe is CVE-2026-80213?

ScoreVersionVectorSource
Medium 4.0CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:Nmitre

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2026-80213 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: partial (CISA ADP, August 27, 2026)
EPSS
0.27% probability of exploitation activity in the next 30 days, percentile 20.6 (FIRST EPSS, scores of December 3, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
August 26, 2026
Published
August 27, 2026, 14:22 UTC
CVE record updated
August 27, 2026, 17:52 UTC by mitre
NVD
Deferred, last modified September 9, 2026, 16:04 UTC
Last checked
CVE list November 19, 2026, 07:06 UTC; NVD November 19, 2026, 07:08 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

What other CVEs affect resolv?

Every CVE in resolv

Questions about CVE-2026-80213

Is CVE-2026-80213 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 0.27% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of Ruby resolv are affected by CVE-2026-80213?

resolv before 0.3.2 and resolv from 0.4.0 before 0.7.2, per the CVE record by mitre. The tables above give every range the sources list.

Which version fixes CVE-2026-80213?

0.3.2 and 0.7.2, per the CVE record by mitre. Check the vendor's advisory before you rely on it.

How severe is CVE-2026-80213?

Medium (4.0, CVSS 3.1, from mitre). The severity table above shows each score with its source.

Where is the official record of CVE-2026-80213?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.