Skip to content
Heist/ feed
Back to feed
CriticalFix available

libspf2 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-20314

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.

Products
libspf2
Affected versions
Not specified
Fixed versions
1.2.10-7.1
CVEs
CVE-2021-20314
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:32 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-20314

core-osv · Original source

Published 12 Aug 2021, 15:15 UTC

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.

osv:DEBIAN-CVE-2021-20314

libspf2

Fixed versions: 1.2.10-7.1

libspf2

Fixed versions: 1.2.10-7.1

libspf2

Fixed versions: 1.2.10-7.1

Complete source record
{
  "id": "cc6f5cb26beb3f020d0e8bb715b0b36abc4535bd2b93fad7d44b044ee9674f2a",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-20314",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-20314",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2021-20314",
    "products": [
      {
        "name": {
          "value": "libspf2",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.2.10-7.1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libspf2",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.2.10-7.1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libspf2",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.2.10-7.1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2021-20314",
      "aliases": [
        "DEBIAN-CVE-2021-20314"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.2.10-7.1"
                }
              ]
            }
          ],
          "package": {
            "name": "libspf2",
            "purl": "pkg:deb/debian/libspf2?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-20314.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.2.10-7.1"
                }
              ]
            }
          ],
          "package": {
            "name": "libspf2",
            "purl": "pkg:deb/debian/libspf2?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-20314.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.2.10-7.1"
                }
              ]
            }
          ],
          "package": {
            "name": "libspf2",
            "purl": "pkg:deb/debian/libspf2?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-20314.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:24.710671166Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-20314"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-20314"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-20314",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 421411,
  "published_at": "2021-08-12T15:15:07.657+00:00"
}