CVE-2021-20230
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.
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
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 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS 2.0
- 5.0 Medium
AV: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
stunnelAlmaLinux:8 |
before 5.56-5.el8_3 | 5.56-5.el8_3 |
stunnelAzure Linux:2 |
before 5.70-1 | 5.70-1 |
stunnel4TuxCare:Ubuntu:18.04 |
before 3:5.44-1ubuntu3+tuxcare.els1 | 3:5.44-1ubuntu3+tuxcare.els1 |
stunnel4Debian:12 |
before 3:5.56+dfsg-8 | 3:5.56+dfsg-8 |
stunnel4Debian:13 |
before 3:5.56+dfsg-8 | 3:5.56+dfsg-8 |
stunnelMageia:7 |
before 5.57-1.mga7 | 5.57-1.mga7 |
stunnelRed Hat:enterprise_linux:8::baseos |
before 0:5.56-5.el8_3 | 0:5.56-5.el8_3 |
stunnel-debuginfoRed Hat:enterprise_linux:8::baseos |
before 0:5.56-5.el8_3 | 0:5.56-5.el8_3 |
stunnel-debugsourceRed Hat:enterprise_linux:8::baseos |
before 0:5.56-5.el8_3 | 0:5.56-5.el8_3 |
stunnelRed Hat:rhel_eus:8.2::baseos |
before 0:5.48-6.el8_2 | 0:5.48-6.el8_2 |
Show 23 moreShow less
| Package | Affected | Fixed |
|---|---|---|
stunnel-debuginfoRed Hat:rhel_eus:8.2::baseos |
before 0:5.48-6.el8_2 | 0:5.48-6.el8_2 |
stunnel-debugsourceRed Hat:rhel_eus:8.2::baseos |
before 0:5.48-6.el8_2 | 0:5.48-6.el8_2 |
stunnelRed Hat:rhel_eus:8.1::baseos |
before 0:5.48-6.el8_1 | 0:5.48-6.el8_1 |
stunnel-debuginfoRed Hat:rhel_eus:8.1::baseos |
before 0:5.48-6.el8_1 | 0:5.48-6.el8_1 |
stunnel-debugsourceRed Hat:rhel_eus:8.1::baseos |
before 0:5.48-6.el8_1 | 0:5.48-6.el8_1 |
stunnelRocky Linux:8 |
before 0:5.56-5.el8_3 | 0:5.56-5.el8_3 |
stunnelSUSE:Linux Enterprise Module for Server Applications 15 SP2 |
before 5.57-3.11.1 | 5.57-3.11.1 |
stunnelSUSE:Linux Enterprise High Performance Computing 15-ESPOS |
before 5.44-3.8.1 | 5.44-3.8.1 |
stunnelSUSE:Linux Enterprise High Performance Computing 15-LTSS |
before 5.44-3.8.1 | 5.44-3.8.1 |
stunnelSUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS |
before 5.44-3.8.1 | 5.44-3.8.1 |
stunnelSUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS |
before 5.44-3.8.1 | 5.44-3.8.1 |
stunnelSUSE:Linux Enterprise Server 15-LTSS |
before 5.44-3.8.1 | 5.44-3.8.1 |
stunnelSUSE:Linux Enterprise Server 15 SP1-BCL |
before 5.44-3.8.1 | 5.44-3.8.1 |
stunnelSUSE:Linux Enterprise Server 15 SP1-LTSS |
before 5.44-3.8.1 | 5.44-3.8.1 |
stunnelSUSE:Linux Enterprise Server for SAP Applications 15 |
before 5.44-3.8.1 | 5.44-3.8.1 |
stunnelSUSE:Linux Enterprise Server for SAP Applications 15 SP1 |
before 5.44-3.8.1 | 5.44-3.8.1 |
stunnelSUSE:Manager Proxy 4.0 |
before 5.44-3.8.1 | 5.44-3.8.1 |
stunnelSUSE:Manager Retail Branch Server 4.0 |
before 5.44-3.8.1 | 5.44-3.8.1 |
stunnelSUSE:Manager Server 4.0 |
before 5.44-3.8.1 | 5.44-3.8.1 |
stunnelSUSE:Enterprise Storage 6 |
before 5.44-3.8.1 | 5.44-3.8.1 |
stunnel4Ubuntu: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 |
stunnel4Ubuntu:20.04:LTS |
before 3:5.56-1ubuntu0.2, plus listed versions 3:5.55-2build13:5.56-1 |
3:5.56-1ubuntu0.2 |
stunnelopenSUSE:Leap 15.2 |
before 5.57-lp152.2.6.1 | 5.57-lp152.2.6.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, products | EUVD | |
| first indexed | CVE 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
bugzilla.redhat.com/show_bug.cgi?id=1925226
github.com/mtrojnar/stunnel/commit/ebad9ddc4efb2635f37174c9d800d06206f1edf9
security.gentoo.org/glsa/202105-02
nvd.nist.gov/vuln/detail/CVE-2021-20230
github.com/advisories/GHSA-wwrq-59mq-v8w2
errata.almalinux.org/8/ALSA-2021-0618.html
Show 24 moreShow less
vulners.com/cve/CVE-2021-20230
errata.cloudlinux.com/ubuntu18_04-els/CLSA-2023-1689701258
security-tracker.debian.org/tracker/CVE-2021-20230
advisories.mageia.org/MGASA-2021-0284.html
bugs.mageia.org/show_bug.cgi?id=28195
access.redhat.com/errata/RHSA-2021:0618
access.redhat.com/security/updates/classification
security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_0618.json
access.redhat.com/security/cve/CVE-2021-20230
cve.org/CVERecord?id=CVE-2021-20230
access.redhat.com/errata/RHSA-2021:0619
security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_0619.json
access.redhat.com/errata/RHSA-2021:0620
security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_0620.json
errata.rockylinux.org/RLSA-2021:0618
suse.com/support/update/announcement/2021/suse-su-20210772-1
bugzilla.suse.com/1177580
bugzilla.suse.com/1182529
suse.com/security/cve/CVE-2021-20230
suse.com/support/update/announcement/2021/suse-su-20211465-1
ubuntu.com/security/CVE-2021-20230
bugzilla.suse.com/show_bug.cgi?id=1177580
ubuntu.com/security/notices/USN-6901-1
lists.opensuse.org/archives/list/[email protected]/thread/XVLGFTQ3NKK4IRG4YXB6DPOVNR7D5IAU