{
  "id": "CVE-2020-7247",
  "url": "https://poc.griffinguard.io/cve/CVE-2020-7247",
  "published_at": "2020-01-29T15:53:18Z",
  "title": "OpenSMTPD Remote Code Execution Vulnerability",
  "vendor": "OpenBSD",
  "product": "OpenSMTPD",
  "cvss": {
    "score": 9.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2022-03-25",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 786
  },
  "first_poc": {
    "created_at": "2020-01-29T11:10:43Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": -0.2,
    "source": "metasploit",
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/smtp/opensmtpd_mail_from_rce.rb"
  },
  "poc_repo_count": 11,
  "exploit_count": 5,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-755",
  "cvss_by_source": {
    "cisa-adp": 9.8
  },
  "repos": [
    {
      "repo": "gatariee/CVE-2020-7247",
      "url": "https://github.com/gatariee/CVE-2020-7247",
      "created_at": null,
      "first_seen_at": "2026-11-14T23:12:49.679Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "FiroSolutions/cve-2020-7247-exploit",
      "url": "https://github.com/FiroSolutions/cve-2020-7247-exploit",
      "created_at": "2020-01-30T19:29:27Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 25,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-09-20T07:30:24Z"
    },
    {
      "repo": "superzerosec/cve-2020-7247",
      "url": "https://github.com/superzerosec/cve-2020-7247",
      "created_at": "2020-02-17T03:28:09Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 4,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-11-12T01:31:46Z"
    },
    {
      "repo": "r0lh/CVE-2020-7247",
      "url": "https://github.com/r0lh/CVE-2020-7247",
      "created_at": "2020-02-18T10:52:38Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 5,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-06-11T08:06:33Z"
    },
    {
      "repo": "G01d3nW01f/SMTPython",
      "url": "https://github.com/G01d3nW01f/SMTPython",
      "created_at": "2021-02-02T12:39:15Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-12-11T14:29:14Z"
    },
    {
      "repo": "Ki11i0n4ir3/SMTPython",
      "url": "https://github.com/Ki11i0n4ir3/SMTPython",
      "created_at": "2021-02-02T12:39:15Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-12-11T14:29:14Z"
    },
    {
      "repo": "QTranspose/CVE-2020-7247-exploit",
      "url": "https://github.com/QTranspose/CVE-2020-7247-exploit",
      "created_at": "2021-02-13T06:57:47Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 11,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-08-18T13:14:49Z"
    },
    {
      "repo": "bytescrappers/CVE-2020-7247",
      "url": "https://github.com/bytescrappers/CVE-2020-7247",
      "created_at": "2021-06-02T12:02:33Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2021-06-01T15:25:56Z"
    },
    {
      "repo": "f4T1H21/CVE-2020-7247",
      "url": "https://github.com/f4T1H21/CVE-2020-7247",
      "created_at": "2021-06-19T07:34:42Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-04-29T09:39:51Z"
    },
    {
      "repo": "SimonSchoeni/CVE-2020-7247-POC",
      "url": "https://github.com/SimonSchoeni/CVE-2020-7247-POC",
      "created_at": "2021-11-26T17:28:56Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-03-27T16:08:49Z"
    },
    {
      "repo": "presentdaypresenttime/shai_hulud",
      "url": "https://github.com/presentdaypresenttime/shai_hulud",
      "created_at": "2022-02-07T10:59:36Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 2,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-10-20T09:54:45Z"
    },
    {
      "repo": "SrMeirins/HackingVault",
      "url": "https://github.com/SrMeirins/HackingVault",
      "created_at": "2025-02-05T09:43:26Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-12-08T15:19:19Z"
    },
    {
      "repo": "minhluannguyen/CVE-2020-7247-reproducer",
      "url": "https://github.com/minhluannguyen/CVE-2020-7247-reproducer",
      "created_at": "2025-03-20T08:33:30Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-04-23T15:06:02Z"
    },
    {
      "repo": "solmin111/OpenSMTPD-CVE-2020-7247-",
      "url": "https://github.com/solmin111/OpenSMTPD-CVE-2020-7247-",
      "created_at": "2026-06-28T15:43:18Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-04-07T14:29:38Z"
    },
    {
      "repo": "CyberCTF/vulhub-opensmtpd-cve-2020-7247",
      "url": "https://github.com/CyberCTF/vulhub-opensmtpd-cve-2020-7247",
      "created_at": "2026-10-08T21:31:20Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "no network code found (normal for a local exploit)"
      ],
      "status": "analyzed",
      "owner_created_at": "2024-12-01T11:12:42Z"
    }
  ],
  "remediation": null,
  "exploit_refs": [
    {
      "url": "https://www.exploit-db.com/exploits/47984",
      "source": "exploitdb",
      "title": "OpenSMTPD 6.6.1 - Remote Code Execution",
      "published_at": "2020-01-30T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://www.exploit-db.com/exploits/48038",
      "source": "exploitdb",
      "title": "OpenSMTPD - MAIL FROM Remote Code Execution (Metasploit)",
      "published_at": "2020-02-10T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://www.exploit-db.com/exploits/48051",
      "source": "exploitdb",
      "title": "OpenSMTPD 6.4.0 \u003c 6.6.1 - Local Privilege Escalation + Remote Code Execution",
      "published_at": "2020-02-11T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/smtp/opensmtpd_mail_from_rce.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: OpenSMTPD MAIL FROM Remote Code Execution (exploit/unix/smtp/opensmtpd_mail_from_rce)",
      "published_at": "2020-01-29T11:10:43Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/javascript/cves/2020/CVE-2020-7247.yaml",
      "source": "nuclei",
      "title": "nuclei template: OpenSMTPD 6.4.0-6.6.1 - Remote Code Execution",
      "published_at": "2024-03-27T06:37:48Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
