CVE-2004-1051: High severity Todd Miller Sudo vulnerability

Published Nov 18, 2004
·
Updated

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.

Affected Software

51 affected components
Todd Miller Sudo=1.5.8
Todd Miller Sudo=1.6.3_p6
Todd Miller Sudo=1.5.9
Todd Miller Sudo=1.6.6
Todd Miller Sudo=1.6.3
Todd Miller Sudo=1.6.4_p2
Todd Miller Sudo=1.6.1
Todd Miller Sudo=1.6.3_p5
Todd Miller Sudo=1.5.7
Todd Miller Sudo=1.6.2
Todd Miller Sudo=1.6.8
Todd Miller Sudo=1.6.4_p1
Todd Miller Sudo=1.6.3_p2
Todd Miller Sudo=1.6.3_p4
Todd Miller Sudo=1.6.5_p2
Todd Miller Sudo=1.6.5
Todd Miller Sudo=1.6.3_p3
Todd Miller Sudo=1.6.8_p1
Todd Miller Sudo=1.6.5_p1
Todd Miller Sudo=1.6.3_p7
Todd Miller Sudo=1.6
Todd Miller Sudo=1.6.4
Mandrakesoft Mandrake Multi Network Firewall=8.2
Todd Miller Sudo=1.6.7
Todd Miller Sudo=1.6.3_p1
Todd Miller Sudo=1.5.6
Trustix Secure Linux=2.0
Mandrakesoft Mandrake Linux Corporate Server=2.1
Debian Debian Linux=3.0
Ubuntu Ubuntu Linux=4.1
Debian Debian Linux=3.0
Debian Debian Linux=3.0
Mandrakesoft Mandrake Linux=9.2
Debian Debian Linux=3.0
Mandrakesoft Mandrake Linux=10.1
Debian Debian Linux=3.0
Debian Debian Linux=3.0
Mandrakesoft Mandrake Linux=9.2
Trustix Secure Linux=1.5
Debian Debian Linux=3.0
Debian Debian Linux=3.0
Debian Debian Linux=3.0
Debian Debian Linux=3.0
Mandrakesoft Mandrake Linux=10.0
Trustix Secure Linux=2.1
Trustix Secure Linux=2.2
Ubuntu Ubuntu Linux=4.1
Debian Debian Linux=3.0
Mandrakesoft Mandrake Linux Corporate Server=2.1
Mandrakesoft Mandrake Linux=10.0
Mandrakesoft Mandrake Linux=10.1

Remediation

Event History

Nov 18, 2004
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2004-1051?

CVE-2004-1051 is classified as a high severity vulnerability due to its potential for local users to execute arbitrary commands.

2

How do I fix CVE-2004-1051?

To fix CVE-2004-1051, upgrade to a version of sudo that is 1.6.8p2 or later.

3

What versions of sudo are affected by CVE-2004-1051?

CVE-2004-1051 affects sudo versions prior to 1.6.8p2, including 1.5.6, 1.5.7, 1.5.8, and several 1.6.x versions.

4

How does CVE-2004-1051 enable arbitrary command execution?

CVE-2004-1051 allows command execution through the misuse of "()" style environment variables to create functions that can override existing commands.

5

Who is impacted by CVE-2004-1051?

Local users on systems running vulnerable versions of sudo are impacted by CVE-2004-1051.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203