CVE-2005-4890 Privilege escalation in shadow

High 7.8 Published Updated

Attackers can hijack terminal sessions via TIOCSTI ioctl in shadow or sudo, potentially escalating privileges or executing code.

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-2005-4890?

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

Official description

There is a possible tty hijacking in shadow 4.x before 4.1.5 and sudo 1.x before 1.7.4 via "su - user -c program". The user session can be escaped to the parent session by using the TIOCSTI ioctl to push characters into the input buffer to be read by the next process.

Weakness: CWE-20

Which versions are affected by CVE-2005-4890?

It affects 4 products.

Products include Debian Debian Linux, Debian Shadow, Redhat Enterprise Linux, Sudo Project Sudo.

How do I fix CVE-2005-4890?

Upgrade to a fixed version.

Is CVE-2005-4890 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2005-4890, GHSA-3p48-pw9r-4325.

Is CVE-2005-4890 in your software?

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

Check your SBOMs for free