CVE-2017-3737

MEDIUM

OpenSSL 1.0.2 - Buffer Overflow

Title source: llm
STIX 2.1

Description

OpenSSL 1.0.2 (starting from version 1.0.2b) introduced an "error state" mechanism. The intent was that if a fatal error occurred during a handshake then OpenSSL would move into the error state and would immediately fail if you attempted to continue the handshake. This works as designed for the explicit handshake functions (SSL_do_handshake(), SSL_accept() and SSL_connect()), however due to a bug it does not work correctly if SSL_read() or SSL_write() is called directly. In that scenario, if the handshake fails then a fatal error will be returned in the initial function call. If SSL_read()/SSL_write() is subsequently called by the application for the same SSL object then it will succeed and the data is passed without being decrypted/encrypted directly from the SSL/TLS record layer. In order to exploit this issue an application bug would have to be present that resulted in a call to SSL_read()/SSL_write() being issued after having already received a fatal error. OpenSSL version 1.0.2b-1.0.2m are affected. Fixed in OpenSSL 1.0.2n. OpenSSL 1.1.0 is not affected.

References (21)

Core 21
Core References
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:2185
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:2186
Vendor Advisory x_refsource_confirm
https://security.netapp.com/advisory/ntap-20180419-0002/
Third Party Advisory vendor-advisory x_refsource_freebsd
https://security.FreeBSD.org/advisories/FreeBSD-SA-17:12.openssl.asc
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/201712-03
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id/1039978
Vendor Advisory x_refsource_confirm
https://www.openssl.org/news/secadv/20171207.txt
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:0998
Third Party Advisory vendor-advisory x_refsource_debian
https://www.debian.org/security/2017/dsa-4065
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/102103
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:2187
Vendor Advisory x_refsource_confirm
https://security.netapp.com/advisory/ntap-20180117-0002/
Third Party Advisory x_refsource_confirm
https://security.netapp.com/advisory/ntap-20171208-0001/
Third Party Advisory x_refsource_confirm
https://www.tenable.com/security/tns-2017-16

Scores

CVSS v3 5.9
EPSS 0.4293
EPSS Percentile 97.5%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Details

CWE
CWE-125 CWE-787
Status published
Products (14)
debian/debian_linux 9.0
openssl/openssl 1.0.2b
openssl/openssl 1.0.2c
openssl/openssl 1.0.2d
openssl/openssl 1.0.2e
openssl/openssl 1.0.2f
openssl/openssl 1.0.2g
openssl/openssl 1.0.2h
openssl/openssl 1.0.2i
openssl/openssl 1.0.2j
... and 4 more
Published Dec 07, 2017
Tracked Since Feb 18, 2026