<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/memory-exhaustion-through-malicious-dns-responses-ddc3vitlv" -->

---
title: Memory exhaustion through malicious DNS responses
description: CVE-2026-80212 affects the Ruby resolv gem, allowing memory exhaustion attacks via malicious DNS responses. An attacker controlling a DNS server for a hostname...
canonical: https://daily.dev/posts/memory-exhaustion-through-malicious-dns-responses-ddc3vitlv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Memory exhaustion through malicious DNS responses | daily.dev
og:description: CVE-2026-80212 affects the Ruby resolv gem, allowing memory exhaustion attacks via malicious DNS responses. An attacker controlling a DNS server for a hostname...
og:url: https://daily.dev/posts/memory-exhaustion-through-malicious-dns-responses-ddc3vitlv
og:image: https://api.daily.dev/og/posts/dDC3VitlV.png
og:image:alt: Memory exhaustion through malicious DNS responses
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.

# Memory exhaustion through malicious DNS responses

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

## Summary

CVE-2026-80212 affects the Ruby resolv gem, allowing memory exhaustion attacks via malicious DNS responses. An attacker controlling a DNS server for a hostname that an application resolves (such as a webhook target or user-supplied URL) can return responses that resolv retains indefinitely, causing unbounded memory growth and eventual denial of service. The issue is patched 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-80212>

## Questions this post answers

### What does CVE-2026-80212 in the Ruby resolv gem allow an attacker to do?

It allows an attacker to cause unbounded memory growth in an application by controlling a DNS server for a hostname the app resolves, such as a webhook target or user-supplied URL. The malicious name server returns responses that resolv retains permanently, so repeated lookups grow the process memory until it runs out and the service crashes. This is a denial-of-service vulnerability, not remote code execution.

_Track resolv advisories like this on daily.dev to catch DNS-related denial-of-service risks before they hit production._

### Which versions of the Ruby resolv gem fix CVE-2026-80212?

The fix ships in resolv versions 0.3.2 and 0.7.2, released as patched builds for CVE-2026-80212. Applications pinning resolv to an earlier version in either release line should upgrade to the corresponding patched version to close the memory exhaustion issue caused by malicious DNS responses.

_daily.dev helps Ruby developers stay on top of gem security patches like the resolv fix._

## 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
- [CVE-2026-67987 \(ruby\_llm\): Polynomial-Time Regular Expression Denial of Service \(ReDoS\) vulnerability](https://daily.dev/posts/cve-2026-67987-ruby-llm-polynomial-time-regular-expression-denial-of-service-redos-vulnerabilit-jhkapfn4u) · RUBYLAND · 0 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/memory-exhaustion-through-malicious-dns-responses-ddc3vitlv)

```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":"Memory exhaustion through malicious DNS responses","url":"https://daily.dev/posts/memory-exhaustion-through-malicious-dns-responses-ddc3vitlv","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/memory-exhaustion-through-malicious-dns-responses-ddc3vitlv"},"datePublished":"2026-08-29T12:22:41.320Z","dateModified":"2026-08-29T12:23:43.860Z","description":"CVE-2026-80212 affects the Ruby resolv gem, allowing memory exhaustion attacks via malicious DNS responses. An attacker controlling a DNS server for a hostname...","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/memory-exhaustion-through-malicious-dns-responses-ddc3vitlv","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,cyber,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":"Memory exhaustion through malicious DNS responses"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/memory-exhaustion-through-malicious-dns-responses-ddc3vitlv#faq","mainEntity":[{"@type":"Question","name":"What does CVE-2026-80212 in the Ruby resolv gem allow an attacker to do?","acceptedAnswer":{"@type":"Answer","text":"It allows an attacker to cause unbounded memory growth in an application by controlling a DNS server for a hostname the app resolves, such as a webhook target or user-supplied URL. The malicious name server returns responses that resolv retains permanently, so repeated lookups grow the process memory until it runs out and the service crashes. This is a denial-of-service vulnerability, not remote code execution. Track resolv advisories like this on daily.dev to catch DNS-related denial-of-service risks before they hit production."}},{"@type":"Question","name":"Which versions of the Ruby resolv gem fix CVE-2026-80212?","acceptedAnswer":{"@type":"Answer","text":"The fix ships in resolv versions 0.3.2 and 0.7.2, released as patched builds for CVE-2026-80212. Applications pinning resolv to an earlier version in either release line should upgrade to the corresponding patched version to close the memory exhaustion issue caused by malicious DNS responses. daily.dev helps Ruby developers stay on top of gem security patches like the resolv fix."}}]}
```

