CVE-2021-20314
Vulnerability in n/a libspf2
Check your servers for CVE-2021-20314
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-20314 affects libspf2, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Stack buffer overflow in libspf2 versions below 1.2.11 when processing certain SPF macros can lead to Denial of service and potentially code execution via malicious crafted SPF explanation messages.
Exploitation
EPSS 2.83%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 87.0% of all scored CVEs. Scores of 2 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
libspf2
n/a
|
affected 1.2.11
|
Is my server affected?
Find the installed version of libspf2 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 libspf2
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-20314 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-20314RHEL, Rocky, Alma, Fedora
rpm -q libspf2
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-20314Alpine
apk list --installed | grep -i libspf2With 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-20314
trivy image --scanners vuln IMAGE | grep CVE-2021-20314
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
- FEDORA-2021-aa8637c985 lists.fedoraproject.org · vendor advisory
- FEDORA-2021-994751581f lists.fedoraproject.org · vendor advisory
- FEDORA-2021-044be3d54e lists.fedoraproject.org · vendor advisory
Other references
- https://bugzilla.redhat.com/show_bug.cgi?id=1993070 bugzilla.redhat.com
- https://security.gentoo.org/glsa/202401-22 security.gentoo.org
Source: the record CVE-2021-20314 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse