{"api_version":"1","generated_at":"2026-04-22T23:31:24+00:00","cve":"CVE-2021-20230","urls":{"html":"https://cve.report/CVE-2021-20230","api":"https://cve.report/api/cve/CVE-2021-20230.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-20230","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-20230"},"summary":{"title":"CVE-2021-20230","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.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2021-02-23 17:15:00","updated_at":"2022-06-01 18:05:00"},"problem_types":["CWE-295"],"metrics":[],"references":[{"url":"https://security.gentoo.org/glsa/202105-02","name":"GLSA-202105-02","refsource":"GENTOO","tags":[],"title":"stunnel: Improper certificate validation (GLSA 202105-02) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1925226","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1925226","refsource":"MISC","tags":["Issue Tracking","Third Party Advisory"],"title":"1925226 – (CVE-2021-20230) CVE-2021-20230 stunnel: client certificate not correctly verified when redirect and verifyChain options are used","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/mtrojnar/stunnel/commit/ebad9ddc4efb2635f37174c9d800d06206f1edf9","name":"https://github.com/mtrojnar/stunnel/commit/ebad9ddc4efb2635f37174c9d800d06206f1edf9","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"stunnel-5.57 · mtrojnar/stunnel@ebad9dd · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-20230","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20230","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"20230","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"stunnel","cpe5":"stunnel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"20230","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"stunnel","cpe5":"stunnel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-20230","qid":"174790","title":"SUSE Enterprise Linux Security update for stunnel (SUSE-SU-2021:0772-1)"},{"cve":"CVE-2021-20230","qid":"174973","title":"SUSE Enterprise Linux Security Update for stunnel (SUSE-SU-2021:1465-1)"},{"cve":"CVE-2021-20230","qid":"179817","title":"Debian Security Update for stunnel4 (CVE-2021-20230)"},{"cve":"CVE-2021-20230","qid":"296059","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 36.0.1.101.2 Missing (CPUJUL2021)"},{"cve":"CVE-2021-20230","qid":"376189","title":"Stunnel Improper Certificate Validation Vulnerability"},{"cve":"CVE-2021-20230","qid":"377138","title":"Alibaba Cloud Linux Security Update for stunnel (ALINUX3-SA-2021:0011)"},{"cve":"CVE-2021-20230","qid":"670335","title":"EulerOS Security Update for stunnel (EulerOS-SA-2021-1889)"},{"cve":"CVE-2021-20230","qid":"710113","title":"Gentoo Linux stunnel Improper certificate validation vulnerability (GLSA 202105-02)"},{"cve":"CVE-2021-20230","qid":"750322","title":"OpenSUSE Security Update for stunnel (openSUSE-SU-2021:0409-1)"},{"cve":"CVE-2021-20230","qid":"901597","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for stunnel (7375)"},{"cve":"CVE-2021-20230","qid":"907275","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for stunnel (7375-1)"},{"cve":"CVE-2021-20230","qid":"940001","title":"AlmaLinux Security Update for stunnel (ALSA-2021:0618)"},{"cve":"CVE-2021-20230","qid":"960686","title":"Rocky Linux Security Update for stunnel (RLSA-2021:0618)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-20230","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"stunnel","version":{"version_data":[{"version_value":"stunnel 5.57"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-295"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1925226","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1925226"},{"refsource":"MISC","name":"https://github.com/mtrojnar/stunnel/commit/ebad9ddc4efb2635f37174c9d800d06206f1edf9","url":"https://github.com/mtrojnar/stunnel/commit/ebad9ddc4efb2635f37174c9d800d06206f1edf9"},{"refsource":"GENTOO","name":"GLSA-202105-02","url":"https://security.gentoo.org/glsa/202105-02"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]}},"nvd":{"publishedDate":"2021-02-23 17:15:00","lastModifiedDate":"2022-06-01 18:05:00","problem_types":["CWE-295"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:stunnel:stunnel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.57","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"20230","Ordinal":"194271","Title":"CVE-2021-20230","CVE":"CVE-2021-20230","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"20230","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"20230","Ordinal":"2","NoteData":"2021-02-23","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"20230","Ordinal":"3","NoteData":"2021-05-26","Type":"Other","Title":"Modified"}]}}}