<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/security-advisories-cve-2026-80212-and-cve-2026-80213-vuu5utu0z" -->

---
title: Security advisories: CVE-2026-80212 and CVE-2026-80213
description: Two vulnerabilities were found in the resolv gem bundled with Ruby: CVE-2026-80212, a memory exhaustion issue triggered by malicious DNS responses from...
canonical: https://daily.dev/posts/security-advisories-cve-2026-80212-and-cve-2026-80213-vuu5utu0z
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Security advisories: CVE-2026-80212 and CVE-2026-80213 | daily.dev
og:description: Two vulnerabilities were found in the resolv gem bundled with Ruby: CVE-2026-80212, a memory exhaustion issue triggered by malicious DNS responses from...
og:url: https://daily.dev/posts/security-advisories-cve-2026-80212-and-cve-2026-80213-vuu5utu0z
og:image: https://api.daily.dev/og/posts/vuu5utU0Z.png
og:image:alt: Security advisories: CVE-2026-80212 and 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.

# Security advisories: CVE-2026-80212 and CVE-2026-80213

**[Ruby](https://daily.dev/sources/ruby)** · 3 min read · 2 upvotes · 2 comments

## Summary

Two vulnerabilities were found in the resolv gem bundled with Ruby: CVE-2026-80212, a memory exhaustion issue triggered by malicious DNS responses from attacker-controlled name servers, and CVE-2026-80213, a hostname validation bypass that lets an SSRF filter approve one hostname while the library resolves a different one due to overlong DNS names. Affected versions span resolv 0.3.1 and earlier through 0.7.1, covering Ruby 3.2, 3.3, 3.4, and 4.0. Only code that actually calls Resolv, loads resolv-replace, or depends on something that does is exposed; ordinary Net::HTTP/TCPSocket usage relies on the OS resolver and is unaffected. Fixes are available in resolv 0.7.2 (all series) and 0.3.2 (Ruby 3.3 line); no separate patch is planned for the Ruby 3.2 line since it has reached end of life, so upgrading to 0.7.2 there is recommended instead.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.ruby-lang.org/en/news/2026/08/27/multiple-vulnerabilities-in-resolv>

## Questions this post answers

### What versions of the resolv gem are affected by CVE-2026-80212 and CVE-2026-80213?

Resolv gem versions 0.7.1 and earlier, as well as 0.3.1 and earlier, are affected by both CVE-2026-80212 (memory exhaustion via malicious DNS responses) and CVE-2026-80213 (hostname validation bypass). Ruby 4.0 ships resolv 0.7.0, Ruby 3.4 ships 0.7.1, and Ruby 3.3 ships 0.3.1. The fix is resolv 0.7.2, or 0.3.2 for the Ruby 3.3 series.

_daily.dev helps Ruby maintainers track resolv and similar gem CVEs before they hit production._

### Does upgrading Net::HTTP or TCPSocket protect against the resolv gem DNS vulnerabilities in Ruby?

No action is needed for Net::HTTP or TCPSocket alone, because ordinary socket connections use the operating system resolver rather than the vulnerable resolv gem. Net::HTTP does load the resolv gem, but only for its IP address regular expressions, so merely having it loaded is not a sign of exposure. Only code that explicitly calls Resolv or loads resolv-replace is affected.

_Ruby developers auditing SSRF exposure can follow dependency-level security news like this through daily.dev._

### How does the resolv gem hostname validation bypass (CVE-2026-80213) allow SSRF filter evasion?

The bypass occurs because the string checked by an allow list or SSRF filter can differ from the name actually resolved on the network, letting the connection land on an unapproved host. It requires a hostname exceeding DNS length limits (255 octets total or 63-octet labels), so validation that already rejects such oversized names is unaffected. Fixed in resolv 0.7.2 and 0.3.2.

_Teams hardening SSRF defenses can keep up with gem-level bypass details like this via daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@trevorsuna** · 0 upvotes

> The exposure scope is an important detail: teams should check whether their dependency graph actually loads Resolv or resolv-replace instead of assuming every Ruby HTTP client is affected. Upgrading to 0.7.2 still looks like the cleanest way to close both issues.

**@agustinbarrientos** · 0 upvotes

> Try keeping one regression case where validation and resolution receive different hostname values. The socket can't open when they diverge.

## Similar posts on daily.dev

- [CVE-2026-80213 \(resolv\): CVE-2026-80213](https://daily.dev/posts/cve-2026-80213-resolv-cve-2026-80213-t0mzi5omn) · 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
- [Vulnerabilities](https://daily.dev/posts/vulnerabilities-y7s3glgjt) · Lobsters · 0 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/security-advisories-cve-2026-80212-and-cve-2026-80213-vuu5utu0z)

```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":"Security advisories: CVE-2026-80212 and CVE-2026-80213","url":"https://daily.dev/posts/security-advisories-cve-2026-80212-and-cve-2026-80213-vuu5utu0z","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/security-advisories-cve-2026-80212-and-cve-2026-80213-vuu5utu0z"},"datePublished":"2026-08-27T01:56:26.869Z","dateModified":"2026-09-14T08:08:22.598Z","description":"Two vulnerabilities were found in the resolv gem bundled with Ruby: CVE-2026-80212, a memory exhaustion issue triggered by malicious DNS responses from...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/70148b15fea2449ce466c507466a051c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/70148b15fea2449ce466c507466a051c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Ruby","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":"Ruby","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/05592459849b4d6b8e7af1758235a337","url":"https://daily.dev/sources/ruby"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/security-advisories-cve-2026-80212-and-cve-2026-80213-vuu5utu0z","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"security,cyber,ruby","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Ruby","item":"https://daily.dev/sources/ruby"},{"@type":"ListItem","position":3,"name":"Security advisories: CVE-2026-80212 and CVE-2026-80213"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/security-advisories-cve-2026-80212-and-cve-2026-80213-vuu5utu0z","comment":[{"@type":"Comment","text":"The exposure scope is an important detail: teams should check whether their dependency graph actually loads Resolv or resolv-replace instead of assuming every Ruby HTTP client is affected. Upgrading to 0.7.2 still looks like the cleanest way to close both issues.","datePublished":"2026-08-27T02:42:31.815Z","url":"https://daily.dev/posts/vuu5utU0Z#c-TywsYMu4M","author":{"@type":"Person","name":"Trevor Suna","url":"https://daily.dev/trevorsuna","image":"https://media.daily.dev/image/upload/s--dZ7gXxpp--/f_auto/v1784081551/avatars/avatar_EMoP47rpuw8DNjhp6R1b6?_a=BAMAMicg0"}},{"@type":"Comment","text":"Try keeping one regression case where validation and resolution receive different hostname values. The socket can’t open when they diverge.","datePublished":"2026-08-27T13:57:58.531Z","url":"https://daily.dev/posts/vuu5utU0Z#c-2tjsNaVa9","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/security-advisories-cve-2026-80212-and-cve-2026-80213-vuu5utu0z#faq","mainEntity":[{"@type":"Question","name":"What versions of the resolv gem are affected by CVE-2026-80212 and CVE-2026-80213?","acceptedAnswer":{"@type":"Answer","text":"Resolv gem versions 0.7.1 and earlier, as well as 0.3.1 and earlier, are affected by both CVE-2026-80212 (memory exhaustion via malicious DNS responses) and CVE-2026-80213 (hostname validation bypass). Ruby 4.0 ships resolv 0.7.0, Ruby 3.4 ships 0.7.1, and Ruby 3.3 ships 0.3.1. The fix is resolv 0.7.2, or 0.3.2 for the Ruby 3.3 series. daily.dev helps Ruby maintainers track resolv and similar gem CVEs before they hit production."}},{"@type":"Question","name":"Does upgrading Net::HTTP or TCPSocket protect against the resolv gem DNS vulnerabilities in Ruby?","acceptedAnswer":{"@type":"Answer","text":"No action is needed for Net::HTTP or TCPSocket alone, because ordinary socket connections use the operating system resolver rather than the vulnerable resolv gem. Net::HTTP does load the resolv gem, but only for its IP address regular expressions, so merely having it loaded is not a sign of exposure. Only code that explicitly calls Resolv or loads resolv-replace is affected. Ruby developers auditing SSRF exposure can follow dependency-level security news like this through daily.dev."}},{"@type":"Question","name":"How does the resolv gem hostname validation bypass (CVE-2026-80213) allow SSRF filter evasion?","acceptedAnswer":{"@type":"Answer","text":"The bypass occurs because the string checked by an allow list or SSRF filter can differ from the name actually resolved on the network, letting the connection land on an unapproved host. It requires a hostname exceeding DNS length limits (255 octets total or 63-octet labels), so validation that already rejects such oversized names is unaffected. Fixed in resolv 0.7.2 and 0.3.2. Teams hardening SSRF defenses can keep up with gem-level bypass details like this via daily.dev."}}]}
```

