BreachSpiderVerified, not vibes

CVE-2009-0641 in Freebsd

Critical 9.3 Public exploit reported

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...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 2.09.3
EPSS9.3%
EPSS percentile96th
FixUnknown

Remotely exploitable over the network.

Affected products and versions

VendorProductAffected versions
Freebsd Freebsd 7.0 7.0-release 7.0_beta4 7.0_releng 7.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitReported · reference

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2009-0641
BreachSpider IDBS-2009-GLOBAL-156643-C
CVSS vectorAV:N/AC:M/Au:N/C:C/I:C/A:C
Published2009-02-20
Last modified2026-06-16
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-16: CWE-16

CWE-264: Permissions, Privileges, and Access Controls

Broad class covering failures in permission enforcement. Deprecated in favor of CWE-284, CWE-862, CWE-863.

Analysis AI-written, not human-reviewed

A vulnerability in telnetd in FreeBSD 7.0-RELEASE and other 7.x versions allows remote attackers to execute arbitrary code by passing a crafted environment variable, such as LD_PRELOAD, which references a malicious library.

The vulnerability arises from the improper handling of environment variables in the sys_term.c file of telnetd. The method used to delete dangerous environment variables is outdated and no longer effective in FreeBSD 7.x versions, allowing attackers to inject malicious libraries via the LD_PRELOAD environment variable.

Questions

What is CVE-2009-0641?

A vulnerability in telnetd in FreeBSD 7.0-RELEASE and other 7.x versions allows remote attackers to execute arbitrary code by passing a crafted environment variable, such as LD_PRELOAD, which references a malicious library.

What is the CVSS score for CVE-2009-0641?

CVE-2009-0641 has CVSS 9.3 (Critical). Vector: AV:N/AC:M/Au:N/C:C/I:C/A:C. EPSS: 9.3%.

Is CVE-2009-0641 actively exploited?

Public exploit available for CVE-2009-0641. Exploitation risk elevated.

How do I remediate CVE-2009-0641?

Priority: IMMEDIATE.

What systems are affected by CVE-2009-0641?

CVE-2009-0641 affects Freebsd Freebsd.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Freebsd","product":"Freebsd","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.