OpenSSH X11 < 5.1 Session Hijacking

Medium Nessus Network Monitor Plugin ID 4598


The remote host is vulnerable to a local 'session hijacking' flaw.


According to its banner, the version of SSH installed on the remote host is older than 5.1. Such versions may allow a local user to hijack X11 sessions because it improperly checks user privileges before re-binding a port. In order for the attack to be successful, the 'X11UseLocalhost' option would need to be disabled. By default, the option is enabled. Further, the OpenSSH service would need to be running on an operating system (such as HP-UX) where the effective user ID is not checked.

Note: PVS has solely relied on the banner of the SSH client to perform this check. Any backported patches or workarounds such as recompiling or edited configurations are not observable through the banner.


Upgrade to version 5.1 or higher.

See Also

Plugin Details

Severity: Medium

ID: 4598

Family: SSH

Published: 2008/07/22

Modified: 2016/11/23

Dependencies: 1997, 3059

Risk Information

Risk Factor: Medium


Base Score: 6.4

Temporal Score: 4.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:P

Temporal Vector: CVSS2#E:U/RL:OF/RC:C


Base Score: 6.4

Temporal Score: 5.5


Temporal Vector: CVSS3#E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:openbsd:openssh

Reference Information

CVE: CVE-2008-5161, CVE-2008-3259

BID: 32319, 30339