CVE-2021-33913
highpriority · track · 42EPSS 0.096 · 95 %ileEUUSEPSS · scored 2026-10-27
libspf2 before 1.2.11 has a heap-based buffer overflow that might allow remote attackers to execute arbitrary code (via an unauthenticated e-mail message from anywhere on the Internet) with a crafted SPF DNS record, because of SPF_record_expand_data in spf_expand.c. The amount of overflowed data depends on the relationship between the length of an entire domain name and the length of its leftmost label. The vulnerable code may be part of the supply chain of a site's e-mail infrastructure (e.g., with additional configuration, Exim can use libspf2; the Postfix web site links to unofficial patches for use of libspf2 with Postfix; older versions of spfquery relied on libspf2) but most often is not.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 9–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (16)
External citations — patches, advisories, analysis.
- https://github.com/shevek/libspf2/tree/8131fe140704eaae695e76b5cd09e39bd1dd220bcnnvd
- https://lists.debian.org/debian-lts-announce/2022/01/msg00015.htmlcnnvd
- https://nathanielbennett.com/blog/libspf2-cve-jan-2022-disclosurecnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-33913cnnvd
- https://packetstormsecurity.com/files/176571/Gentoo-Linux-Security-Advisory-202401-22.htmlcnnvd
- https://security.gentoo.org/glsa/202401-22cnnvd
- https://vigilance.fr/vulnerability/libspf2-buffer-overflow-via-Domain-Label-Reversal-Truncation-37341cnnvd
- https://www.auscert.org.au/bulletins/ESB-2024.0279cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan