Panic in github.com/insomniacslk/dhcp on short IPv4 payload
Key facts
- Attack vector
- Adjacent network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · GHSA-jp3c-6v3g-mpxv. Fix status from GitHub.
Summary
The github.com/insomniacslk/dhcp Go module from 0.0.0-20190522091526-5dce45b2b680 before 0.0.0-20260719225207-c76316d4aa82 is affected. In the nclient4 package, BroadcastRawUDPConn.ReadFrom does not check that the IPv4 payload can hold a UDP header before computing the DHCP payload length. An unauthenticated attacker on the adjacent network can send a malformed IPv4 frame that makes this length negative, causing a panic and a denial of service (CWE-1284).
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
Description from the GitHub advisory
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | github.com/insomniacslk/dhcp (Go) | 0.0.0-20190522091526-5dce45b2b680 to before 0.0.0-20260719225207-c76316d4aa82 | 0.0.0-20260719225207-c76316d4aa82 | Patch available | GHSA-jp3c-6v3g-mpxv |
- github.com/insomniacslk/dhcp (Go) Vendor— Affected 0.0.0-20190522091526-5dce45b2b680 to before 0.0.0-20260719225207-c76316d4aa82 Fixed in 0.0.0-20260719225207-c76316d4aa82 Patch available GHSA-jp3c-6v3g-mpxv
Remediation
Update github.com/insomniacslk/dhcp to 0.0.0-20260719225207-c76316d4aa82 or later.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
- Fix · GHSA-jp3c-6v3g-mpxv github.com/insomniacslk/dhcp (Go) Fixed in 0.0.0-20260719225207-c76316d4aa82 Advisory →
Timeline
- 2026-11-24 Threatist record created from GHSA-jp3c-6v3g-mpxv
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences