All vulnerabilities

Go

GHSA-jp3c-6v3g-mpxv

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

Severity
High
Published
24 Nov 2026
Last changed
24 Nov 2026
Added to UpHeron
24 Nov 2026
Fixed in
0.0.0-20260719225207-c76316d4aa82
Weakness
CWE-1284
Sources
OSV.dev and GitHub

Description

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.

From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
github.com/insomniacslk/dhcpGo · osv:Go:github.com/insomniacslk/dhcp
  • From 0.0.0-20190522091526-5dce45b2b680 before 0.0.0-20260719225207-c76316d4aa82

About github.com/insomniacslk/dhcp

This is the only vulnerability in github.com/insomniacslk/dhcp in our list.

References