Out-of-bounds Write Affecting libspf2 package, versions <1.2.10-7.1


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
3.56% (92nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-LIBSPF2-2347974
  • published20 Jan 2022
  • disclosed19 Jan 2022

Introduced: 19 Jan 2022

CVE-2021-33912  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Debian:unstable libspf2 to version 1.2.10-7.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libspf2 package and not the libspf2 package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.

CVSS Scores

version 3.1