Vulnerability · Published Jan 19, 2022 · Assigned by mitre

CVE-2021-33913

Critical 9.8

In plain English

A critical-severity security flaw in the libspf2 package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 9.6% (higher than 96% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)9.6%top 4.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20libspf21.2.11-r0ALPINE-CVE-2021-33913
Alpine:v3.21libspf21.2.11-r0ALPINE-CVE-2021-33913
Alpine:v3.22libspf21.2.11-r0ALPINE-CVE-2021-33913
Alpine:v3.23libspf21.2.11-r0ALPINE-CVE-2021-33913
Alpine:v3.24libspf21.2.11-r0ALPINE-CVE-2021-33913
Debian:12libspf21.2.10-7.1DEBIAN-CVE-2021-33913
Debian:13libspf21.2.10-7.1DEBIAN-CVE-2021-33913
Debian:14libspf21.2.10-7.1DEBIAN-CVE-2021-33913

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References