cbcvebase.
CVE-2021-33912
published 2022-01-19

CVE-2021-33912: 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…

PriorityP359critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
9.64%
94.9th 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.

Affected

11 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debianlibspf2< libspf2 1.2.10-7.1 (bookworm)libspf2 1.2.10-7.1 (bookworm)
libspf2libspf2>= 0 < 1.2.10-7.1~deb11u11.2.10-7.1~deb11u1
libspf2libspf2>= 0 < 1.2.10-7.11.2.10-7.1
libspf2libspf2>= 0 < 1.2.10-7.11.2.10-7.1
libspf2libspf2>= 0 < 1.2.10-7.11.2.10-7.1
libspf2libspf2>= 0 < 1.2.10-7+deb9u2build0.20.04.11.2.10-7+deb9u2build0.20.04.1
libspf2libspf2>= 0 < 1.2.10-6ubuntu0.1~esm21.2.10-6ubuntu0.1~esm2
libspf2libspf2>= 0 < 1.2.10-6ubuntu0.1~esm11.2.10-6ubuntu0.1~esm1
libspf2libspf2>= 0 < 1.2.10-7ubuntu0.18.04.1~esm11.2.10-7ubuntu0.18.04.1~esm1
libspf2_projectlibspf2< 1.2.111.2.11

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.09.3CRITICALAV:N/AC:M/Au:N/C:C/I:C/A:C
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_ubuntu9.8CRITICAL
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.