## github.com/insomniacslk/dhcp permits denial of service through a malformed IPv4 payload length

- 種別: advisory
- 重大度: high
- 関連技術: go, github
- 公開日時: 2026-11-24T21:13:37.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-jp3c-6v3g-mpxv)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-jp3c-6v3g-mpxv

影響: go:github.com/insomniacslk/dhcp >= 0.0.0-20190522091526-5dce45b2b680, < 0.0.0-20260719225207-c76316d4aa82 → 0.0.0-20260719225207-c76316d4aa82
In github.com/insomniacslk/dhcp/dhcpv4/nclient4, BroadcastRawUDPConn.ReadFrom does not validate that the IPv4 payload length is sufficient to hold a UDP header before calculating the DHCP payload length. A frame with an IPv4 total-length field specifying fewer than eight payload bytes results in a negative DHCP length, causing a panic in buf.Consume due to a negative slice bound.