CVE-2007-5365
NoneCVSS
—
EPSS
80.3%
Published
Oct 11, 2007
CISA due date
—
Cloudanix analysis
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.
- 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
- Identify exposed or reachable DHCP servers on the network
- Craft and transmit a DHCP request containing a maximum message size smaller than the minimum IP MTU
- Trigger stack overflow to overwrite return addresses or control flow
- 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
- CVE-2007-0063 Integer underflow in the DHCP server in EMC VMware Workstation before 5.5.5 Build 56455… Also affects dhcp
- CVE-2026-121517 A vulnerability was detected in IrfanView 4.76.0.0 on Win64. CWE-119
- CVE-2026-121229 Memory corruption in ANGLE in Google Chrome on on Android prior to 157.0.8103.38 allowed… CWE-119
- CVE-2026-121074 Memory corruption in GPU in Google Chrome on on Android prior to 157.0.8103.38 allowed a… CWE-119
- CVE-2026-95730 A buffer overflow vulnerability exists in HPE Networking VIA that could allow an… CWE-119
- CVE-2026-120572 Incorrect boundary conditions in the Layout: Block and Inline component. CWE-119
- CVE-2026-58977 In is_valid_header of timed_cache_item.c, there is a possible out-of-bounds write due to… CWE-119
- CVE-2026-59010 In deserialize of legacy.rs, there is a possible denial of service due to a missing… CWE-119