CVE-2021-33913

Summary

CVECVE-2021-33913
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-01-19 18:15:00 UTC
Updated2024-01-15 17:15:00 UTC
Descriptionlibspf2 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.

Risk And Classification

Problem Types: CWE-787

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Libspf2 Project Libspf2 All All All All

References

ReferenceSourceLinkTags
CVE-2021-33912 and CVE-2021-33913: Heap overflows in email validation library LibSPF2 | Nathaniel Bennett MISC nathanielbennett.com
GitHub - shevek/libspf2 at 8131fe140704eaae695e76b5cd09e39bd1dd220b MISC github.com
libspf2: Multiple vulnerabilities (GLSA 202401-22) — Gentoo security security.gentoo.org
[SECURITY] [DLA 2890-1] libspf2 security update MLIST lists.debian.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 179014 Debian Security Update for libspf2 (DLA 2890-1)
  • 179714 Debian Security Update for libspf2 (CVE-2021-33913)
  • 200049 Ubuntu Security Notification for Libspf2 Vulnerabilities (USN-6584-1)
  • 200128 Ubuntu Security Notification for Libspf2 Vulnerabilities (USN-6584-2)
  • 502222 Alpine Linux Security Update for libspf2
  • 503678 Alpine Linux Security Update for libspf2
  • 505886 Alpine Linux Security Update for libspf2
  • 710839 Gentoo Linux libspf2 Multiple Vulnerabilities (GLSA 202401-22)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report