mirror of
https://github.com/ruby/ruby.git
synced 2026-10-28 16:36:20 +08:00
Commit 4c2f71b (CVE-2025-24294) capped a decompressed name at 255 octets, bounding its length but not the work: a chain of compression pointers adds no label octets, so the cap never fires while the decoder follows every pointer, and many records sharing one chain make decoding quadratic. Cap the pointers followed per name at 128. Reported by: whiteshadow_8500 (https://hackerone.com/whiteshadow_8500) https://github.com/ruby/resolv/commit/0415f01bcf Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>