Overview
There are two related vulnerabilities in the challenge response handling code in OpenSSH versions 2.3.1p1 through 3.3. They may allow a remote intruder to execute arbitrary code as the user running sshd (often root). The first vulnerability affects OpenSSH versions 2.9.9 through 3.3 that have the challenge response option enabled and that use SKEY or BSD_AUTH authentication. The second vulnerability affects PAM modules using interactive keyboard authentication in OpenSSH versions 2.3.1p1 through 3.3, regardless of the challenge response option setting. Additionally, a number of other possible security problems have been corrected in OpenSSH version 3.4.
Description
Two related vulnerabilities have been found in the handling of challenge responses in OpenSSH. The first vulnerability is an integer overflow in the handling of the number of responses received during challenge response authentication. If the challenge response configuration option is set to yes and the system is using SKEY or BSD_AUTH authentication then a remote intruder may be able to exploit the vulnerability to execute arbitrary code. This vulnerability is present in versions of OpenSSH 2.9.9 through 3.3. An exploit for this vulnerability is reported to exist. This vulnerability is partially described in a recent ISS security advisory available at |
Impact
A remote attacker can execute code with the privileges of the user running the sshd (often root). These vulnerabilities may also be used to cause a denial-of-service condition. |
Solution
Upgrade to OpenSSH version 3.4 |
Disable SSH protocol version 2 |
Vendor Information
CVSS Metrics
Group | Score | Vector |
---|---|---|
Base | ||
Temporal | ||
Environmental |
References
- http://www.openssh.com/txt/preauth.adv
- http://bvlive01.iss.net/issEn/delivery/xforce/alertdetail.jsp?oid=20584
- http://www.iss.net/security_center/static/9169.php
- http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=102495293705094&w=2
- http://www.citi.umich.edu/u/provos/ssh/privsep.html
- http://www.openbsd.org/cgi-bin/man.cgi?query=login.conf&sektion=5&arch=&apropos=0&manpath=OpenBSD+Current
- http://www.securityfocus.com/bid/5093
Acknowledgements
The CERT/CC thanks Theo de Raadt and Markus Friedl of the OpenSSH project for their technical assistance in producing this document. The SKEY/BSD_AUTH vulnerability was discovered by Mark Dowd at ISS X-Force.
This document was written by Cory F Cohen.
Other Information
CVE IDs: | CVE-2002-0639 |
CERT Advisory: | CA-2002-18 |
Severity Metric: | 49.34 |
Date Public: | 2002-06-24 |
Date First Published: | 2002-06-26 |
Date Last Updated: | 2002-12-06 19:25 UTC |
Document Revision: | 38 |