Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-7247

smtp_mailaddr in smtp_session.c in OpenSMTPD 6.6, as used in OpenBSD 6.6 and other products, allows remote attackers to execute arbitrary commands as root via a crafted SMTP session, as demonstrated by shell metacharacters in a MAIL FROM field. This affects the "uncommented" default configuration. The issue exists because of an incorrect return value upon failure of input validation.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-7247
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 12:34 UTC · Revision 1

Source evidence

CVE-2020-7247

core-osv · Original source

Published 29 Jan 2020, 16:15 UTC

smtp_mailaddr in smtp_session.c in OpenSMTPD 6.6, as used in OpenBSD 6.6 and other products, allows remote attackers to execute arbitrary commands as root via a crafted SMTP session, as demonstrated by shell metacharacters in a MAIL FROM field. This affects the "uncommented" default configuration. The issue exists because of an incorrect return value upon failure of input validation.

osv:CVE-2020-7247
Complete source record
{
  "id": "c6656d4bd8042d09717884b6a6cd4f3d2006b6491976fed9b50c765eaf5d1556",
  "url": "https://osv.dev/vulnerability/CVE-2020-7247",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-7247",
    "summary": "smtp_mailaddr in smtp_session.c in OpenSMTPD 6.6, as used in OpenBSD 6.6 and other products, allows remote attackers to execute arbitrary commands as root via a crafted SMTP session, as demonstrated by shell metacharacters in a MAIL FROM field. This affects the \"uncommented\" default configuration. The issue exists because of an incorrect return value upon failure of input validation.",
    "evidence": "osv:CVE-2020-7247",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2020-7247",
      "aliases": [
        "CVE-2020-7247"
      ],
      "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/openbsd/src",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9dcfda045474d8903224d175907bfc29761dcb45"
                }
              ],
              "database_specific": {
                "source": "REFERENCES"
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7247.json",
            "vanir_signatures": [
              {
                "id": "CVE-2020-7247-1439a3f1",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "146958479146620846539546414962359749417",
                    "145804354479718942648469601420943504881",
                    "50866359851508526042491977853727488282",
                    "207177037661277233987566775936640071114",
                    "256454692897472681432177734798303501079",
                    "333579557200389565105833963070610317524",
                    "151964549180595370813610698553145369373",
                    "164042760444352403035042736481382744972",
                    "157779360057984813910033772595342582972",
                    "128067893643618281774819757885083806704",
                    "92864325646592764248353712193035702172",
                    "80056390225257104560475256115545599826",
                    "33586722040586328695311359832171375475",
                    "116533349178807723563281035809734756036",
                    "319598776653868670885544067356391424772",
                    "134792771592966456779690561609829698813",
                    "43264858727266399511000037806169423068"
                  ]
                },
                "source": "https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45",
                "target": {
                  "file": "usr.sbin/smtpd/smtp_session.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2020-7247-ba7fc816",
                "digest": {
                  "length": 902,
                  "function_hash": "81829132623799367638487615930946742238"
                },
                "source": "https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45",
                "target": {
                  "file": "usr.sbin/smtpd/smtp_session.c",
                  "function": "smtp_mailaddr"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-09T13:05:23Z"
          }
        }
      ],
      "modified": "2026-10-09T13:05:23.511535028Z",
      "provider": "osv",
      "references": [
        "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-7247",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/",
        "https://seclists.org/bugtraq/2020/Jan/51",
        "https://usn.ubuntu.com/4268-1/",
        "https://www.debian.org/security/2020/dsa-4611",
        "https://www.kb.cert.org/vuls/id/390745",
        "https://github.com/openbsd/src/commit/9dcfda045474d8903224d175907bfc29761dcb45",
        "https://www.openbsd.org/security.html"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*"
            ],
            "source": "CPE_STRING",
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "introduced": "18.04"
              },
              {
                "last_affected": "18.04"
              },
              {
                "introduced": "19.10"
              },
              {
                "last_affected": "19.10"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "source": "CPE_STRING",
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "introduced": "9.0"
              },
              {
                "last_affected": "9.0"
              },
              {
                "introduced": "10.0"
              },
              {
                "last_affected": "10.0"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*"
            ],
            "source": "CPE_STRING",
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "introduced": "32"
              },
              {
                "last_affected": "32"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:openbsd:opensmtpd:6.6:*:*:*:*:*:*:*"
            ],
            "source": "CPE_STRING",
            "vendor_product": "openbsd:opensmtpd",
            "extracted_events": [
              {
                "introduced": "6.6"
              },
              {
                "last_affected": "6.6"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-7247",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 120930,
  "published_at": "2020-01-29T16:15:12.897+00:00"
}