Gentoo Logo

SSH Communications Security's Secure Shell Server: SFTP privilege escalation


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200703-13 / net-misc/ssh
Release Date March 14, 2007
Latest Revision March 14, 2007: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
net-misc/ssh < 4.3.7 All supported architectures

Related bugreports: #168584


The SSH Secure Shell Server SFTP function is vulnerable to privilege escalation.

2.  Impact Information


The SSH Secure Shell Server from SSH Communications Security ( is a commercial SSH implementation available free for non-commercial use.


The SSH Secure Shell Server contains a format string vulnerability in the SFTP code that handles file transfers (scp2 and sftp2). In some situations, this code passes the accessed filename to the system log. During this operation, an unspecified error could allow uncontrolled stack access.


An authenticated system user may be able to exploit this vulnerability to bypass command restrictions, or run commands as another user.

3.  Resolution Information


There is no known workaround at this time.


This package is currently masked, there is no upgrade path for the 3.2.x version, and a license must be purchased in order to update to a non-vulnerable version. Because of this, we recommend unmerging this package:

Code Listing 3.1: Resolution

# emerge --ask --verbose --unmerge net-misc/ssh

4.  References


Page updated March 14, 2007

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.