Vulnerabilities / CVE-2021-20314

critical

CVE-2021-20314

Stack buffer overflow in libspf2 versions below 1.2.11 when processing ...

Published Modified CWE 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.11libspf21.2.10-r5
alpine 3.12libspf21.2.10-r5
alpine 3.13libspf21.2.10-r5
alpine 3.14libspf21.2.10-r5
alpine 3.15libspf21.2.10-r5
alpine 3.16libspf21.2.10-r5
alpine 3.17libspf21.2.10-r5
alpine 3.18libspf21.2.10-r5
alpine 3.19libspf21.2.10-r5
alpine 3.20libspf21.2.10-r5
alpine 3.21libspf21.2.10-r5
alpine 3.22libspf21.2.10-r5
Show all 26 entries from 26 sources
SourcePackageFixed in
alpine 3.11libspf21.2.10-r5
alpine 3.12libspf21.2.10-r5
alpine 3.13libspf21.2.10-r5
alpine 3.14libspf21.2.10-r5
alpine 3.15libspf21.2.10-r5
alpine 3.16libspf21.2.10-r5
alpine 3.17libspf21.2.10-r5
alpine 3.18libspf21.2.10-r5
alpine 3.19libspf21.2.10-r5
alpine 3.20libspf21.2.10-r5
alpine 3.21libspf21.2.10-r5
alpine 3.22libspf21.2.10-r5
alpine 3.23libspf21.2.11-r4
alpine 3.24libspf21.2.11-r4
alpine edgelibspf21.2.11-r4
debian 10libspf21.2.10-7.1~deb10u1
debian 11libspf21.2.10-7.1~deb11u1
debian 12libspf21.2.10-7.1
debian 13libspf21.2.10-7.1
debian 14libspf21.2.10-7.1
debian 9libspf21.2.10-7+deb9u1
echolibspf21.2.10-7.1
ubuntu 16.04-ESMlibspf21.2.10-6ubuntu0.1~esm1
ubuntu 18.04-ESMlibspf21.2.10-7ubuntu0.18.04.1~esm1
ubuntu 20.04libspf21.2.10-7+deb9u2build0.20.04.1
ubuntu 20.04-ESMlibspf21.2.10-7+deb9u2build0.20.04.1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.