UnratedFix available
sharutils — security advisory
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.
- Products
- sharutils
- Affected versions
- Not specified
- Fixed versions
- 1:4.2.1-11
- CVEs
- CVE-2004-1772
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 14:22 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2004-1772
sharutils
Fixed versions: 1:4.2.1-11
sharutils
Fixed versions: 1:4.2.1-11
sharutils
Fixed versions: 1:4.2.1-11
Complete source record
{
"id": "4f35bc63891880dec58ac7794835e0748775c5eb9929c689a8489c3d90f33f0b",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2004-1772",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2004-1772",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2004-1772",
"products": [
{
"name": {
"value": "sharutils",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1:4.2.1-11",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "sharutils",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1:4.2.1-11",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "sharutils",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1:4.2.1-11",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "DEBIAN-CVE-2004-1772",
"aliases": [
"DEBIAN-CVE-2004-1772"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1:4.2.1-11"
}
]
}
],
"package": {
"name": "sharutils",
"purl": "pkg:deb/debian/sharutils?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2004-1772.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1:4.2.1-11"
}
]
}
],
"package": {
"name": "sharutils",
"purl": "pkg:deb/debian/sharutils?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2004-1772.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1:4.2.1-11"
}
]
}
],
"package": {
"name": "sharutils",
"purl": "pkg:deb/debian/sharutils?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2004-1772.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-21T15:47:21.817591483Z",
"provider": "osv",
"upstream": [
"CVE-2004-1772"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2004-1772"
]
},
"related_cves": [
{
"value": "CVE-2004-1772",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 393796,
"published_at": "2004-12-31T05:00:00+00:00"
}