Out-of-bounds Write Affecting libspf2 package, versions <1.2.10-7ubuntu0.18.04.1~esm1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.17% (38th 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 Learn

Learn about Out-of-bounds Write vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UBUNTU1804-LIBSPF2-1540407
  • published22 Mar 2026
  • disclosed12 Aug 2021

Introduced: 12 Aug 2021

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

How to fix?

Upgrade Ubuntu:18.04 libspf2 to version 1.2.10-7ubuntu0.18.04.1~esm1 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 Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

Stack buffer overflow in libspf2 versions below 1.2.11 when processing certain SPF macros can lead to Denial of service and potentially code execution via malicious crafted SPF explanation messages.

CVSS Base Scores

version 3.1