Sari la conținut
RedCVE

CVE-2026-80213Ruby Resolv vulnerability

RubyPublicat:

Scor CVSS

4.0

Mediu

CVSS 3.1 de la mitre.org

Probabilitate de exploatare (EPSS)

0.27%

Șansă de 0.27% să fie exploatată în următoarele 30 de zile, peste 19.5% dintre toate CVE-urile.

CISA KEV

Nu este în KEV

CISA nu a raportat până acum exploatări confirmate.

Descrierea oficială

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.

Sursa: NVD · CNA: cve@mitre.org

Cum îl remediezi, pas cu pas

  1. Verifică dacă ești afectat

    Identifică toate sistemele care rulează Ruby Resolv și compară versiunea lor cu versiunile afectate.

  2. Actualizează la o versiune remediată

    • Actualizează Resolv la 0.3.2, 0.7.2 sau mai nou, pe ramura pe care o folosești.
  3. Confirmă remedierea

    Verifică dacă toate sistemele afectate raportează acum o versiune remediată și revezi avizul furnizorului: remedierile sunt uneori revizuite.

Ți-a fost util?

Cum poate fi exploatată

Vector de atac
Rețea
Complexitatea atacului
Ridicat
Privilegii necesare
Niciunul
Interacțiune cu utilizatorul
Niciunul
Domeniu de impact
Schimbat
Confidențialitate
Niciunul
Integritate
Scăzut
Disponibilitate
Niciunul

Valorile în roșu fac vulnerabilitatea mai ușor de exploatat sau mai gravă. CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N

Produse afectate

Produse afectateVersiuni
Ruby Resolv< 0.3.2 · ≥ 0.4.0, < 0.7.2

Tip de slăbiciune

Cronologie

  1. Publicat:
  2. Ultima modificare:

Întrebări frecvente

Este CVE-2026-80213 exploatată?

Până acum nu există exploatări confirmate în catalogul CISA KEV. Scorul EPSS estimează o probabilitate de 0.3% de exploatare în următoarele 30 de zile.

Care este scorul CVSS pentru CVE-2026-80213?

CVE-2026-80213 are un scor de bază CVSS 3.1 de 4.0 (mediu).

Ce versiuni sunt afectate?

Ruby Resolv (< 0.3.2; ≥ 0.4.0, < 0.7.2)

Există patch pentru CVE-2026-80213?

Înregistrarea oficială trimite la avize sau patch-uri ale producătorului; vezi „Ce trebuie să faci” mai sus.

Referințe

Date: NVD, CVE.org (cvelistV5), CISA KEV și FIRST EPSS. Rezumat scris de RedCVE cu ajutorul AI, pe baza datelor oficiale.