CVE-2021-20230
publishedstunnel: client certificate not correctly verified when redirect and verifyChain options are used
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | stunnelstunnel 5.57 | Affected | Not stated | redhat |
| AlmaLinux | 8 | stunnel | Advisory build | 5.56-5.el8_3 | ALSA-2021:0618 |
| Oracle Linux | 8 | stunnelaarch64 | Advisory build | 0:5.56-5.el8_3 | ELSA-2021-0618 |
| Red Hat Enterprise Linux | RHEL-8 | stunnelaarch64 | Advisory build | 5.48-6.el8_1 | RHSA-2021:0620 |
| SUSE / openSUSE | SLE-15 | stunnelaarch64 | Advisory build | 5.44-3.8.1 | SUSE-SU-2021:1465-1 |
| Ubuntu | bionic | stunnel4 | Advisory build | 3:5.44-1ubuntu3+esm1 | USN-6901-1 |
| Rocky Linux | 8 | stunnelaarch64 | Listed in advisory | Not stated | RLSA-2021:0618 |
| Oracle Linux | 8 | stunnelx86_64 | Advisory build | 0:5.56-5.el8_3 | ELSA-2021-0618 |
Show 58 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-8 | stunnelaarch64 | Advisory build | 5.48-6.el8_2 | RHSA-2021:0619 |
| Red Hat Enterprise Linux | RHEL-8 | stunnelaarch64 | Advisory build | 5.56-5.el8_3 | RHSA-2021:0618 |
| Red Hat Enterprise Linux | RHEL-8 | stunnelppc64le | Advisory build | 5.48-6.el8_1 | RHSA-2021:0620 |
| Red Hat Enterprise Linux | RHEL-8 | stunnelppc64le | Advisory build | 5.48-6.el8_2 | RHSA-2021:0619 |
| Red Hat Enterprise Linux | RHEL-8 | stunnelppc64le | Advisory build | 5.56-5.el8_3 | RHSA-2021:0618 |
| Red Hat Enterprise Linux | RHEL-8 | stunnels390x | Advisory build | 5.48-6.el8_1 | RHSA-2021:0620 |
| Red Hat Enterprise Linux | RHEL-8 | stunnels390x | Advisory build | 5.48-6.el8_2 | RHSA-2021:0619 |
| Red Hat Enterprise Linux | RHEL-8 | stunnels390x | Advisory build | 5.56-5.el8_3 | RHSA-2021:0618 |
| Red Hat Enterprise Linux | RHEL-8 | stunnelsrc | Advisory build | 5.48-6.el8_1 | RHSA-2021:0620 |
| Red Hat Enterprise Linux | RHEL-8 | stunnelsrc | Advisory build | 5.48-6.el8_2 | RHSA-2021:0619 |
| Red Hat Enterprise Linux | RHEL-8 | stunnelsrc | Advisory build | 5.56-5.el8_3 | RHSA-2021:0618 |
| Red Hat Enterprise Linux | RHEL-8 | stunnelx86_64 | Advisory build | 5.48-6.el8_1 | RHSA-2021:0620 |
| Red Hat Enterprise Linux | RHEL-8 | stunnelx86_64 | Advisory build | 5.48-6.el8_2 | RHSA-2021:0619 |
| Red Hat Enterprise Linux | RHEL-8 | stunnelx86_64 | Advisory build | 5.56-5.el8_3 | RHSA-2021:0618 |
| SUSE / openSUSE | SLE-15 | stunnelppc64le | Advisory build | 5.44-3.8.1 | SUSE-SU-2021:1465-1 |
| SUSE / openSUSE | SLE-15 | stunnels390x | Advisory build | 5.44-3.8.1 | SUSE-SU-2021:1465-1 |
| SUSE / openSUSE | SLE-15 | stunnelx86_64 | Advisory build | 5.44-3.8.1 | SUSE-SU-2021:1465-1 |
| SUSE / openSUSE | SLE-15-SP1 | stunnelaarch64 | Advisory build | 5.44-3.8.1 | SUSE-SU-2021:1465-1 |
| SUSE / openSUSE | SLE-15-SP1 | stunnelppc64le | Advisory build | 5.44-3.8.1 | SUSE-SU-2021:1465-1 |
| SUSE / openSUSE | SLE-15-SP1 | stunnels390x | Advisory build | 5.44-3.8.1 | SUSE-SU-2021:1465-1 |
| SUSE / openSUSE | SLE-15-SP1 | stunnelx86_64 | Advisory build | 5.44-3.8.1 | SUSE-SU-2021:1465-1 |
| SUSE / openSUSE | SLE-15-SP2 | stunnelaarch64 | Advisory build | 5.57-3.11.1 | SUSE-SU-2021:0772-1 |
| SUSE / openSUSE | SLE-15-SP2 | stunnelppc64le | Advisory build | 5.57-3.11.1 | SUSE-SU-2021:0772-1 |
| SUSE / openSUSE | SLE-15-SP2 | stunnels390x | Advisory build | 5.57-3.11.1 | SUSE-SU-2021:0772-1 |
| SUSE / openSUSE | SLE-15-SP2 | stunnelx86_64 | Advisory build | 5.57-3.11.1 | SUSE-SU-2021:0772-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | stunnelx86_64 | Advisory build | 5.57-lp152.2.6.1 | OPENSUSE-SU-2021:0409-1 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debuginfoaarch64 | Advisory build | 5.48-6.el8_1 | RHSA-2021:0620 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debuginfoaarch64 | Advisory build | 5.48-6.el8_2 | RHSA-2021:0619 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debuginfoaarch64 | Advisory build | 5.56-5.el8_3 | RHSA-2021:0618 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debuginfoppc64le | Advisory build | 5.48-6.el8_1 | RHSA-2021:0620 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debuginfoppc64le | Advisory build | 5.48-6.el8_2 | RHSA-2021:0619 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debuginfoppc64le | Advisory build | 5.56-5.el8_3 | RHSA-2021:0618 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debuginfos390x | Advisory build | 5.48-6.el8_1 | RHSA-2021:0620 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debuginfos390x | Advisory build | 5.48-6.el8_2 | RHSA-2021:0619 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debuginfos390x | Advisory build | 5.56-5.el8_3 | RHSA-2021:0618 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debuginfox86_64 | Advisory build | 5.48-6.el8_1 | RHSA-2021:0620 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debuginfox86_64 | Advisory build | 5.48-6.el8_2 | RHSA-2021:0619 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debuginfox86_64 | Advisory build | 5.56-5.el8_3 | RHSA-2021:0618 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debugsourceaarch64 | Advisory build | 5.48-6.el8_1 | RHSA-2021:0620 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debugsourceaarch64 | Advisory build | 5.48-6.el8_2 | RHSA-2021:0619 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debugsourceaarch64 | Advisory build | 5.56-5.el8_3 | RHSA-2021:0618 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debugsourceppc64le | Advisory build | 5.48-6.el8_1 | RHSA-2021:0620 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debugsourceppc64le | Advisory build | 5.48-6.el8_2 | RHSA-2021:0619 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debugsourceppc64le | Advisory build | 5.56-5.el8_3 | RHSA-2021:0618 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debugsources390x | Advisory build | 5.48-6.el8_1 | RHSA-2021:0620 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debugsources390x | Advisory build | 5.48-6.el8_2 | RHSA-2021:0619 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debugsources390x | Advisory build | 5.56-5.el8_3 | RHSA-2021:0618 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debugsourcex86_64 | Advisory build | 5.48-6.el8_1 | RHSA-2021:0620 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debugsourcex86_64 | Advisory build | 5.48-6.el8_2 | RHSA-2021:0619 |
| Red Hat Enterprise Linux | RHEL-8 | stunnel-debugsourcex86_64 | Advisory build | 5.56-5.el8_3 | RHSA-2021:0618 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | stunnel-docnoarch | Advisory build | 5.57-lp152.2.6.1 | OPENSUSE-SU-2021:0409-1 |
| Ubuntu | focal | stunnel4 | Advisory build | 3:5.56-1ubuntu0.2 | USN-6901-1 |
| Rocky Linux | 8 | stunnelsrc | Listed in advisory | Not stated | RLSA-2021:0618 |
| Rocky Linux | 8 | stunnelx86_64 | Listed in advisory | Not stated | RLSA-2021:0618 |
| Rocky Linux | 8 | stunnel-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2021:0618 |
| Rocky Linux | 8 | stunnel-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2021:0618 |
| Rocky Linux | 8 | stunnel-debugsourceaarch64 | Listed in advisory | Not stated | RLSA-2021:0618 |
| Rocky Linux | 8 | stunnel-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2021:0618 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | stunnel | stunnel 5.57 (affected) | redhat · cna |
Weaknesses
1- CWE-295
References
3- https://bugzilla.redhat.com/show_bug.cgi?id=1925226
- https://github.com/mtrojnar/stunnel/commit/ebad9ddc4efb2635f37174c9d800d06206f1edf9
- GLSA-202105-02 https://security.gentoo.org/glsa/202105-02
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8fd5e3c0cd9c6835a5aed46fe74e859a4c597e42eccf87caa7b314ba8d3e5309
- Ingested
- 23 Sep 2026, 07:52:16 UTC
- Source record
- Official CVE record