CVE-2004-1689 Path traversal in n/a

Low 2.1 Published Updated

Local attackers can read arbitrary files by exploiting a symlink vulnerability in sudoedit's temporary file handling.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2004-1689?

CVE-2004-1689 is a low-severity path traversal vulnerability in n/a, published on 20 Feb 2005. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

sudoedit (aka sudo -e) in sudo 1.6.8 opens a temporary file with root privileges, which allows local users to read arbitrary files via a symlink attack on the temporary file before quitting sudoedit.

Which versions are affected by CVE-2004-1689?

It affects 1 product.

Products include Todd Miller Sudo.

How do I fix CVE-2004-1689?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2004-1689 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as DEBIAN-CVE-2004-1689, GHSA-53qq-7f4q-p4vg.

Is CVE-2004-1689 in your software?

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

Check your SBOMs for free