cve.bz

CVE-2005-4890 Improper Input Validation

7.8 highExploit referenceEPSS 0.6%

High (7.8). EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2005-4890 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2005-4890?via=ask-ai-copy and https://cve.bz/cve/CVE-2005-4890?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2005-4890 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
debian:shadowfrom 4.0.0 through 4.1.5
sudo_project:sudofrom 1.3.0 through 1.7.4
debian:debian_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0
redhat:enterprise_linux4
redhat:enterprise_linux5
redhat:enterprise_linux6.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14shadow1:4.1.5-1DEBIAN-CVE-2005-4890
Debian12, 13, 14sudo1.7.4p4DEBIAN-CVE-2005-4890

From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue affects the version of coreutils package, as shipped with Red Hat Enterprise Linux 4. Red Hat Enterprise Linux 4 is however in the Extended Life Cycle Support (ELS) phase. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 4coreutilsWill not fix
Red Hat Enterprise Linux 5coreutilsNot affected
Red Hat Enterprise Linux 6coreutilsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2005-4890.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON