Skip to content
DayZeroHub
High Not yet writtenCVSS 7.1GHSA-jp3c-6v3g-mpxv

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

github.com/insomniacslk/dhcp

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

GHSA-jp3c-6v3g-mpxv: high-severity vulnerability (CVSS 7.1) in github.com/insomniacslk/dhcp.

What happened

Original description from the source: 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

High severity, CVSS 7.1.

Affected products and versions

github.com/insomniacslk/dhcp >= 0.0.0-20190522091526-5dce45b2b680, < 0.0.0-20260719225207-c76316d4aa82 (fixed in 0.0.0-20260719225207-c76316d4aa82)

ProductVersionsFixed in
github.com/insomniacslk/dhcp>= 0.0.0-20190522091526-5dce45b2b680, < 0.0.0-20260719225207-c76316d4aa820.0.0-20260719225207-c76316d4aa82

Action recommended by the source

Upgrade to a fixed version: 0.0.0-20260719225207-c76316d4aa82.

Fixed in: 0.0.0-20260719225207-c76316d4aa82

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-1284

Relevant change history

  1. Published

    Preliminary advisory published.