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

- Severity: High (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-11-24T21:13:37.000Z
- Modified: 2026-11-24T21:45:04.275Z
- Weaknesses: CWE-1284

## 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.

(As written by GitHub Advisory Database.)

## Affected

- github.com/insomniacslk/dhcp (Go): from 0.0.0-20190522091526-5dce45b2b680 before 0.0.0-20260719225207-c76316d4aa82

## References

- <https://github.com/insomniacslk/dhcp/pull/583> (web)
- <https://github.com/insomniacslk/dhcp/commit/c76316d4aa825673b208730779843d0711021e81> (web)
- <https://github.com/insomniacslk/dhcp> (package)
- <https://pkg.go.dev/vuln/GO-2026-6237> (web)

## Sources

- GitHub Advisory Database: [GHSA-jp3c-6v3g-mpxv](https://github.com/advisories/GHSA-jp3c-6v3g-mpxv), CC-BY-4.0, modified 2026-11-24

---

Page: https://cve.day/GHSA-jp3c-6v3g-mpxv · Whole record: https://cve.day/GHSA-jp3c-6v3g-mpxv.json · Rebuilt by cve.day 2026-11-25T22:56:21.812Z
