Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-12460

OpenDMARC through 1.3.2 and 1.4.x through 1.4.0-Beta1 has improper null termination in the function opendmarc_xml_parse that can result in a one-byte heap overflow in opendmarc_xml when parsing a specially crafted DMARC aggregate report. This can cause remote memory corruption when a '\0' byte overwrites the heap metadata of the next chunk and its PREV_INUSE flag.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-12460
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:41 UTC · Revision 1

Source evidence

CVE-2020-12460

core-osv · Original source

Published 27 Jul 2020, 23:15 UTC

OpenDMARC through 1.3.2 and 1.4.x through 1.4.0-Beta1 has improper null termination in the function opendmarc_xml_parse that can result in a one-byte heap overflow in opendmarc_xml when parsing a specially crafted DMARC aggregate report. This can cause remote memory corruption when a '\0' byte overwrites the heap metadata of the next chunk and its PREV_INUSE flag.

osv:CVE-2020-12460
Complete source record
{
  "id": "e0674f81e27e74f3b152ccc67f6cfd0f3598eee86b6f0eee3d57ad154aeefb80",
  "url": "https://osv.dev/vulnerability/CVE-2020-12460",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-12460",
    "summary": "OpenDMARC through 1.3.2 and 1.4.x through 1.4.0-Beta1 has improper null termination in the function opendmarc_xml_parse that can result in a one-byte heap overflow in opendmarc_xml when parsing a specially crafted DMARC aggregate report. This can cause remote memory corruption when a '\\0' byte overwrites the heap metadata of the next chunk and its PREV_INUSE flag.",
    "evidence": "osv:CVE-2020-12460",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2020-12460",
      "aliases": [
        "CVE-2020-12460"
      ],
      "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": [
            {
              "repo": "https://github.com/trusteddomainproject/opendmarc",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "0d65077648569076c103b73f30ca86c14e1811a5"
                },
                {
                  "introduced": "12d9064bef02f152df233fab2f4bd863f0c28820"
                },
                {
                  "last_affected": "363e4a82231b4366bdb92e72e612331ecda70c01"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:trusteddomain:opendmarc:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.3.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:trusteddomain:opendmarc:1.4.0:beta0:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.4.0-beta0"
                      },
                      {
                        "last_affected": "1.4.0-beta0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:trusteddomain:opendmarc:1.4.0:beta1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.4.0-beta1"
                      },
                      {
                        "last_affected": "1.4.0-beta1"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.4.0-beta0",
            "1.4.0-beta1",
            "rel-opendmarc-1-4-0-Beta0",
            "rel-opendmarc-1-3-2",
            "rel-opendmarc-1-4-0-Beta1",
            "rel-opendmarc-1-3-1",
            "rel-opendmarc-1-3-1-Beta1",
            "rel-opendmarc-1-3-1-Beta0",
            "rel-opendmarc-1-3-0",
            "rel-opendmarc-1-3-0-Beta4",
            "rel-opendmarc-1-3-0-Beta3",
            "rel-opendmarc-1-3-0-Beta0",
            "rel-opendmarc-1-3-0-Beta2",
            "rel-opendmarc-1-3-0-Beta1",
            "rel-opendmarc-1-2-1-Beta2",
            "rel-opendmarc-1-2-1-Beta1",
            "rel-opendmarc-1-2-1-Beta0",
            "draft-dmarc-base-03",
            "rel-opendmarc-1-2-0-Beta3",
            "rel-opendmarc-1-2-0",
            "rel-opendmarc-1-2-0-Beta2",
            "rel-opendmarc-1-1-2",
            "rel-opendmarc-1-1-1",
            "rel-opendmarc-1-1-0",
            "rel-opendmarc-1-1-0-Beta2",
            "rel-opendmarc-1-1-0-Beta1",
            "rel-opendmarc-1-1-0-Beta0",
            "draft-dmarc-base-00-03",
            "rel-opendmarc-1-0-1",
            "rel-opendmarc-1-0-0",
            "rel-opendmarc-1-0-0-Beta0",
            "rel-opendmarc-0-2-2",
            "rel-opendmarc-0-2-1",
            "rel-opendmarc-0-2-0",
            "rel-opendmarc-0-2-0-Beta3",
            "rel-opendmarc-0-2-0-Beta2",
            "rel-opendmarc-0-2-0-Beta1",
            "rel-opendmarc-0-2-0-Beta0",
            "rel-opendmarc-0-1-8",
            "rel-opendmarc-0-1-7",
            "rel-opendmarc-0-1-6",
            "rel-opendmarc-0-1-5",
            "rel-opendmarc-0-1-4",
            "rel-opendmarc-0-1-3",
            "rel-opendmarc-0-1-2",
            "rel-opendmarc-0-1-1",
            "rel-opendmarc-0-1-0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-12460.json"
          }
        }
      ],
      "modified": "2026-10-20T10:51:06.126913449Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2D4JGHMALEJEWWG56DKR5OZB22TK7W5B/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JHDKMCZGE3W4XBP76NLI2Q7IOZHXLD4A/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KBOGOQOK3TIWWJV66MW5YWNRJAFFYGR5/",
        "https://lists.debian.org/debian-lts-announce/2021/04/msg00026.html",
        "https://security.gentoo.org/glsa/202011-02",
        "https://sourceforge.net/projects/opendmarc/",
        "https://github.com/trusteddomainproject/OpenDMARC/issues/64"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "33"
                  },
                  {
                    "last_affected": "33"
                  },
                  {
                    "introduced": "34"
                  },
                  {
                    "last_affected": "34"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-12460",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 382471,
  "published_at": "2020-07-27T23:15:12.373+00:00"
}