CVE-2026-116013

OpenResty lua-resty-dns before 0.24 Denial of Service via DNS Response Parsing

Published Oct 24, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

OpenResty lua-resty-dns before 0.24 contains an improper input validation vulnerability that fails to verify resource record lengths in the DNS response. This allows an attacker that can control or spoof the queried nameserver to send truncated record headers or RDATA, causing unhandled Lua exceptions in resolver:query(). The exception aborts the request and breaks name resolution, leading to denial of service for applications relying on this resolver.

Affected Systems

Affects installations of the openresty:lua-resty-dns library prior to version 0.24. Any deployment of OpenResty or other frameworks that use this DNS resolver and perform DNS queries is vulnerable. The flaw exists in versions 0.23 and earlier.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting no currently known exploitation in the wild. The likely attack vector is remote: an adversary sends a crafted DNS response to a resolver request over the network. An attacker must control or spoof the IP of the nameserver used by the application. Because the error is unhandled, each overrun terminates the request, which can accumulate to a denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade lua-resty-dns to version 0.24 or later, which adds proper length checks in parse_section() and _decode_name().
  • If an upgrade is not immediately feasible, restrict DNS queries to known, reliable nameservers and configure firewalls or security groups to block spoofed responses from any other source, reducing the window for malicious response delivery.
  • Monitor DNS traffic and application logs for abnormal exceptions or repeated failures; if these alerts increase, prioritize applying the library update or implementing stricter DNS validation.

Generated by OpenCVE AI on October 24, 2026 at 12:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Openresty
Openresty lua-resty-dns
Vendors & Products Openresty
Openresty lua-resty-dns
Type Values Removed Values Added
Description 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.
Title OpenResty lua-resty-dns before 0.24 Denial of Service via DNS Response Parsing
Weaknesses CWE-130
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-130

    Improper Handling of Length Parameter Inconsistency

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 6:23 PM
Reserved
Oct 24, 2026, 11:23 AM
Status
Awaiting Analysis
Published
Oct 24, 2026, 12:16 PM
Modified
Oct 29, 2026, 7:17 PM