<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/cve-2026-80213-resolv-cve-2026-80213-t0mzi5omn" -->

---
title: CVE-2026-80213 (resolv): CVE-2026-80213 | daily.dev
description: CVE-2026-80213 describes a hostname validation bypass in the Ruby resolv gem: applications that validate a hostname against an allow list or SSRF filter and...
canonical: https://daily.dev/posts/cve-2026-80213-resolv-cve-2026-80213-t0mzi5omn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: CVE-2026-80213 (resolv): CVE-2026-80213 | daily.dev
og:description: CVE-2026-80213 describes a hostname validation bypass in the Ruby resolv gem: applications that validate a hostname against an allow list or SSRF filter and...
og:url: https://daily.dev/posts/cve-2026-80213-resolv-cve-2026-80213-t0mzi5omn
og:image: https://api.daily.dev/og/posts/t0mzI5oMN.png
og:image:alt: CVE-2026-80213 (resolv): CVE-2026-80213
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CVE-2026-80213 (resolv): CVE-2026-80213

**[RUBYLAND](https://daily.dev/sources/rubyla)** · 1 min read · 0 upvotes · 0 comments

## Summary

CVE-2026-80213 describes a hostname validation bypass in the Ruby resolv gem: applications that validate a hostname against an allow list or SSRF filter and then resolve it can be tricked into resolving a different domain than the one that was checked, because the validated string and the resolved name diverge. The flaw requires hostnames exceeding DNS length limits (255 octets total or 63-octet labels), so validation rejecting overly long names is unaffected. Fixed in resolv versions 0.3.2 and 0.7.2.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://rubysec.com/advisories/CVE-2026-80213>

## Questions this post answers

### What is CVE-2026-80213 in the Ruby resolv gem?

It is a hostname validation bypass where an application that checks a hostname against an allow list or SSRF filter and then resolves it can end up resolving a different domain than the one validated, because the string checked and the name resolved are not guaranteed to match. Exploitation requires a hostname exceeding DNS length limits, so validation rejecting names over 255 octets or labels over 63 octets is unaffected. It is fixed in resolv 0.3.2 and 0.7.2.

_Teams tracking Ruby security advisories like this one can follow SSRF-related fixes on daily.dev._

### How do I fix CVE-2026-80213 in Ruby's resolv gem?

Upgrade the resolv gem to version 0.3.2 or 0.7.2, both of which patch the hostname validation bypass. Applications that filter hostnames for SSRF protection before resolving them are the ones affected, since the fix addresses the mismatch between the validated string and the resolved name for oversized hostnames.

_Developers patching Ruby dependencies can keep up with resolv and gem advisories via daily.dev._

## Similar posts on daily.dev

- [CVE-2025-12790 \(mqtt\): MQTT does not validate hostnames](https://daily.dev/posts/cve-2025-12790-mqtt-mqtt-does-not-validate-hostnames-tnvmg77iw) · RUBYLAND · 0 upvotes · 0 comments
- [CVE-2026-46727: Use-after-free in pthread-based getaddrinfo timeout handler](https://daily.dev/posts/cve-2026-46727-use-after-free-in-pthread-based-getaddrinfo-timeout-handler-wsx4kaak6) · Ruby · 1 upvotes · 0 comments
- [CVE-2026-67989 \(ruby\_llm\): Polynomial-Time Regular Expression Denial of Service \(ReDoS\) vulnerability](https://daily.dev/posts/cve-2026-67989-ruby-llm-polynomial-time-regular-expression-denial-of-service-redos-vulnerabilit-sshpahedi) · RUBYLAND · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#ruby](https://daily.dev/tags/ruby), [#dns](https://daily.dev/tags/dns)

[View this post on daily.dev](https://daily.dev/posts/cve-2026-80213-resolv-cve-2026-80213-t0mzi5omn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"CVE-2026-80213 (resolv): CVE-2026-80213","url":"https://daily.dev/posts/cve-2026-80213-resolv-cve-2026-80213-t0mzi5omn","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/cve-2026-80213-resolv-cve-2026-80213-t0mzi5omn"},"datePublished":"2026-08-29T12:22:41.285Z","dateModified":"2026-08-29T12:23:01.666Z","description":"CVE-2026-80213 describes a hostname validation bypass in the Ruby resolv gem: applications that validate a hostname against an allow list or SSRF filter and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5fa7bf38a8a9c178c1d458f9f735556c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5fa7bf38a8a9c178c1d458f9f735556c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"RUBYLAND","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"RUBYLAND","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/rubyla","url":"https://daily.dev/sources/rubyla"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/cve-2026-80213-resolv-cve-2026-80213-t0mzi5omn","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,ruby,dns","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"RUBYLAND","item":"https://daily.dev/sources/rubyla"},{"@type":"ListItem","position":3,"name":"CVE-2026-80213 (resolv): CVE-2026-80213"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/cve-2026-80213-resolv-cve-2026-80213-t0mzi5omn#faq","mainEntity":[{"@type":"Question","name":"What is CVE-2026-80213 in the Ruby resolv gem?","acceptedAnswer":{"@type":"Answer","text":"It is a hostname validation bypass where an application that checks a hostname against an allow list or SSRF filter and then resolves it can end up resolving a different domain than the one validated, because the string checked and the name resolved are not guaranteed to match. Exploitation requires a hostname exceeding DNS length limits, so validation rejecting names over 255 octets or labels over 63 octets is unaffected. It is fixed in resolv 0.3.2 and 0.7.2. Teams tracking Ruby security advisories like this one can follow SSRF-related fixes on daily.dev."}},{"@type":"Question","name":"How do I fix CVE-2026-80213 in Ruby's resolv gem?","acceptedAnswer":{"@type":"Answer","text":"Upgrade the resolv gem to version 0.3.2 or 0.7.2, both of which patch the hostname validation bypass. Applications that filter hostnames for SSRF protection before resolving them are the ones affected, since the fix addresses the mismatch between the validated string and the resolved name for oversized hostnames. Developers patching Ruby dependencies can keep up with resolv and gem advisories via daily.dev."}}]}
```

