CVE-2004-1051 Privilege escalation in n/a

High 7.2 Published Updated

Local attackers can escalate privileges to root by exploiting environment variable function shadowing in sudo scripts.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2004-1051?

CVE-2004-1051 is a high-severity vulnerability in Debian Debian Linux, published on 18 Nov 2004. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

sudo before 1.6.8p2 allows local users to execute arbitrary commands by using "()" style environment variables to create functions that have the same name as any program within the bash script that is called without using the program's full pathname.

Which versions are affected by CVE-2004-1051?

It affects 7 products.

Products include Debian Debian Linux, Mandrakesoft Mandrake Linux, Mandrakesoft Mandrake Linux Corporate Server, Mandrakesoft Mandrake Multi Network Firewall, Todd Miller Sudo, Trustix Secure Linux and 1 more.

How do I fix CVE-2004-1051?

Upgrade to a fixed version.

Is CVE-2004-1051 being exploited?

There is no known exploitation of CVE-2004-1051 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2004-1051, DSA-596-2, GHSA-792w-v225-x939.

Is CVE-2004-1051 in your software?

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

Check your SBOMs for free