Skip to content
OpenAdvisories
Unscored Public exploit CVE-2007-5365 EUVD-2007-5343GHSA-q79j-j4r9-8grp

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 implementat…

Published Oct 11, 2007 · Updated Aug 7, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 4.0 dhcp 2.0pl5-19.5etch1 DSA-1388-3, DSA-1388-1
Debian 3.1 dhcp 2.0pl5-19.1sarge3 DSA-1388-1
ReleasePackageFixed inAdvisory
RHEL 2 dhcp 1:2.0pl5-11 RHSA-2007:0970

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 3

References