Users login

Create an account »


Users login

Home » Security Advisories» Mandrake » Sharutils buffer overflow

Sharutils buffer overflow

Shaun Colley discovered a buffer overflow in shar that was triggered by output files (using -o) with names longer than 49 characters which could be exploited to run arbitrary attacker-specified code.

  • Vendor: Mandrake
  • Vendor ID: MDKSA-2005:067
  • Date: April 07, 2005

Hash: SHA1


Mandrakelinux Security Update Advisory

Package name: sharutils
Advisory ID: MDKSA-2005:067
Date: April 7th, 2005

Affected versions: 10.0, 10.1, Corporate 3.0,
Corporate Server 2.1

Problem Description:

Shaun Colley discovered a buffer overflow in shar that was triggered
by output files (using -o) with names longer than 49 characters which
could be exploited to run arbitrary attacker-specified code.

Ulf Harnhammar discovered that shar does not check the data length
returned by the wc command.

Joey Hess discovered that unshar would create temporary files in an
insecure manner which could allow a symbolic link attack to create or
overwrite arbitrary files with the privileges of the user using unshar.

The updated packages have been patched to correct these issues.


Updated Packages:

Mandrakelinux 10.0:
e0c5cfb886f7a0fedfc5bdc1455abccd 10.0/RPMS/sharutils-4.2.1-14.1.100mdk.i586.rpm
21b92cbccfc0d68d6e54d8e5a29cb7a4 10.0/SRPMS/sharutils-4.2.1-14.1.100mdk.src.rpm

Mandrakelinux 10.0/AMD64:
3a5e130272c580dea1fa04759ac6bc13 amd64/10.0/RPMS/sharutils-4.2.1-14.1.100mdk.amd64.rpm
21b92cbccfc0d68d6e54d8e5a29cb7a4 amd64/10.0/SRPMS/sharutils-4.2.1-14.1.100mdk.src.rpm

Mandrakelinux 10.1:
6385031df18e26b9cfb90cd3258ef3d0 10.1/RPMS/sharutils-4.2.1-17.1.101mdk.i586.rpm
f2ccbc3b40ce4e78cf38fb04903ff115 10.1/SRPMS/sharutils-4.2.1-17.1.101mdk.src.rpm

Mandrakelinux 10.1/X86_64:
bd19a7967add2833d4307f4bbe4bb846 x86_64/10.1/RPMS/sharutils-4.2.1-17.1.101mdk.x86_64.rpm
f2ccbc3b40ce4e78cf38fb04903ff115 x86_64/10.1/SRPMS/sharutils-4.2.1-17.1.101mdk.src.rpm

Corporate Server 2.1:
5dfef49fe2541b8d59a0bb19ce0e4118 corporate/2.1/RPMS/sharutils-4.2.1-14.1.C21mdk.i586.rpm
85f8159f48a7eaed12a22b72bb0444b3 corporate/2.1/SRPMS/sharutils-4.2.1-14.1.C21mdk.src.rpm

Corporate Server 2.1/X86_64:
9a797c69a9b09049db9a6844e75c8db5 x86_64/corporate/2.1/RPMS/sharutils-4.2.1-14.1.C21mdk.x86_64.rpm
85f8159f48a7eaed12a22b72bb0444b3 x86_64/corporate/2.1/SRPMS/sharutils-4.2.1-14.1.C21mdk.src.rpm

Corporate 3.0:
77797b4c5413cc83ce90718238d9ec49 corporate/3.0/RPMS/sharutils-4.2.1-14.1.C30mdk.i586.rpm
cf8342d9bfdbcd90ccd36aec74546589 corporate/3.0/SRPMS/sharutils-4.2.1-14.1.C30mdk.src.rpm

Corporate 3.0/X86_64:
b8f7c96b18dc28d5ef919d2841496648 x86_64/corporate/3.0/RPMS/sharutils-4.2.1-14.1.C30mdk.x86_64.rpm
cf8342d9bfdbcd90ccd36aec74546589 x86_64/corporate/3.0/SRPMS/sharutils-4.2.1-14.1.C30mdk.src.rpm

To upgrade automatically use MandrakeUpdate or urpmi. The verification
of md5 checksums and GPG signatures is performed automatically for you.

All packages are signed by Mandrakesoft for security. You can obtain
the GPG public key of the Mandrakelinux Security Team by executing:

gpg --recv-keys --keyserver 0x22458A98

You can view other update advisories for Mandrakelinux at:

If you want to report vulnerabilities, please contact

Type Bits/KeyID Date User ID
pub 1024D/22458A98 2000-07-10 Linux Mandrake Security Team

Version: GnuPG v1.2.4 (GNU/Linux)


Newsletter signup

Signup to our monthly newsletter and stay in touch with IT news!

Free E-books

We've got ebooks! But they're not online. :( Please give us a few days to bring downloads back.


Have something to say or just wanna drop us a line? Please keep this in mind: to spam, we reply with spam.

Contact us »