github.com/insomniacslk/dhcp permits denial of service through a malformed IPv4 payload lengthGHSA-jp3c-6v3g-mpxv
Fix: insomniacslk/dhcp#583GHSA-jp3c-6v3g-mpxv is a security vulnerability in github.com/insomniacslk/dhcp. A fix is available for github.com/insomniacslk/dhcp — see the affected versions and patch details below.
Real-World Exposure
github.com/insomniacslk/dhcpReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/insomniacslk/dhcp | ≥ 0.0.0-20190522091526-5dce45b2b680&&< 0.0.0-20260719225207-c76316d4aa82 | 0.0.0-20260719225207-c76316d4aa82go get github.com/insomniacslk/dhcp@v0.0.0-20260719225207-c76316d4aa82 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/insomniacslk/dhcp, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/insomniacslk/dhcp to 0.0.0-20260719225207-c76316d4aa82 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-jp3c-6v3g-mpxv is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-jp3c-6v3g-mpxv in your dependencies?
Find it across Go, including transitive dependencies.