CVEfocus › CVE database › CVE-2021-33912

CVE-2021-33912

CVSS 9.8 CriticalEPSS 10.3% (higher than 96% of CVEs)Published 2022-01-19Updated 2024-08-04Assigner: mitre

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.

What to do

Likely to be exploited: EPSS gives a 10% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

15Fixed
2Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04libspf2Not affected
vulnerable_code_not_present
Ubuntu 22.04libspf2Not affected
vulnerable_code_not_present
Ubuntu 20.04libspf2Fixed1.2.10-7+deb9u2build0.20.04.1UBUNTU-CVE-2021-33912
Ubuntu 18.04libspf2Fix pending1.2.10-7ubuntu0.18.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-33912
Ubuntu 16.04libspf2Fix pending1.2.10-6ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2021-33912
Debian 14libspf2Fixed1.2.10-7.1DEBIAN-CVE-2021-33912
Debian 13libspf2Fixed1.2.10-7.1DEBIAN-CVE-2021-33912
Debian 12libspf2Fixed1.2.10-7.1DEBIAN-CVE-2021-33912
Alpine Linux 3.24libspf2Fixed1.2.11-r0ALPINE-CVE-2021-33912
Alpine Linux 3.23libspf2Fixed1.2.11-r0ALPINE-CVE-2021-33912
Alpine Linux 3.22libspf2Fixed1.2.11-r0ALPINE-CVE-2021-33912
Alpine Linux 3.21libspf2Fixed1.2.11-r0ALPINE-CVE-2021-33912
Alpine Linux 3.20libspf2Fixed1.2.11-r0ALPINE-CVE-2021-33912
Alpine Linux 3.19libspf2Fixed1.2.11-r0ALPINE-CVE-2021-33912
Alpine Linux 3.18libspf2Fixed1.2.11-r0ALPINE-CVE-2021-33912
Alpine Linux 3.17libspf2Fixed1.2.11-r0ALPINE-CVE-2021-33912
Alpine Linux 3.16libspf2Fixed1.2.11-r0ALPINE-CVE-2021-33912
Alpine Linux 3.15libspf2Fixed1.2.11-r0ALPINE-CVE-2021-33912
Alpine Linux 3.14libspf2Fixed1.2.11-r0ALPINE-CVE-2021-33912

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.