Every CVESearch/Get API key

CVE-2004-1772

Stack-based buffer overflow in shar in GNU sharutils 4.2.1 allows local users to execute...

4.6 MediumFix available

CVE-2004-1772 is a medium vulnerability (CVSS 4.6) in Gnu Sharutils, published December 31, 2004. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.65%, the 51st percentile. Fixed in sharutils 1:4.2.1-11.

What does this mean?
Severity
4.6 MediumCVSS 2.0, NVD
Exploit chance
0.65%EPSS, 51st percentile
Exploitation
None knownNot on CISA’s or ENISA’s lists
Fixed in
1:4.2.1-11sharutils +18 more

Description

Stack-based buffer overflow in shar in GNU sharutils 4.2.1 allows local users to execute arbitrary code via a long -o command line argument.

Exploit likelihood

0.65%Down 1.1 points since Feb 4, 2022
90%50%10%1%

Affected products

Affected packages

Affected packages
PackageAffectedFixed
sharutils
Debian:12
before 1:4.2.1-11
1:4.2.1-11
sharutils
Debian:13
before 1:4.2.1-11
1:4.2.1-11
sharutils
Debian:14
before 1:4.2.1-11
1:4.2.1-11
sharutils
Red Hat:enterprise_linux:3::as
From an advisory covering 3 CVEs
before 0:4.2.1-16.2
0:4.2.1-16.2
sharutils-debuginfo
Red Hat:enterprise_linux:3::as
From an advisory covering 3 CVEs
before 0:4.2.1-16.2
0:4.2.1-16.2
sharutils
Red Hat:enterprise_linux:3::desktop
From an advisory covering 3 CVEs
before 0:4.2.1-16.2
0:4.2.1-16.2
sharutils-debuginfo
Red Hat:enterprise_linux:3::desktop
From an advisory covering 3 CVEs
before 0:4.2.1-16.2
0:4.2.1-16.2
sharutils
Red Hat:enterprise_linux:3::es
From an advisory covering 3 CVEs
before 0:4.2.1-16.2
0:4.2.1-16.2
sharutils-debuginfo
Red Hat:enterprise_linux:3::es
From an advisory covering 3 CVEs
before 0:4.2.1-16.2
0:4.2.1-16.2
sharutils
Red Hat:enterprise_linux:3::ws
From an advisory covering 3 CVEs
before 0:4.2.1-16.2
0:4.2.1-16.2
Show 9 moreShow less
Affected packages
PackageAffectedFixed
sharutils-debuginfo
Red Hat:enterprise_linux:3::ws
From an advisory covering 3 CVEs
before 0:4.2.1-16.2
0:4.2.1-16.2
sharutils
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.2.1-22.2
0:4.2.1-22.2
sharutils-debuginfo
Red Hat:enterprise_linux:4::as
From an advisory covering 3 CVEs
before 0:4.2.1-22.2
0:4.2.1-22.2
sharutils
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.2.1-22.2
0:4.2.1-22.2
sharutils-debuginfo
Red Hat:enterprise_linux:4::desktop
From an advisory covering 3 CVEs
before 0:4.2.1-22.2
0:4.2.1-22.2
sharutils
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.2.1-22.2
0:4.2.1-22.2
sharutils-debuginfo
Red Hat:enterprise_linux:4::es
From an advisory covering 3 CVEs
before 0:4.2.1-22.2
0:4.2.1-22.2
sharutils
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.2.1-22.2
0:4.2.1-22.2
sharutils-debuginfo
Red Hat:enterprise_linux:4::ws
From an advisory covering 3 CVEs
before 0:4.2.1-22.2
0:4.2.1-22.2

What each source reports

NVD Score used4.6

Stack-based buffer overflow in shar in GNU sharutils 4.2.1 allows local users to execute arbitrary code via a long -o command line argument.

Record
CVE-2004-1772
CVSS 2.0
4.6 MediumAV:L/AC:L/Au:N/C:P/I:P/A:P
Updated
2026-11-02
CVE ListNo score

Stack-based buffer overflow in shar in GNU sharutils 4.2.1 allows local users to execute arbitrary code via a long -o command line argument.

Record
CVE-2004-1772
Updated
2026-11-02
EUVDEUVD-2004-1766No score

Stack-based buffer overflow in shar in GNU sharutils 4.2.1 allows local users to execute arbitrary code via a long -o command line argument.

Record
EUVD-2004-1766
Updated
2026-11-03
GitHub AdvisoriesGHSA-c6qx-vg4x-8xrpNo score

Stack-based buffer overflow in shar in GNU sharutils 4.2.1 allows local users to execute...

Stack-based buffer overflow in shar in GNU sharutils 4.2.1 allows local users to execute arbitrary code via a long -o command line argument.

Record
GHSA-c6qx-vg4x-8xrp
Updated
2026-11-02
OSVNo score

Stack-based buffer overflow in shar in GNU sharutils 4.2.1 allows local users to execute arbitrary code via a long -o command line argument.

Record
CVE-2004-1772
Updated
2026-11-02
OSVDEBIAN-CVE-2004-1772No score

Stack-based buffer overflow in shar in GNU sharutils 4.2.1 allows local users to execute arbitrary code via a long -o command line argument.

Record
DEBIAN-CVE-2004-1772
Updated
2026-11-02

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

References

Show 21 moreShow less
MoveEnter Open