OpenSSH SCP shell expansion command execution

openssh-scp-command-execution (24305) The risk level is classified as HighHigh Risk

Description:

OpenSSH could allow a local attacker to execute arbitrary commands on the system. When the scp component in OpenSSH is used to perform a local-to-local copy, the file name is expanded twice. An attacker could exploit this vulnerability using a specially-crafted file name to execute arbitrary commands on the system with the privileges of the user running scp.

Platforms Affected:

  • Avaya, Call Management System 12
  • Avaya, Call Management System 13
  • Avaya, Call Management System 13.1
  • Avaya, Call Management System 14
  • Avaya, Interactive Response 2.0
  • Canonical, Ubuntu 4.10
  • Canonical, Ubuntu 5.04
  • Canonical, Ubuntu 5.10
  • Gentoo, Linux
  • HP, HP-UX B.11.00
  • HP, HP-UX B.11.11
  • HP, HP-UX B.11.23
  • MandrakeSoft, Mandrake Linux 10.1 X86_64
  • MandrakeSoft, Mandrake Linux 10.1
  • MandrakeSoft, Mandrake Linux 2006
  • MandrakeSoft, Mandrake Linux 2006 X86_64
  • MandrakeSoft, Mandrake Linux LE2005
  • MandrakeSoft, Mandrake Linux LE2005 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
  • MandrakeSoft, Mandrake Multi Network Firewall 2.0
  • Matt Johnston, Dropbear SSH Server 0.47 and prior
  • Michael Jennings, libast prior to 0.7
  • Novell, UnitedLinux 1.0
  • OpenBSD, OpenSSH 2.1.1p4
  • OpenBSD, OpenSSH 2.2.0p1
  • OpenBSD, OpenSSH 2.3.0p1
  • OpenBSD, OpenSSH 2.5.1p1
  • OpenBSD, OpenSSH 2.5.1p2
  • OpenBSD, OpenSSH 2.5.2p1
  • OpenBSD, OpenSSH 2.5.2p2
  • OpenBSD, OpenSSH 2.9.9p1
  • OpenBSD, OpenSSH 3.0
  • OpenBSD, OpenSSH 3.0.1
  • OpenBSD, OpenSSH 3.0.1p1
  • OpenBSD, OpenSSH 3.0.2
  • OpenBSD, OpenSSH 3.0.2p1
  • OpenBSD, OpenSSH 3.0p1
  • OpenBSD, OpenSSH 3.1
  • OpenBSD, OpenSSH 3.1p1
  • OpenBSD, OpenSSH 3.2
  • OpenBSD, OpenSSH 3.2.2p1
  • OpenBSD, OpenSSH 3.2.3p1
  • OpenBSD, OpenSSH 3.3
  • OpenBSD, OpenSSH 3.3p1
  • OpenBSD, OpenSSH 3.4
  • OpenBSD, OpenSSH 3.4p1
  • OpenBSD, OpenSSH 3.5
  • OpenBSD, OpenSSH 3.5p1
  • OpenBSD, OpenSSH 3.6
  • OpenBSD, OpenSSH 3.6.1
  • OpenBSD, OpenSSH 3.6.1p1
  • OpenBSD, OpenSSH 3.6.1p2
  • OpenBSD, OpenSSH 3.7
  • OpenBSD, OpenSSH 3.7.1
  • OpenBSD, OpenSSH 3.7.1p2
  • OpenBSD, OpenSSH 3.8
  • OpenBSD, OpenSSH 3.8.1
  • OpenBSD, OpenSSH 3.8.1p1
  • OpenBSD, OpenSSH 3.9
  • OpenBSD, OpenSSH 3.9.1
  • OpenBSD, OpenSSH 3.9.1p1
  • OpenBSD, OpenSSH 4.0p1
  • OpenBSD, OpenSSH 4.1p1
  • OpenBSD, OpenSSH 4.2p1
  • OpenPKG, OpenPKG 2.3
  • OpenPKG, OpenPKG 2.4
  • OpenPKG, OpenPKG 2.5
  • OpenPKG, OpenPKG CURRENT
  • RedHat, Enterprise Linux 2.1 WS
  • RedHat, Enterprise Linux 2.1 AS
  • RedHat, Enterprise Linux 2.1 ES
  • RedHat, Enterprise Linux 3 ES
  • RedHat, Enterprise Linux 3 AS
  • RedHat, Enterprise Linux 3 WS
  • RedHat, Enterprise Linux 3 Desktop
  • RedHat, Enterprise Linux 4 ES
  • RedHat, Enterprise Linux 4 AS
  • RedHat, Enterprise Linux 4 WS
  • RedHat, Enterprise Linux 4 Desktop
  • RedHat, Linux Advanced Workstation 2.1 Itanium
  • Sun, Solaris 10 x86
  • Sun, Solaris 10 SPARC
  • Sun, Solaris 9 x86
  • Sun, Solaris 9 SPARC
  • SuSE, Linux Enterprise Server 8
  • SuSE, Linux Enterprise Server 9
  • SuSE, SuSE Linux 10.0
  • SuSE, SuSE Linux 9.1
  • SuSE, SuSE Linux 9.2
  • SuSE, SuSE Linux 9.3
  • SuSE, SuSE Linux Desktop 1.0
  • SuSE, SuSE SLES 9
  • Turbolinux, Turbolinux 10 Server
  • Turbolinux, Turbolinux 10 Server x64 Ed
  • Turbolinux, Turbolinux FUJI
  • Turbolinux, Turbolinux Appliance Server 2.0

Remedy:

Upgrade to the latest version of Mac OS X (10.4.9 or later) or apply Apple Security Update 2007-003. See References.

For Fedora Core 4:
Refer to Fedora Update Notification FEDORA-2006-056 for upgrade information. See References.

For Gentoo Linux:
Refer to GLSA 200602-11 for upgrade information. See References.

For Red Hat Linux:
Refer to RHSA-2006:0044-14 for patch, upgrade, or suggested workaround information. See References.

For Red Hat Linux 2.1:
Refer to RHSA-2006:0698-8 for patch, upgrade, or suggested workaround information. See References.

For Ubuntu Linux:
Refer to USN-255-1 for patch, upgrade, or suggested workaround information. See References.

For OpenPKG:
Refer to OpenPKG Security Advisory OpenPKG-SA-2006.003 for patch, upgrade, or suggested workaround information. See References.

For SUSE Linux:
Refer to SUSE Security Announcement SUSE-SA:2006:008 for patch, upgrade, or suggested workaround information. See References.

For HP-UX Secure Shell:
Refer to HPSBUX02178 SSRT061267 for patch, upgrade, or suggested workaround information. See References.

For Solaris (scp1):
Refer to Sun Alert ID: 102961 for patch, upgrade, or suggested workaround information. See References.

For Avaya (scp):
Refer to ASA-2007-246 for patch, upgrade, or suggested workaround information. See References.

For other distributions:
Apply the appropriate update for your system. See References.

Consequences:

Gain Privileges

References:

Reported:

Jan 24, 2006

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page