CVE & CISA-KEV Catalog

CVE-2026-80213

MEDIUM
4.0
CVSS v3
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.

How to fix

Remediation Available
ruby3Rocky
Fixed in:3-main@srcRHSA-2026:62562
Fixed in:3-main@x86_64RHSA-2026:62562
Fixed in:3-main@aarch64RHSA-2026:62562
Fixed in:3-main@noarchRHSA-2026:62562
ruby3Red Hat / RHEL
Fixed in:3-main@aarch64RHSA-2026:62562
Fixed in:3-main@srcRHSA-2026:62562
Fixed in:3-main@x86_64RHSA-2026:62562
Fixed in:3-main@noarchRHSA-2026:62562
ruby4Rocky
Fixed in:0-main@aarch64RHSA-2026:62563
Fixed in:0-main@srcRHSA-2026:62563
Fixed in:0-main@noarchRHSA-2026:62563
Fixed in:0-main@x86_64RHSA-2026:62563
ruby4Red Hat / RHEL
Fixed in:0-main@srcRHSA-2026:62563
Fixed in:0-main@aarch64RHSA-2026:62563
Fixed in:0-main@x86_64RHSA-2026:62563
Fixed in:0-main@noarchRHSA-2026:62563

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeChanged

Impact

ConfidentialityNone
IntegrityLow
AvailabilityNone

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N

Exploit Intelligence

0.35%probability of exploitation in 30 days
28thpercentile

Low risk: more likely to be exploited than 28% of all known CVEs.

References

Other references2

Related Vulnerabilities

Other CWE-197 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-42475Critical9.899%KEV + RansomFix
CVE-2025-6965High7.773%-Fix
CVE-2024-21310High7.812%-Fix
CVE-2024-43639Critical9.88.9%-Fix
CVE-2024-38125High7.85.9%-Fix
CVE-2024-28944High8.82.4%-Fix

Common questions

How do I fix CVE-2026-80213?

Published advisories record a fix for 4 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2026-80213 being actively exploited?

Not that we know of. CVE-2026-80213 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.35% is the estimated probability that it will be exploited in the next 30 days. That is higher than 28% of all scored CVEs.

How severe is CVE-2026-80213?

CVE-2026-80213 has a CVSS v3 base score of 4.0, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2026-80213 affect?

Published advisories record a fix for ruby3 (Rocky), ruby3 (Red Hat / RHEL), ruby4 (Rocky), ruby4 (Red Hat / RHEL). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2026-80213
CVE-2026-80213 severity badge

Markdown

[![CVE-2026-80213](https://tridentstack.com/cve/badge/CVE-2026-80213.svg)](https://tridentstack.com/cve/CVE-2026-80213)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-80213"><img src="https://tridentstack.com/cve/badge/CVE-2026-80213.svg" alt="CVE-2026-80213"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-09-09.