CVE-2021-33912
Reported by mitre · Published January 19, 2022
libspf2 before 1.2.11 has a four-byte 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 incorrect sprintf usage in SPF_record_expand_data in spf_expand.c. 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.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| alpine | libspf2 | 0 |
| n/a | n/a | * |
Timeline
- Jan 19, 2022 CVE Published
- Jan 20, 2022 EPSS Score (30 in total, the first dated here)
- Aug 4, 2024 CVE Updated
- Mar 7, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 7, 2026 Security Advisory (4 in total, the first dated here)
- Jul 30, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-33912
vulnetix vdb fixes CVE-2021-33912
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-33912/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20220121 [SECURITY] [DLA 2890-1] libspf2 security update mailing-list
- GLSA-202401-22 vendor-advisory