CVE-2021-33912

libspf2: libspf2 before 1.2.11 has a four-byte heap-based buffer overflow that might allow remote attackers to execute arbitra...

CVE-2021-33912 is fixed in 4 products on 1 platform, first by libmail-spf-xs-perl 1.2.10-7ubuntu0.18.04.1~esm1, released January 19, 2022. It is not reported as exploited. Patch Radar priority: Urgent.

Urgent
CVSS
9.8
critical
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0964
95th percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
libmail-spf-xs-perl · Ubuntu 18.04.6 LTS (bionic) 1.2.10-7ubuntu0.18.04.1~esm1 libmail-spf-xs-perl 1.2.10-7ubuntu0.18.04.1~esm1 Jan 19, 2022
libmail-spf-xs-perl · Ubuntu 20.04 LTS (focal) 1.2.10-7+deb9u2build0.20.04.1 libmail-spf-xs-perl 1.2.10-7+deb9u2build0.20.04.1 Jan 19, 2022
libspf2 · Debian 12.15 (bookworm) 1.2.10-7.1 DEBIAN-CVE-2021-33912 Jan 19, 2022
libspf2 · Debian 13.5 (trixie) 1.2.10-7.1 DEBIAN-CVE-2021-33912 Jan 19, 2022
libspf2 · Debian 14 1.2.10-7.1 DEBIAN-CVE-2021-33912 Jan 19, 2022
libspf2-2 · Ubuntu 18.04.6 LTS (bionic) 1.2.10-7ubuntu0.18.04.1~esm1 libspf2-2 1.2.10-7ubuntu0.18.04.1~esm1 Jan 19, 2022
libspf2-2 · Ubuntu 20.04 LTS (focal) 1.2.10-7+deb9u2build0.20.04.1 libspf2-2 1.2.10-7+deb9u2build0.20.04.1 Jan 19, 2022
spfquery · Ubuntu 18.04.6 LTS (bionic) 1.2.10-7ubuntu0.18.04.1~esm1 spfquery 1.2.10-7ubuntu0.18.04.1~esm1 Jan 19, 2022
spfquery · Ubuntu 20.04 LTS (focal) 1.2.10-7+deb9u2build0.20.04.1 spfquery 1.2.10-7+deb9u2build0.20.04.1 Jan 19, 2022

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.