Every CVE Search/ Get API key

CVE-2021-20230

A flaw was found in stunnel before 5.57, where it improperly validates client certificates when...

7.5 HighFix available

A flaw was found in stunnel before 5.57, where it improperly validates client certificates when it is configured to use both redirect and verifyChain options. This flaw allows an attacker with a certificate signed by a Certificate Authority, which is not the one accepted by the stunnel server, to access the tunneled service instead of being redirected to the address specified in the redirect option. The highest threat from this vulnerability is to confidentiality.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
None
Availability
None

Exploit likelihood

1.18%Up 0.6 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

A flaw was found in stunnel before 5.57, where it improperly validates client certificates when it is configured to use both redirect and verifyChain options. This flaw allows an attacker with a certificate signed by a Certificate Authority, which is not the one accepted by the stunnel server, to access the tunneled service instead of being redirected to the address specified in the redirect option. The highest threat from this vulnerability is to confidentiality.

Record
CVE-2021-20230
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:P/I:N/A:N
Weakness
CWE-295
Updated
2026-11-02
CVE List No score

A flaw was found in stunnel before 5.57, where it improperly validates client certificates when it is configured to use both redirect and verifyChain options. This flaw allows an attacker with a certificate signed by a Certificate Authority, which is not the one accepted by the stunnel server, to access the tunneled service instead of being redirected to the address specified in the redirect option. The highest threat from this vulnerability is to confidentiality.

Record
CVE-2021-20230
Weakness
CWE-295
Updated
2026-11-02
EUVDEUVD-2021-7669 No score

A flaw was found in stunnel before 5.57, where it improperly validates client certificates when it is configured to use both redirect and verifyChain options. This flaw allows an attacker with a certificate signed by a Certificate Authority, which is not the one accepted by the stunnel server, to access the tunneled service instead of being redirected to the address specified in the redirect option. The highest threat from this vulnerability is to confidentiality.

Record
EUVD-2021-7669
Updated
2026-11-03
GitHub AdvisoriesGHSA-wwrq-59mq-v8w2 7.5

A flaw was found in stunnel before 5.57, where it improperly validates client certificates when...

A flaw was found in stunnel before 5.57, where it improperly validates client certificates when it is configured to use both redirect and verifyChain options. This flaw allows an attacker with a certificate signed by a Certificate Authority, which is not the one accepted by the stunnel server, to access the tunneled service instead of being redirected to the address specified in the redirect option. The highest threat from this vulnerability is to confidentiality.

Record
GHSA-wwrq-59mq-v8w2
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-295
Updated
2026-11-02
OSVAZL-7375 7.5

CVE-2021-20230 affecting package stunnel for versions less than 5.70-1

A flaw was found in stunnel before 5.57, where it improperly validates client certificates when it is configured to use both redirect and verifyChain options. This flaw allows an attacker with a certificate signed by a Certificate Authority, which is not the one accepted by the stunnel server, to access the tunneled service instead of being redirected to the address specified in the redirect option. The highest threat from this vulnerability is to confidentiality.

Record
AZL-7375
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSV 7.5

A flaw was found in stunnel before 5.57, where it improperly validates client certificates when it is configured to use both redirect and verifyChain options. This flaw allows an attacker with a certificate signed by a Certificate Authority, which is not the one accepted by the stunnel server, to access the tunneled service instead of being redirected to the address specified in the redirect option. The highest threat from this vulnerability is to confidentiality.

Record
CVE-2021-20230
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
Show 13 moreShow less
OSVDEBIAN-CVE-2021-20230 7.5

A flaw was found in stunnel before 5.57, where it improperly validates client certificates when it is configured to use both redirect and verifyChain options. This flaw allows an attacker with a certificate signed by a Certificate Authority, which is not the one accepted by the stunnel server, to access the tunneled service instead of being redirected to the address specified in the redirect option. The highest threat from this vulnerability is to confidentiality.

Record
DEBIAN-CVE-2021-20230
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVRHSA-2021:0618 7.5

Red Hat Security Advisory: stunnel security update

Record
RHSA-2021:0618
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVRHSA-2021:0619 7.5

Red Hat Security Advisory: stunnel security update

Record
RHSA-2021:0619
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVRHSA-2021:0620 7.5

