Affected versions
Ubuntu16.04:LTS/lua-nginx-dns
- Affected versions
- * || =0.14-1
- Fixed version
- Not reported
Ubuntu18.04:LTS/lua-nginx-dns
- Affected versions
- * || =0.19-1 || =0.20-1
- Fixed version
- Not reported
Ubuntu20.04:LTS/lua-nginx-dns
- Affected versions
- * || =0.20-1
- Fixed version
- Not reported
Ubuntu22.04:LTS/lua-nginx-dns
- Affected versions
- * || =0.20-1
- Fixed version
- Not reported
Ubuntu24.04:LTS/lua-nginx-dns
- Affected versions
- * || =0.20-1
- Fixed version
- Not reported
Ubuntu26.04:LTS/lua-nginx-dns
- Affected versions
- * || =0.20-1 || =0.20-1build1
- Fixed version
- Not reported
Ubuntu26.10/lua-nginx-dns
- Affected versions
- * || =0.20-1build1
- Fixed version
- Not reported
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.
Links
- https://github.com/openresty/lua-resty-dns/blob/v0.23/lib/resty/dns/resolver.lua#L396-L442
- https://github.com/openresty/lua-resty-dns/commit/b68eaecbf7997ac71c08ba56032b1f45438bd758
- https://github.com/openresty/lua-resty-dns/pull/83
- https://github.com/openresty/lua-resty-dns/tree/v0.24
- https://ubuntu.com/security/CVE-2026-116013
- https://www.cve.org/CVERecord?id=CVE-2026-116013
- https://www.vulncheck.com/advisories/openresty-lua-resty-dns-before-0.24-denial-of-service-via-dns-response-parsing

