HIGH · CVSS 4.0 CWE-1284

GHSA-jp3c-6v3g-mpxv: github.com/insomniacslk/dhcp permits denial of service through a malformed IPv4 payload length

Published 2026-11-24 · Updated 2026-11-24

Summary

A flaw in github.com/insomniacslk/dhcp allows an attacker to trigger a denial of service via a malformed IPv4 payload length. Engineering and security teams using the affected Go package must update their dependencies.

Who is affected

Affected deployments utilizing BroadcastRawUDPConn.ReadFrom are vulnerable when processing specially crafted network frames with an IPv4 total-length field specifying fewer than eight payload bytes. This results in a negative DHCP length, causing a panic in buf.Consume due to a negative slice bound and leading to a denial of service.

Exploitability

The vulnerability can be exploited adjacent to the target (AV:A) with low attack complexity (AC:L) and no privileges or user interaction required (PR:N, UI:N). It results in high availability impact (VA:H) with no confidentiality or integrity impacts, yielding a high severity rating.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Go github.com/insomniacslk/dhcp >= 0.0.0-20190522091526-5dce45b2b680, < 0.0.0-20260719225207-c76316d4aa82 0.0.0-20260719225207-c76316d4aa82 go get github.com/insomniacslk/[email protected]

CVSS 4.0 vector

CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Attack vectorAdjacent
Attack complexityLow
Attack requirementsNone
Privileges requiredNone
User interactionNone
Confidentiality (vulnerable system)None
Integrity (vulnerable system)None
Availability (vulnerable system)High
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

What causes the panic in the application?

The panic is caused by a negative slice bound in buf.Consume resulting from an unvalidated IPv4 payload length smaller than a UDP header.

Is there any CISA Known Exploited Vulnerability record for this issue?

No, CISA Known Exploited Vulnerabilities is no.

What is the affected package and ecosystem?

The affected package is github.com/insomniacslk/dhcp within the Go ecosystem.

Original advisory 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.

References

Source records: GHSA-jp3c-6v3g-mpxv (OSV.dev).