Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2021-23839

openssl: incorrect SSLv2 rollback protection

Overview

Published
16 Feb 2021
Modified
17 Jun 2026
Low CVE
1 Registry packages
3 OS packages
6 Linux distributions
Yes Fix available

Description

OpenSSL 1.0.2 supports SSLv2. If a client attempts to negotiate SSLv2 with a server that is configured to support both SSLv2 and more recent SSL and TLS versions then a check is made for a version rollback attack when unpadding an RSA signature. Clients that support SSL or TLS versions greater than SSLv2 are supposed to use a special form of padding. A server that supports greater than SSLv2 is supposed to reject connection attempts from a client where this special form of padding is present, because this indicates that a version rollback has occurred (i.e. both client and server support greater than SSLv2, and yet this is the version that is being requested). The implementation of this padding check inverted the logic so that the connection attempt is accepted if the padding is present, and rejected if it is absent. This means that such as server will accept a connection if a version rollback attack has occurred. Further the server will erroneously reject a connection if a normal SSLv2 connection attempt is made. Only OpenSSL 1.0.2 servers from version 1.0.2s to 1.0.2x are affected by this issue. In order to be vulnerable a 1.0.2 server must: 1) have configured SSLv2 support at compile time (this is off by default), 2) have configured SSLv2 support at runtime (this is off by default), 3) have configured SSLv2 ciphersuites (these are not in the default ciphersuite list) OpenSSL 1.1.1 does not have SSLv2 support and therefore is not vulnerable to this issue. The underlying error is in the implementation of the RSA_padding_check_SSLv23() function. This also affects the RSA_SSLV23_PADDING padding mode used by various other functions. Although 1.1.1 does not support SSLv2 the RSA_padding_check_SSLv23() function still exists, as does the RSA_SSLV23_PADDING padding mode. Applications that directly call that function or use that padding mode will encounter this issue. However since there is no support for the SSLv2 protocol in 1.1.1 this is considered a bug and not a security issue in that version. OpenSSL 1.0.2 is out of support and no longer receiving public updates. Premium support customers of OpenSSL 1.0.2 should upgrade to 1.0.2y. Other users should upgrade to 1.1.1j. Fixed in OpenSSL 1.0.2y (Affected 1.0.2s-1.0.2x).

Source: OX vulnerability database

Severity

3.7 · LOW

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Weakness: CWE-327

Affected packages · 1

Packages affected by CVE-2021-23839
EcosystemPackageVulnerableFixed in
Conan (C/C++) openssl =1.0.2s 1.0.2u

Open a package to see all its vulnerabilities.

Operating systems · 16 fixes

alpine 4 releases · 1 package

fixed 4
openssl
alpine fixes for CVE-2021-23839
ReleasePackageFixed in
3.22 openssl 1.1.1j-r0
3.23 openssl 1.1.1j-r0
3.24 openssl 1.1.1j-r0
edge openssl 1.1.1j-r0

debian 4 releases · 1 package

fixed 4
openssl
debian fixes for CVE-2021-23839
ReleasePackageFixed in
11 openssl 1.0.0d-1
12 openssl 1.0.0d-1
13 openssl 1.0.0d-1
14 openssl 1.0.0d-1

echo 1 release · 1 package

fixed 1
openssl
echo fixes for CVE-2021-23839
ReleasePackageFixed in
openssl 1.0.0d-1

root.io alpine 2 releases · 1 package

fixed 2
rootio-openssl
root.io alpine fixes for CVE-2021-23839
ReleasePackageFixed in
3.23 rootio-openssl 1.1.1j-r0
3.24 rootio-openssl 1.1.1j-r0

root.io debian 3 releases · 1 package

fixed 3
rootio-openssl
root.io debian fixes for CVE-2021-23839
ReleasePackageFixed in
11 rootio-openssl 1.0.0d-1
12 rootio-openssl 1.0.0d-1
13 rootio-openssl 1.0.0d-1

seal Red Hat 1 release · 1 package

fixed 2
openssl
seal Red Hat fixes for CVE-2021-23839
ReleasePackageFixed in
7 openssl +1 1:1.0.2k-25.el7_9+sp999
7 openssl +1 1:1.0.2k-26.el7_9+sp2

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.