Summary
Hickory-DNS can panic while parsing certain SVCB or HTTPS record presentation values in untrusted zone files. An attacker who can supply a crafted zone file may crash the parsing process, causing a denial of service.
Affected context
The issue is in the hickory-proto parser for SVCB and HTTPS record presentation formats, affecting hickory-dns versions from 0.20.1 up to but not including 0.26.2. It becomes relevant when the application parses untrusted zone-file data containing a malformed service parameter value.
Exploit preconditions
- Attack surface: Zone-file input parsed as SVCB or HTTPS records
- Required access: Ability to provide or influence a zone file processed by the application
- Trigger point: Parsing the affected record's presentation format
- Why exploitation is possible: A malformed value can trigger a panic instead of being handled as a parse error
Why this happens
The parser does not safely handle certain malformed service parameter values in SVCB and HTTPS record presentation formats. This insufficient input validation maps to CWE-20: Improper Input Validation; unexpected input can reach a panic path and terminate the parsing process.
Potential impact
- Parsing operations may terminate unexpectedly
- A service processing the affected zone file could become unavailable
- Repeated triggering may disrupt zone-file processing or dependent workflows
General mitigation guidance
Defensive patterns include treating zone-file content as untrusted, validating record structure and parameter values before use, and returning controlled parse errors for malformed input rather than panicking. Isolate parsing from critical service functions where practical, and apply resource and privilege limits to processes that handle externally supplied data.
How teams detect issues like this
- Use static analysis and code review to identify panic paths reachable from parser input
- Review SVCB and HTTPS parsing logic for validation of record parameters and malformed values
- Add malformed-input and property-based tests that verify parsing fails safely without terminating the process
- Enforce policies that untrusted parsing paths return recoverable errors rather than panicking
Automated code review tools may help identify unchecked input and panic-prone parser behavior.

