CVE-2017-3737
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.
What to do
Likely to be exploited: EPSS gives a 79% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | openssl | Fixed | 1.0.2g-1ubuntu4.10 | UBUNTU-CVE-2017-3737 |
| Debian 14 | openssl | Fixed | 1.1.0b-2 | DEBIAN-CVE-2017-3737 |
| Debian 13 | openssl | Fixed | 1.1.0b-2 | DEBIAN-CVE-2017-3737 |
| Debian 12 | openssl | Fixed | 1.1.0b-2 | DEBIAN-CVE-2017-3737 |
| Red Hat Enterprise Linux 8 | openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-static | Not affected | ||
| Red Hat Enterprise Linux 7 | OVMF | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl | Fixed | 1:1.0.2k-12.el7 | RHSA-2018:0998 |
| Red Hat Enterprise Linux 7 | openssl-devel | Fixed | 1:1.0.2k-12.el7 | RHSA-2018:0998 |
| Red Hat Enterprise Linux 7 | openssl-libs | Fixed | 1:1.0.2k-12.el7 | RHSA-2018:0998 |
| Red Hat Enterprise Linux 7 | openssl-perl | Fixed | 1:1.0.2k-12.el7 | RHSA-2018:0998 |
| Red Hat Enterprise Linux 7 | openssl-static | Fixed | 1:1.0.2k-12.el7 | RHSA-2018:0998 |
| Red Hat Enterprise Linux 7 | openssl098e | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-static | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl098e | Not affected | ||
| Red Hat Enterprise Linux 5 | openssl | Not affected | ||
| Red Hat Enterprise Linux 5 | openssl097a | Not affected | ||
| Alpine Linux 3.8 | openssl | Fixed | 1.0.2n-r0 | ALPINE-CVE-2017-3737 |
| Alpine Linux 3.7 | openssl | Fixed | 1.0.2n-r0 | ALPINE-CVE-2017-3737 |
| Alpine Linux 3.6 | openssl | Fixed | 1.0.2n-r0 | ALPINE-CVE-2017-3737 |
| Alpine Linux 3.5 | openssl | Fixed | 1.0.2n-r0 | ALPINE-CVE-2017-3737 |
| Alpine Linux 3.4 | openssl | Fixed | 1.0.2n-r0 | ALPINE-CVE-2017-3737 |
| Alpine Linux 3.3 | openssl | Fixed | 1.0.2n-r0 | ALPINE-CVE-2017-3737 |
What the vendor says
As published in the CVE record by openssl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenSSL Software Foundation OpenSSL: affected: 1.0.2b-1.0.2m
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2018:2185 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:2186 (vendor-advisory)
- https://security.FreeBSD.org/advisories/FreeBSD-SA-17:12.openssl.asc (vendor-advisory)
- https://security.gentoo.org/glsa/201712-03 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:0998 (vendor-advisory)
- https://www.debian.org/security/2017/dsa-4065 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2018:2185
- https://access.redhat.com/errata/RHSA-2018:2186
- https://github.com/openssl/openssl/commit/898fb884b706aaeb283de4812340bb0bde8476dc
- http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
- http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html
- https://security.netapp.com/advisory/ntap-20180419-0002/
- https://security.FreeBSD.org/advisories/FreeBSD-SA-17:12.openssl.asc
- https://security.gentoo.org/glsa/201712-03
- http://www.securitytracker.com/id/1039978
- https://www.openssl.org/news/secadv/20171207.txt
- https://www.digitalmunition.me/2017/12/cve-2017-3737-openssl-security-bypass-vulnerability/
- https://access.redhat.com/errata/RHSA-2018:0998
- http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
- https://www.debian.org/security/2017/dsa-4065
- https://cert-portal.siemens.com/productcert/pdf/ssa-179516.pdf
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.