Home / Libspf2 Project / Libspf2 / CVE-2021-33913
CVE-2021-33913: is it exploited, and which versions of Libspf2 Project Libspf2 are affected and fixed?
CVE-2021-33913 is an out-of-bounds write (memory corruption) vulnerability in Libspf2 Project Libspf2. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 20:39 UTC). Affected: libspf2 before 1.2.11 (NVD). Fixed in 1.2.11 (NVD). Severity: Critical (9.8, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 20:39 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:51 UTC.
What is CVE-2021-33913?
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.
From the CVE record by mitre, last updated August 4, 2024, 00:05 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| libspf2 project | libspf2 | before 1.2.11 | application |
NVD analysis (status Modified), last modified June 17, 2026, 03:55 UTC.
How severe is CVE-2021-33913?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 9.3 | CVSS 2.0 | AV:N/AC:M/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-33913 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 10.3% probability of exploitation activity in the next 30 days, percentile 95.8 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-787 Out-of-bounds Write
Where are the vendor advisories and references?
- https://github.com/shevek/libspf2/tree/8131fe140704eaae695e76b5cd09e39bd1dd220b
- https://nathanielbennett.com/blog/libspf2-cve-jan-2022-disclosure
- [debian-lts-announce] 20220121 [SECURITY] [DLA 2890-1] libspf2 security update mailing-list
- GLSA-202401-22 vendor-advisory
When was it published, and where is the official record?
- Reserved
- June 7, 2021
- Published
- January 19, 2022, 00:00 UTC
- CVE record updated
- August 4, 2024, 00:05 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 03:55 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:51 UTC; KEV December 3, 2026, 20:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Libspf2?
- Jan 19, 2022CVE-2021-33912 Libspf2 Project Libspf2: out-of-bounds write (memory corruption)
Questions about CVE-2021-33913
Is CVE-2021-33913 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 20:39 UTC. FIRST's EPSS gives it a 10.3% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Libspf2 Project Libspf2 are affected by CVE-2021-33913?
libspf2 before 1.2.11, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2021-33913?
1.2.11, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-33913?
Critical (9.8, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-33913?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.