CVE-2021-20230
CVE-2021-20230 is a high-severity vulnerability in Stunnel with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-295.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- CVSS v2: 5.0
- EPSS exploit prediction: 1% (69th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-295
- Affected product: Stunnel
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2021-20230?
- 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.
- How severe is CVE-2021-20230?
- CVE-2021-20230 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2021-20230 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (69th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-20230?
- CVE-2021-20230 affects Stunnel. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-20230?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2021-20230 published?
- CVE-2021-20230 was published on 2021-02-23 and last updated on 2026-06-17.
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1925226
- https://github.com/mtrojnar/stunnel/commit/ebad9ddc4efb2635f37174c9d800d06206f1edf9
- https://security.gentoo.org/glsa/202105-02
Affected products (1)
- cpe:2.3:a:stunnel:stunnel:*:*:*:*:*:*:*:*
More vulnerabilities in Stunnel
- CVE-2001-0060 — Critical (CVSS 10.0): Format string vulnerability in stunnel 3.8 and earlier allows attackers to execute arbitrary commands via a malformed…
- CVE-2011-2940 — Critical (CVSS 9.3): stunnel 4.40 and 4.41 might allow remote attackers to execute arbitrary code or cause a denial of service (heap memory…
- CVE-2002-0002 — High (CVSS 7.5): Format string vulnerability in stunnel before 3.22 when used in client mode for (1) smtp, (2) pop, or (3) nntp allows…
- CVE-2008-2400 — High (CVSS 7.2): Unspecified vulnerability in stunnel before 4.23, when running as a service on Windows, allows local users to gain…
- CVE-2008-2420 — Medium (CVSS 6.8): The OCSP functionality in stunnel before 4.24 does not properly search certificate revocation lists (CRL), which allows…
- CVE-2013-1762 — Medium (CVSS 6.6): stunnel 4.21 through 4.54, when CONNECT protocol negotiation and NTLM authentication are enabled, does not correctly…
Other CWE-295 (Improper Certificate Validation) vulnerabilities
- CVE-2026-75521 — Critical (CVSS 10.0): Miren Runtime provides the runtime component for the Miren application platform. Prior to 0.11.1, the QUIC/HTTP3 RPC…
- CVE-2026-112816 — Critical (CVSS 10.0): Improper certificate validation in the HTTPS listener in Canonical LXD 4.0.14, 5.0.10, 5.21.8, 6.9 before 4.0.15,…
- CVE-2026-111815 — Critical (CVSS 10.0): Apache Traffic Server can resume a TLS session across SNI virtual hosts without re-verifying a client certificate…
- CVE-2026-111814 — Critical (CVSS 10.0): Apache Traffic Server's default outbound session-sharing policy can reuse a pooled TLS session authenticated with one…
- CVE-2026-96207 — Critical (CVSS 10.0): Improper certificate validation in Microsoft Partner Center allows an unauthorized attacker to elevate privileges over…
- CVE-2026-58162 — Critical (CVSS 10.0): The Apache Traffic Server certifier plugin generates certificates based on attacker-controlled client SNI. This…
Browse all CWE-295 (Improper Certificate Validation) vulnerabilities →