# CVE-2021-20314: Stack buffer overflow in libspf2 versions below 1.2.11 when processing certain SPF macros can lead to Denial of service and potentially cod…

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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): 2.83%, higher than 87% of CVEs (2026-12-01)
- Published: 2021-08-12T14:37:09.000Z
- Modified: 2026-06-17T03:33:39.413Z
- Weaknesses: CWE-787
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- libspf2: 1.2.11
- libspf2 libspf2: before 1.2.11
- redhat enterprise_linux: 7.0
- fedoraproject fedora: 33; 34; 35

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1993070> (issue-tracking, patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CMSFT2NJDZ7PATRZSQPAOGSE7JD6ELOB/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GFXJRHPE5OSCPTNA3ZZ4ORDHT4JQH3Y4/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y6T4HYXXSUQCGJB2ES6X7Q74YYF7V7XU/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202401-22>

## Sources

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

---

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