CVE-2021-20230
n/a stunnel: Improper Certificate Validation
Check your servers for CVE-2021-20230
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-20230 affects stunnel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 1.14%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 67.6% of all scored CVEs. Scores of 2 Dec 2026.
Weakness
- CWE-295 Improper Certificate Validation
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
stunnel
n/a
|
affected stunnel 5.57
|
Is my server affected?
Find the installed version of stunnel and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i stunnel
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-20230 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-20230RHEL, Rocky, Alma, Fedora
rpm -q stunnel
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-20230Alpine
apk list --installed | grep -i stunnelWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-20230
trivy image --scanners vuln IMAGE | grep CVE-2021-20230
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- GLSA-202105-02 security.gentoo.org · vendor advisory
Other references
- https://bugzilla.redhat.com/show_bug.cgi?id=1925226 bugzilla.redhat.com
- https://github.com/mtrojnar/stunnel/commit/ebad9ddc4efb2635f37174c9d800d06206f1edf9 github.com
Source: the record CVE-2021-20230 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse