Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-80213

Quick assessment

Affected
Ruby resolv
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Ruby Resolv是Ruby组织的一个用 Ruby 编写的线程感知型 DNS 解析器库。 Ruby Resolv 0.7.2之前版本存在数字错误漏洞,该漏洞源于Resolv::DNS::MessageEncoder在写入DNS标签长度时未检查其范围,可能导致绕过允许列表和出口检查。

CVSS 4.0 · Medium EPSS 0.35% · P27

Possible ATT&CK Techniques 1 AI

T1071 · Application Layer Protocol

Affected Version Matrix 2

VendorProduct Version RangeStatus
Ruby resolv < 0.3.2 affected
0.4.0< 0.7.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-80213

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
N/A
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
数值截断错误
Source: CVE Program / CVE List V5
Vulnerability Title
Ruby Resolv 数字错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Ruby Resolv是Ruby组织的一个用 Ruby 编写的线程感知型 DNS 解析器库。 Ruby Resolv 0.7.2之前版本存在数字错误漏洞,该漏洞源于Resolv::DNS::MessageEncoder在写入DNS标签长度时未检查其范围,可能导致绕过允许列表和出口检查。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Ruby resolv 0 ~ 0.3.2 -

II. Public POCs for CVE-2026-80213

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-80213

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-80213 (1)

Proof of Concept for CVE-2026-80213 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-80213

No comments yet


Leave a comment