libspf2 before 1.2.11 has a heap-based buffer overflow that might allow remote attackers…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-787 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:libspf2_project:libspf2:*:*:*:*:*:*:*:* | before 1.2.11 | Vulnerable | Libspf2 Project |
- cpe:2.3:a:libspf2_project:libspf2:*:*:*:*:*:*:*:* Versions before 1.2.11 Vulnerable ·Libspf2 Project
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2021-33913
- 2026-10-03 Alias added: GHSA-7659-433m-4fhx
References
More Libspf2 Project Libspf2 vulnerabilities
- TI-2021-13221 libspf2 before 1.2.11 has a four-byte heap-based buffer overflow that might allow remote… CVSS 3.1CRITICAL 9.8
- TI-2023-22486 Integer underflow in Exim libspf2 CVSS 3.1HIGH 8.8
Sources
- CVE-2021-33913 · CVE Program
- CVE-2021-33913 · NVD
- FIRST EPSS
- GHSA-7659-433m-4fhx · GitHub Advisory Database · CC BY 4.0
- CVE-2021-33913 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences