CVE-2009-0641 Code injection in n/a

Critical 9.3 Published Updated

Remote attackers can execute arbitrary code on FreeBSD systems via crafted environment variables in telnetd due to improper handling of dangerous variables.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2009-0641?

CVE-2009-0641 is a critical code injection vulnerability in Freebsd Freebsd, published on 18 Feb 2009. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-264, CWE-16

Which versions are affected by CVE-2009-0641?

It affects 1 product.

Products include Freebsd Freebsd.

How do I fix CVE-2009-0641?

No fix has been published for CVE-2009-0641 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2009-0641 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2009-0641 exists.

Public exploit code: 1 Exploit-DB entry.

All Freebsd Freebsd vulnerabilities

Sources

Also known as GHSA-5vvp-mjcx-6cg5.

Is CVE-2009-0641 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free