{"id":"CVE-2026-42254","aliases":["CVE-2026-42254","GHSA-83hf-93m4-rgwq"],"related":[],"kind":"vulnerability","state":"published","title":"Hickory DNS's Record Cache Accepts AUTHORITY-Section NS from Sibling Zone via Parent-Pool Zone-Context Elevation","summary":"Hickory DNS hickory-recursor 0.1 through 0.25.2 allows cross-zone poisoning because cached data is not directly associated with a query that triggered a response.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Hickory DNS hickory-recursor 0.1 through 0.25.2 allows cross-zone poisoning because cached data is not directly associated with a query that triggered a response.","source":"cvelist"},{"lang":"en","text":"# Summary\n\nThe Hickory DNS project's experimental `hickory-recursor` crate's record cache (`DnsLru`) stores records from DNS responses keyed by each record's own (name, type), not by the query that triggered the response. `cache_response()` in `crates/recursor/src/lib.rs` chains `ANSWER`, `AUTHORITY`, and `ADDITIONAL` sections into one record iterator before insertion. The bailiwick filter it applies uses the zone context of the NS pool that serviced the lookup, not the zone being queried.\n\nThis creates a cross-zone poisoning path. When Hickory builds the NS pool for `attacker.poc.` it uses the parent `poc.` `NS` pool (`ns.zone() = \"poc.\"`). If the `poc.` nameserver under the attacker's control includes in its response's `AUTHORITY` section a record for a sibling zone like `victim.poc. NS ns.evil.poc.`, the bailiwick check `is_subzone(\"poc.\", \"victim.poc.\")` passes (`victim.poc.` is a subdomain of `poc.`). The record is stored under `(victim.poc., NS)` in the shared cache.\n\nSubsequently, any client querying a name in `victim.poc`. causes Hickory to build its NS pool from the poisoned cache entry, routing queries to the attacker's nameserver (`ns.evil.poc.`) rather than to the legitimate nameserver for `victim.poc.`. The legitimate `NS` for that zone receives zero queries.\n\nThis issue is fixed in `hickory-resolver` 0.26.0 with the `recursor` feature through an architectural change to response-level caching: responses are stored keyed by the originating query `(name, type)`. A response to `(attacker.poc. NS)` is stored only under that key and cannot affect the `(victim.poc., NS)` cache entry.\n\nHickory DNS believes this issue has been present in all published versions of the experimental `hickory-recursor` crate, which has now been folded into the `hickory-resolver` crate under the non-default `recursor` feature flag. The `hickory-recursor` crate will not receive any updates going forward and all users should migrate to `hickory-resolver` with the `recursor` feature.\n\nUsers of the `hickory-dns` binary configured with the opt-in `recursor` feature and a configuration acting as a recursive resolver should update to 0.26.0+.\n\n### Reporter \n\nQifan Zhang, Palo Alto Networks","format":"markdown","source":"ghsa"},{"lang":"es","text":"Hickory DNS hickory-recursor 0.1 a 0.25.2 permite el envenenamiento entre zonas porque los datos en caché no están directamente asociados con una consulta que desencadenó una respuesta.","source":"nvd"}],"published":"2026-04-26T02:38:41.261Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N","score":4,"rating":"MEDIUM"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N","score":4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-345","CWE-706"],"affected":[{"ranges":[{"type":"custom","introduced":"0.1","fixed":"0.26","status":"affected"}],"vendor":"Hickory Project","product":"Hickory DNS","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.24.0","status":"affected","fixed":"0.26.0"}],"ecosystem":"crates.io","package":"hickory-recursor","purl":"pkg:cargo/hickory-recursor","source":"ghsa"},{"ranges":[{"version":"0.1","status":"affected"}],"ecosystem":"crates.io","package":"hickory-recursor","purl":"pkg:cargo/hickory-recursor","source":"ghsa"}],"references":[{"url":"https://github.com/hickory-dns/hickory-dns/security/advisories/GHSA-83hf-93m4-rgwq","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hickory-dns/hickory-dns","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-27T13:18:57.831Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42254","url":"https://www.cve.org/CVERecord?id=CVE-2026-42254","licence":"CVE Terms of Use","modified":"2026-04-27T13:33:50.961Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-83hf-93m4-rgwq","url":"https://github.com/advisories/GHSA-83hf-93m4-rgwq","licence":"CC-BY-4.0","modified":"2026-07-08T08:12:56.458Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42254","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42254","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:19.606Z","epss":{"score":0.00169,"percentile":0.06535,"date":"2026-12-01T12:00:22.000Z"}}