CVE-2021-20230: High severity stunnel vulnerability

Published Feb 4, 2021
·
Updated

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.

Other sources

stunnel before version 5.57 does not correctly verify the client certificate when options redirect and verifyChain are used. redirect redirects TLS client connections to another address when there is a certificate-based authentication failure and verifyChain is used to verify the client certificate starting from the root CA (specified in CAfile or CApath). When these options are used together, the stunnel server does not correctly validate the client certificate, allowing a client with a certificate not signed by the right CA to access the service without being redirected to the specified redirect address.

Upstream 5.57 release patch: https://github.com/mtrojnar/stunnel/commit/ebad9ddc4efb2635f37174c9d800d06206f1edf9

Red Hat

Affected Software

6 affected componentsFixes available
redhat/stunnel<5.57
5.57
ubuntu/stunnel4<3:5.44-1ubuntu3+
3:5.44-1ubuntu3+
ubuntu/stunnel4<3:5.56-1ubuntu0.2
3:5.56-1ubuntu0.2
ubuntu/stunnel4<5.57
5.57
debian/stunnel4
3:5.56+dfsg-103:5.68-2+deb12u13:5.72-4
Stunnel Stunnel<5.57

Event History

Feb 23, 2021
CVE Published
via Ubuntu·12:00 AM
CVE Published
via MITRE·04:34 PM
Data Sourced
via MITRE·04:34 PM
DescriptionWeakness
Jul 18, 2024
Data Sourced
via Launchpad·09:37 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-20230?

CVE-2021-20230 has a medium severity rating due to improper validation of client certificates.

2

How do I fix CVE-2021-20230?

To fix CVE-2021-20230, upgrade stunnel to version 5.57 or later.

3

Which versions of stunnel are affected by CVE-2021-20230?

Versions of stunnel prior to 5.57 are affected by CVE-2021-20230.

4

What areas of stunnel are impacted by CVE-2021-20230?

CVE-2021-20230 impacts stunnel's client certificate validation when using both redirect and verifyChain options.

5

Is there a specific platform where CVE-2021-20230 occurs?

CVE-2021-20230 occurs in stunnel implementations that haven't been updated to version 5.57 or later across various Linux distributions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203