Red Hat Security Advisory: stunnel security update

Record
RHSA-2021:0620
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVRLSA-2021:0618 7.5

Important: stunnel security update

Stunnel is a wrapper for network connections. It can be used to tunnel an unencrypted network connection over an encrypted connection (encrypted using SSL or TLS) or to provide an encrypted means of connecting to services that do not natively support encryption.

Security Fix(es):

  • stunnel: client certificate not correctly verified when redirect and verifyChain options are used (CVE-2021-20230)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
RLSA-2021:0618
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2021-20230 7.5

A flaw was found in stunnel before 5.57, where it improperly validates client certificates when it is configured to use both redirect and verifyChain options. This flaw allows an attacker with a certificate signed by a Certificate Authority, which is not the one accepted by the stunnel server, to access the tunneled service instead of being redirected to the address specified in the redirect option. The highest threat from this vulnerability is to confidentiality.

Record
UBUNTU-CVE-2021-20230
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVALSA-2021:0618 No score

Important: stunnel security update

Stunnel is a wrapper for network connections. It can be used to tunnel an unencrypted network connection over an encrypted connection (encrypted using SSL or TLS) or to provide an encrypted means of connecting to services that do not natively support encryption.

Security Fix(es):

  • stunnel: client certificate not correctly verified when redirect and verifyChain options are used (CVE-2021-20230)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Record
ALSA-2021:0618
Updated
2026-11-02
OSVCLSA-2023-1689701258 No score

Fix CVE(s): CVE-2021-20230

  • SECURITY UPDATE: Attacker bypasses redirection using unauthorized CA-signed certificate.
    • debian/patches/CVE-2021-20230.patch: Patch enhancing certificate verification process to prevent unauthorized redirection with CA-signed certificates by refining session data checks.
    • CVE-2021-20230
  • Fix tests:
    • debian/patches/renew-cert-script.patch: Add script that re-generate expired test certs.
  • Repacked orig source tarball with renewed certs.
  • Removed no longer required patch, that mute tests with expired certificates.
Record
CLSA-2023-1689701258
Updated
2026-11-02
OSVMGASA-2021-0284 No score

Updated tunnel packages fix security vulnerability

Updated stunnel package fixes security vulnerability:

Client certificate not correctly verified when redirect and verifyChain options are used (CVE-2021-20230).

Record
MGASA-2021-0284
Updated
2026-11-02
OSVopenSUSE-SU-2021:0409-1 No score

Security update for stunnel

