# 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 v…

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.14%, higher than 67% of CVEs (2026-12-01)
- Published: 2021-02-23T16:34:39.000Z
- Modified: 2026-06-17T03:33:30.657Z
- Weaknesses: CWE-295
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- stunnel: stunnel 5.57
- stunnel stunnel: before 5.57

## Every score

- NVD: 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`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1925226> (issue-tracking, third-party-advisory)
- <https://github.com/mtrojnar/stunnel/commit/ebad9ddc4efb2635f37174c9d800d06206f1edf9> (patch, third-party-advisory)
- <https://security.gentoo.org/glsa/202105-02> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2021-20230](https://www.cve.org/CVERecord?id=CVE-2021-20230), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-20230](https://nvd.nist.gov/vuln/detail/CVE-2021-20230), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-20230 · Whole record: https://cve.day/CVE-2021-20230.json · Rebuilt by cve.day 2026-11-25T22:58:00.015Z
