CVE-2009-0641

FreeBSD 7.x - Remote Code Execution

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2009-0641. PoCs published by kingcope.

AI-analyzed exploit summary This exploit leverages the FreeBSD telnet daemon's failure to sanitize LD_PRELOAD environment variables, allowing local or remote privilege escalation to root by preloading a malicious shared library. The PoC includes a compiled library that spawns a root shell when loaded.

Description

sys_term.c in telnetd in FreeBSD 7.0-RELEASE and other 7.x versions deletes dangerous environment variables with a method that was valid only in older FreeBSD distributions, which might allow remote attackers to execute arbitrary code by passing a crafted environment variable from a telnet client, as demonstrated by an LD_PRELOAD value that references a malicious library.

Exploits (1)

exploitdb WORKING POC VERIFIED
by kingcope · textlocalfreebsd
https://www.exploit-db.com/exploits/8055

This exploit leverages the FreeBSD telnet daemon's failure to sanitize LD_PRELOAD environment variables, allowing local or remote privilege escalation to root by preloading a malicious shared library. The PoC includes a compiled library that spawns a root shell when loaded.

Classification
Working Poc 95%
Attack Type
Lpe
Complexity
Moderate
Reliability
Reliable
Target: FreeBSD telnetd (7.0-RELEASE)
No auth needed
Prerequisites: Access to upload a malicious shared library to the target system (e.g., via FTP, NFS, or local file system) · Telnet access to the target system
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (5)

Core 5
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/48780
Exploit vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/33777
Exploit, Third Party Advisory exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/8055

Scores

EPSS 0.0935
EPSS Percentile 94.8%

Details

CWE
CWE-16 CWE-264
Status published
Products (5)
freebsd/freebsd 7.0 (3 CPE variants)
freebsd/freebsd 7.0-release
freebsd/freebsd 7.0_beta4
freebsd/freebsd 7.0_releng
freebsd/freebsd 7.1 (2 CPE variants)
Published Feb 20, 2009
Tracked Since Feb 18, 2026