This update for stunnel fixes the following issues:

  • Security fix: [bsc#1177580, bsc#1182529, CVE-2021-20230]
    • 'redirect' option does not properly handle 'verifyChain = yes'

This update was imported from the SUSE:SLE-15-SP2:Update update project.

Record
openSUSE-SU-2021:0409-1
Updated
2026-11-02
OSVSUSE-SU-2021:0772-1 No score

Security update for stunnel

This update for stunnel fixes the following issues:

  • Security fix: [bsc#1177580, bsc#1182529, CVE-2021-20230]
    • 'redirect' option does not properly handle 'verifyChain = yes'
Record
SUSE-SU-2021:0772-1
Updated
2026-11-02
OSVSUSE-SU-2021:1465-1 No score

Security update for stunnel

This update for stunnel fixes the following issues:

  • Security fix: [bsc#1177580, bsc#1182529, CVE-2021-20230]
    • 'redirect' option does not properly handle 'verifyChain = yes'
Record
SUSE-SU-2021:1465-1
Updated
2026-11-02
OSVUSN-6901-1 No score

stunnel4 vulnerability

It was discovered that stunnel did not properly validate client certificates when configured to use both the redirect and verifyChain options. A remote attacker could potentially use this issue to obtain sensitive information by accessing the tunneled service.

Record
USN-6901-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
stunnel
AlmaLinux:8
before 5.56-5.el8_3
5.56-5.el8_3
stunnel
Azure Linux:2
before 5.70-1
5.70-1
stunnel4
TuxCare:Ubuntu:18.04
before 3:5.44-1ubuntu3+tuxcare.els1
3:5.44-1ubuntu3+tuxcare.els1
stunnel4
Debian:12
before 3:5.56+dfsg-8
3:5.56+dfsg-8
stunnel4
Debian:13
before 3:5.56+dfsg-8
3:5.56+dfsg-8
stunnel
Mageia:7
before 5.57-1.mga7
5.57-1.mga7
stunnel
Red Hat:enterprise_linux:8::baseos
before 0:5.56-5.el8_3
0:5.56-5.el8_3
stunnel-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:5.56-5.el8_3
0:5.56-5.el8_3
stunnel-debugsource
Red Hat:enterprise_linux:8::baseos
before 0:5.56-5.el8_3
0:5.56-5.el8_3
stunnel
Red Hat:rhel_eus:8.2::baseos
before 0:5.48-6.el8_2
0:5.48-6.el8_2
Show 23 moreShow less
Affected packages
PackageAffectedFixed
stunnel-debuginfo
Red Hat:rhel_eus:8.2::baseos
before 0:5.48-6.el8_2
0:5.48-6.el8_2
stunnel-debugsource
Red Hat:rhel_eus:8.2::baseos
before 0:5.48-6.el8_2
0:5.48-6.el8_2
stunnel
Red Hat:rhel_eus:8.1::baseos
before 0:5.48-6.el8_1
0:5.48-6.el8_1
stunnel-debuginfo
Red Hat:rhel_eus:8.1::baseos
before 0:5.48-6.el8_1
0:5.48-6.el8_1
stunnel-debugsource
Red Hat:rhel_eus:8.1::baseos
before 0:5.48-6.el8_1
0:5.48-6.el8_1
stunnel
Rocky Linux:8
before 0:5.56-5.el8_3
0:5.56-5.el8_3
stunnel
SUSE:Linux Enterprise Module for Server Applications 15 SP2
before 5.57-3.11.1
5.57-3.11.1
stunnel
SUSE:Linux Enterprise High Performance Computing 15-ESPOS
before 5.44-3.8.1
5.44-3.8.1
stunnel
SUSE:Linux Enterprise High Performance Computing 15-LTSS
before 5.44-3.8.1
5.44-3.8.1
stunnel
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS
before 5.44-3.8.1
5.44-3.8.1
stunnel
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS
before 5.44-3.8.1
5.44-3.8.1
stunnel
SUSE:Linux Enterprise Server 15-LTSS
before 5.44-3.8.1
5.44-3.8.1
stunnel
SUSE:Linux Enterprise Server 15 SP1-BCL
before 5.44-3.8.1
5.44-3.8.1
stunnel
SUSE:Linux Enterprise Server 15 SP1-LTSS
before 5.44-3.8.1
5.44-3.8.1
stunnel
SUSE:Linux Enterprise Server for SAP Applications 15
before 5.44-3.8.1
5.44-3.8.1
stunnel
SUSE:Linux Enterprise Server for SAP Applications 15 SP1
before 5.44-3.8.1
5.44-3.8.1
stunnel
SUSE:Manager Proxy 4.0
before 5.44-3.8.1
5.44-3.8.1
stunnel
SUSE:Manager Retail Branch Server 4.0
before 5.44-3.8.1
5.44-3.8.1
stunnel
SUSE:Manager Server 4.0
before 5.44-3.8.1
5.44-3.8.1
stunnel
SUSE:Enterprise Storage 6
before 5.44-3.8.1
5.44-3.8.1
stunnel4
Ubuntu:Pro:18.04:LTS
before 3:5.44-1ubuntu3+esm1, plus listed versions
3:5.39-23:5.42-13:5.44-1ubuntu13:5.44-1ubuntu23:5.44-1ubuntu3
3:5.44-1ubuntu3+esm1
stunnel4
Ubuntu:20.04:LTS
before 3:5.56-1ubuntu0.2, plus listed versions
3:5.55-2build13:5.56-1
3:5.56-1ubuntu0.2
stunnel
openSUSE:Leap 15.2
before 5.57-lp152.2.6.1
5.57-lp152.2.6.1

History

History
RecordedChangedSources
aliases, productsEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-20230 is a high vulnerability (CVSS 7.5) in Microsoft Stunnel, published February 22, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.18%, the 67th percentile. Fixed in stunnel 5.56-5.el8_3.

References

Show 24 moreShow less
MoveEnter Open