Zone file lexer panics on a token of 4096 or more characters
Historical advisory saved 11 Nov 2026 12:59:58 UTC. The publisher may have updated it since then. Latest advisory.
osv · RUSTSEC-2026-0490
PublishedThe zone file lexer read each token in a loop capped at 4,096 iterations, with an `assert!` on the loop counter as a safety bound. A single token long enough to reach that bound, for example a very long name or character string in a zone file, triggered the assertion and the parser panicked instead of returning the token or an error. Code that parses zone files from an untrusted source can be made to panic, which is a denial of service. The fix removes the iteration bound, so the lexer ends only when it reaches the end of a token or an error. It is in 0.26.2.
- Source published
- 3 Sep 2026 12:00:00 UTC
- Source modified
- 11 Nov 2026 12:41:09 UTC
- Saved here
- 11 Nov 2026 12:59:58 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.