CVE-2026-80213: CWE-197 Numeric Truncation Error in Ruby 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
Affected software
Ruby
resolv
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.