---
id: CVE-2026-116013
title: OpenResty lua-resty-dns before 0.24 Denial of Service via DNS Response Parsing
summary: >-
  OpenResty lua-resty-dns before 0.24 contains an improper input validation
  vulnerability in parse_section() and _decode_name() that fails to check
  resource record lengths against the received message. Attackers controlling or
  spoofing a q…
severity: low
cvss: 3.7
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L'
cvssSource: cna
cwe:
  - CWE-130
vendor: openresty
product: lua-resty-dns
affected:
  - lua-resty-dns < 0.24
published: '2026-10-24'
updated: '2026-10-24'
sourceUpdated: '2026-10-24T11:40:31.527Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-116013'
references:
  - url: 'https://github.com/openresty/lua-resty-dns/pull/83'
  - url: >-
      https://github.com/openresty/lua-resty-dns/commit/b68eaecbf7997ac71c08ba56032b1f45438bd758
  - url: >-
      https://github.com/openresty/lua-resty-dns/blob/v0.23/lib/resty/dns/resolver.lua#L396-L442
  - url: 'https://github.com/openresty/lua-resty-dns/tree/v0.24'
  - url: >-
      https://www.vulncheck.com/advisories/openresty-lua-resty-dns-before-0.24-denial-of-service-via-dns-response-parsing
    label: >-
      VulnCheck Advisory: OpenResty lua-resty-dns before 0.24 Denial of Service
      via DNS Response Parsing
tags:
  - cve.org
ingestedAt: '2026-10-24T11:57:47.030Z'
---

## Overview

OpenResty lua-resty-dns before 0.24 contains an improper input validation vulnerability in parse_section() and _decode_name() that fails to check resource record lengths against the received message. Attackers controlling or spoofing a queried nameserver can send truncated record headers or RDATA, raising uncaught Lua exceptions in resolver:query() that abort requests and break name resolution.

## Affected

- `lua-resty-dns < 0.24`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
