{"id":"CVE-2021-33913","published":"2022-01-19T00:00:00Z","modified":"2024-08-04T00:05:51Z","title":"libspf2 before 1.2.11 has a heap-based buffer overflow that might allow remote attackers to execute arbitrary code…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.10348,"percentile":0.95824,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/shevek/libspf2/tree/8131fe140704eaae695e76b5cd09e39bd1dd220b","tags":[]},{"url":"https://nathanielbennett.com/blog/libspf2-cve-jan-2022-disclosure","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2022/01/msg00015.html","tags":["mailing-list"]},{"url":"https://security.gentoo.org/glsa/202401-22","tags":["vendor-advisory"]}],"priority":{"score":19.2,"factors":[{"name":"EPSS percentile","points":19.16}]},"summary":{"text":"The libspf2 library before version 1.2.11 contains a heap-based buffer overflow in the SPF_record_expand_data function in spf_expand.c, which may also be reachable through components such as Exim and certain Postfix patches that use libspf2. An attacker can trigger the overflow remotely without authentication by sending an e-mail message with a crafted SPF DNS record, and the overflow may allow arbitrary code execution, though only in deployments where the vulnerable code is actually in the mail infrastructure's supply chain.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:52:18Z"},"euvd":{"id":"EUVD-2021-20585","exploited":false,"provenance":"source"}}