CVE-2007-5365
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…
Check your servers for CVE-2007-5365
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2007-5365 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 80.2%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.7% of all scored CVEs. Scores of 28 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2007-5365 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2007-5365RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2007-5365Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2007-5365
trivy image --scanners vuln IMAGE | grep CVE-2007-5365
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- 27338 secunia.com · third party advisory
- 27350 secunia.com · third party advisory
- http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/dhcpd/options.c openbsd.org
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=446354 bugs.debian.org
- [4.2] 20071008 001: SECURITY FIX: October 8, 2007 openbsd.org · vendor advisory
- RHSA-2007:0970 redhat.com · vendor advisory
- DSA-1388 debian.org · vendor advisory
- USN-531-1 ubuntu.com · vendor advisory
- USN-531-2 ubuntu.com · vendor advisory
- 27160 secunia.com · third party advisory
- 27273 secunia.com · third party advisory
- [4.0] 20071008 016: SECURITY FIX: October 8, 2007 openbsd.org · vendor advisory
4 more
- 243806 sunsolve.sun.com · vendor advisory
- 32668 secunia.com · third party advisory
- [4.1] 20071008 010: SECURITY FIX: October 8, 2007 openbsd.org · vendor advisory
- http://sunsolve.sun.com/search/document.do?assetkey=1-21-109077-21-1 sunsolve.sun.com
Exploits and proof of concept
- 4601 exploit-db.com · exploit
Other references
- ADV-2008-3088 vupen.com · vdb entry
- 25984 securityfocus.com · vdb entry
- 20071102 DoS Exploit for DHCPd bug (Bugtraq ID 25984 ; CVE-2007-5365) securityfocus.com · mailing list
- openbsd-dhcp-bo(37045) exchange.xforce.ibmcloud.com · vdb entry
- http://www.coresecurity.com/index.php5?module=ContentMod&action=item&id=1962 coresecurity.com
- oval:org.mitre.oval:def:5817 oval.cisecurity.org · vdb entry, signature
- 20071011 CORE-2007-0928: Stack-based buffer overflow vulnerability in OpenBSDâ??s DHCP server securityfocus.com · mailing list
- 1018794 securitytracker.com · vdb entry
- 1021157 securitytracker.com · vdb entry
- 32213 securityfocus.com · vdb entry
Source: the record CVE-2007-5365 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse