{"id":"CVE-2004-1772","aliases":["DEBIAN-CVE-2004-1772","EUVD-2004-1766","GHSA-c6qx-vg4x-8xrp","RHSA-2005:377"],"status":"published","title":"Stack-based buffer overflow in shar in GNU sharutils 4.2.1 allows local users to execute...","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.","severity":{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00649,"percentile":0.5137,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2004-12-31T05:00:00Z","modified":"2026-10-21T15:47:21Z","fixes":[{"ecosystem":"Debian:12","package":"sharutils","fixed_in":["1:4.2.1-11"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"sharutils","fixed_in":["1:4.2.1-11"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"sharutils","fixed_in":["1:4.2.1-11"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"sharutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.2.1-11"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"sharutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.2.1-11"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"sharutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.2.1-11"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"sharutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-16.2"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"sharutils-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-16.2"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"sharutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-16.2"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"sharutils-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-16.2"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"sharutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-16.2"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"sharutils-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-16.2"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"sharutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-16.2"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"sharutils-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-16.2"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"sharutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-22.2"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"sharutils-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-22.2"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"sharutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-22.2"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"sharutils-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-22.2"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"sharutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-22.2"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"sharutils-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-22.2"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"sharutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-22.2"}]}],"bundled":3},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"sharutils-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.2.1-22.2"}]}],"bundled":3}],"products":[{"vendor":"gnu","product":"sharutils"}],"references":[{"url":"http://marc.info/?l=bugtraq\u0026m=108137386310299\u0026w=2","tags":["vendor-advisory","x_refsource_OPENPKG","x_transferred","web"]},{"url":"https://bugzilla.fedora.us/show_bug.cgi?id=2155","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","Patch","fix"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11722","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/10066","tags":["vdb-entry","x_refsource_BID","x_transferred","Patch","fix"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/15759","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"http://www.securityfocus.com/archive/1/359639","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","Exploit","Patch","evidence","fix"]},{"url":"http://www.redhat.com/support/errata/RHSA-2005-377.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1772","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-c6qx-vg4x-8xrp"},{"url":"https://security-tracker.debian.org/tracker/CVE-2004-1772","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2005:377","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#low","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=152571","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=152573","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=154049","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2005/rhsa-2005_377.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-1772","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617417","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-1772","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-1773","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617418","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-1773","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1773","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2005-0990","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617597","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2005-0990","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2005-0990","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2004-1772","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.","status":"published","published":"2005-03-28T05:00:00Z","modified":"2024-08-08T01:00:37.256Z","updated_at":"2026-11-02T14:34:54.398187Z"}],"euvd":[{"id":"EUVD-2004-1766","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.","status":"published","published":"2005-03-28T05:00:00Z","modified":"2024-08-08T01:00:37Z","updated_at":"2026-11-03T01:15:13.250393Z"}],"ghsa":[{"id":"GHSA-c6qx-vg4x-8xrp","title":"Stack-based buffer overflow in shar in GNU sharutils 4.2.1 allows local users to execute...","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.","status":"published","published":"2022-04-29T03:00:11Z","modified":"2023-01-30T05:03:27Z","updated_at":"2026-11-02T14:46:50.469176Z"}],"nvd":[{"id":"CVE-2004-1772","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.","status":"published","published":"2004-12-31T05:00:00Z","modified":"2026-06-16T22:08:22.257Z","cvss":[{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:00:52.459805Z"}],"osv":[{"id":"CVE-2004-1772","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.","status":"published","published":"2004-12-31T05:00:00Z","modified":"2026-04-10T03:36:41.422356Z","updated_at":"2026-11-02T15:43:56.315348Z"},{"id":"DEBIAN-CVE-2004-1772","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.","status":"published","published":"2004-12-31T05:00:00Z","modified":"2026-10-21T15:47:21.817591483Z","updated_at":"2026-11-02T15:45:22.55978Z"},{"id":"RHSA-2005:377","title":"Red Hat Security Advisory: sharutils security update","status":"published","published":"2024-09-15T15:25:18Z","modified":"2026-06-26T10:02:58Z","updated_at":"2026-11-02T15:52:59.135214Z"}]}}
