Cloudanix VulnDB

CVE-2007-5365

None

CVSS

—

EPSS

80.3%

Published

Oct 11, 2007

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Attend

A bug in some older network address assignment software lets attackers take over or shut down the service by sending a bad request, potentially breaking network connectivity for many users.

Exploit Available
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Remote Code Execution
Component
Network Service
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Stack-based buffer overflow in the cons_options function triggered by a DHCP request specifying a maximum message size smaller than the minimum IP MTU, enabling arbitrary code execution or daemon crash.

Why it matters to the business

Compromise or outage of DHCP servers can disrupt network address assignment, enabling attackers to take control of systems or cause widespread service denial across enterprise and infrastructure environments.

How an attack unfolds

An attacker sends a crafted DHCP request packet with an artificially small maximum message size value to the vulnerable dhcpd service, overflowing the stack buffer in cons_options and allowing injection of shellcode for remote code execution or service termination.

How to fix it

Upgrade affected dhcpd implementations to patched releases that correct the cons_options handling; apply vendor security updates for OpenBSD, ISC-derived dhcp, and downstream distributions; disable unnecessary DHCP services where feasible.

How to confirm the fix worked

Verify installed dhcpd version against vendor advisories, review source for the fixed cons_options bounds check, and test with crafted DHCP packets in a lab environment to confirm absence of overflow.

Typical attack path

  1. Identify exposed or reachable DHCP servers on the network
  2. Craft and transmit a DHCP request containing a maximum message size smaller than the minimum IP MTU
  3. Trigger stack overflow to overwrite return addresses or control flow
  4. Execute arbitrary code or induce daemon crash for denial of service

How to detect it

Inspect DHCP server logs and network captures for DHCP requests containing unusually small maximum message size options; look for sudden dhcpd process crashes or unexpected child processes following DHCP traffic.

What your security team should do

  • Prioritize patching or replacing all exposed dhcpd instances given high EPSS and public exploit availability
  • Segment DHCP servers and restrict inbound UDP/67 traffic to trusted sources only
  • Monitor network for anomalous DHCP requests with undersized maximum message size values
  • Review asset inventory for any remaining affected OpenBSD 4.0-4.2 or ISC dhcp-2 based deployments

The record

Stack-based buffer overflow in the cons_options function in options.c in dhcpd in OpenBSD 4.0 through 4.2, and some other dhcpd implementations based on ISC dhcp-2, allows remote attackers to execute arbitrary code or cause a denial of service (daemon crash) via a DHCP request specifying a maximum message size smaller than the minimum IP MTU.

Affected packages

Ecosystem Package Introduced Fixed
Debian:3.1 dhcp 0 2.0pl5-19.1sarge3
Debian:4.0 dhcp 0 2.0pl5-19.5etch1
Debian:4.0 dhcp 0 2.0pl5-19.5etch2
Red Hat:enterprise_linux:2.1::as dhcp 0 1:2.0pl5-11
Red Hat:enterprise_linux:2.1::aw dhcp 0 1:2.0pl5-11
Red Hat:enterprise_linux:2.1::es dhcp 0 1:2.0pl5-11

Related vulnerabilities