{"vuid":"VU#412478","idnumber":"412478","name":"OpenSSL 0.9.6k does not properly handle ASN.1 sequences","keywords":["SSL","Novell","niscc","ouspg","uniras","win32","windows","microsoft","oulu","fuzz","black box","test suite","tls","ssl","openssl","asn.1","ber","NISCC/0006489/OpenSSL2","recursion"],"overview":"A vulnerability in the way OpenSSL handles ASN.1 elements could allow a remote attacker to cause a denial of service on systems running Microsoft Windows.","clean_desc":"OpenSSL implements the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols and includes a general purpose cryptographic library. SSL and TLS are commonly used to provide authentication, encryption, integrity, and non-repudiation services to network applications such as HTTP, IMAP, POP3, LDAP, and others. Clients and servers exchange authentication information in X.509 certificates. While the SSL and TLS protocols are not directly based on ASN.1, they do rely on ASN.1 objects used in X.509 certificates and other cryptographic elements (e.g. PKCS#1 encoded RSA values). OpenSSL 0.9.6k does not properly handle certain ASN.1 sequences. As a result, OpenSSL performs a recursive function call that could exhaust system resources and crash the process using the OpenSSL library. This denial-of-service condition has only been observed on Microsoft Windows platforms. OpenSSL 0.9.7 is not affected. From the OpenSSL advisory:<blockquote><pre><font face=\"courier\">\nA bug in OpenSSL 0.9.6 would cause certain ASN.1 sequences to trigger\na large recursion. On platforms such as Windows this large recursion\ncannot be handled correctly and so the bug causes OpenSSL to crash. A\nremote attacker could exploit this flaw if they can send arbitrary\nASN.1 sequences which would cause OpenSSL to crash. This could be\nperformed for example by sending a client certificate to a SSL/TLS\nenabled server which is configured to accept them. </font> </pre> </blockquote> The U.K. National Infrastructure Security Co-ordination Centre (NISCC) is tracking this vulnerability as NISCC/006489/openssl2.","impact":"By providing specially crafted ASN.1 encoded data to a vulnerable system, a remote attacker could cause a denial of service by consuming system resources. This has only been observed on Microsoft Windows systems. One potential attack vector is a client certificate message containing specially crafted X.509 certificates. Note that OpenSSL versions 0.9.7c or 0.9.6k and above do not accept unsolicited client certificates (VU#732952).","resolution":"Upgrade or Patch\nUpgrade to OpenSSL 0.9.7c  or 0.9.6l. Alternatively, upgrade or apply a patch as specified by your vendor. Further information is available in an advisory from OpenSSL. Note that it is necessary to recompile any applications that are statically linked to OpenSSL libraries.","workarounds":"","sysaffected":"","thanks":"This vulnerability was discoverd by NISCC and Novell. Thanks to NISCC and OpenSSL for information used in this document.","author":"This document was written by Art Manion.","public":["http://www.openssl.org/news/secadv_20031104.txt","http://www.uniras.gov.uk/vuls/2003/006489/openssl2.htm","http://www.itu.int/ITU-T/asn1/","http://www.itu.int/ITU-T/studygroups/com10/languages/"],"cveids":["CVE-2003-0851"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2003-10-28T20:57:28Z","publicdate":"2003-11-04T00:00:00Z","datefirstpublished":"2003-11-04T17:19:54Z","dateupdated":"2003-11-05T22:18:24Z","revision":21,"vrda_d1_directreport":"","vrda_d1_population":"","vrda_d1_impact":"","cam_widelyknown":"15","cam_exploitation":"0","cam_internetinfrastructure":"6","cam_population":"8","cam_impact":"3","cam_easeofexploitation":"18","cam_attackeraccessrequired":"19","cam_scorecurrent":"3.2319","cam_scorecurrentwidelyknown":"4.0014","cam_scorecurrentwidelyknownexploited":"7.0794","ipprotocol":"","cvss_accessvector":"","cvss_accesscomplexity":"","cvss_authentication":null,"cvss_confidentialityimpact":"","cvss_integrityimpact":"","cvss_availabilityimpact":"","cvss_exploitablity":null,"cvss_remediationlevel":"","cvss_reportconfidence":"","cvss_collateraldamagepotential":"","cvss_targetdistribution":"","cvss_securityrequirementscr":"","cvss_securityrequirementsir":"","cvss_securityrequirementsar":"","cvss_basescore":"","cvss_basevector":"","cvss_temporalscore":"","cvss_environmentalscore":"","cvss_environmentalvector":"","metric":3.2319,"vulnote":null}