Skip to main content
EPSS 0.4%top 73%

CVE-2026-80213: CWE-197 Numeric Truncation Error in Ruby resolv

0
Medium
VulnerabilityCVE-2026-80213cvecve-2026-80213cwe-197
Published: 08/27/2026 (08/27/2026, 14:22:23 UTC)
Source: CVE Database V5
Vendor/Project: Ruby
Product: resolv

Description

CVE-2026-80213 is a numeric truncation error in the Ruby resolv gem before version 0.7.2. The vulnerability arises because the DNS label length is written as a single octet without validating its range, allowing labels longer than 255 octets to be encoded incorrectly. This causes the wire format of DNS queries to differ from the intended domain name, potentially bypassing allowlist and egress checks. The issue can lead to recursive resolvers caching responses under attacker-controlled names and DNS logs recording misleading domain names.

CVSS v3.1

Score 4.0medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N

Affected software

Ruby

resolv

Affected versions
>=0 <0.3.2>=0.4.0 <0.7.2

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/10/2026, 04:38:51 UTC

Technical Analysis

The Ruby resolv gem's DNS message encoder writes a DNS label's length into a single octet without range checking, allowing labels longer than 255 octets to be encoded with truncated length values modulo 256. This violates RFC 1035, which limits label length to 63 octets and reserves high bits for compression pointers. An attacker-controlled hostname can cause the encoded DNS query to differ from the requested name, enabling bypass of allowlist and egress validations. The recursive resolver caches responses under the attacker's chosen name, and DNS logs reflect this manipulated name. The vulnerability affects resolv versions before 0.7.2, including version 0.4.0 explicitly noted.

Potential Impact

The vulnerability allows an attacker to craft DNS queries that differ on the wire from the application-intended domain name, potentially bypassing hostname allowlists and egress filtering. This can cause recursive DNS resolvers to cache and respond with manipulated domain names, misleading DNS logs and possibly affecting downstream security controls. The impact is limited to information integrity and validation bypass, with no direct confidentiality or availability impact reported.

Mitigation Recommendations

No official fix or patch is currently confirmed for this vulnerability. Users should monitor the Ruby resolv gem releases for updates addressing this issue. Until a patch is available, applications should avoid resolving attacker-controlled hostnames or implement additional validation outside of the resolv gem to enforce DNS label length constraints according to RFC 1035.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
mitre
Date Reserved
2026-08-26T01:45:16.494Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a906bafacd9273b4983a0e7

Added to database: 08/27/2026, 16:54:07 UTC

Last enriched: 09/10/2026, 04:38:51 UTC

Last updated: 10/10/2026, 18:48:23 UTC

Views: 54

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses