{"schemaVersion":3,"id":"CVE-2020-8793","aliases":["UBUNTU-CVE-2020-8793","DEBIAN-CVE-2020-8793"],"status":"published","duplicateOf":null,"title":null,"description":"OpenSMTPD before 6.6.4 allows local users to read arbitrary files (e.g., on some Linux distributions) because of a combination of an untrusted search path in makemap.c and race conditions in the offline functionality in smtpd.c.","dates":{"published":"2020-02-25T16:22:02.000Z","modified":"2024-08-04T10:12:10.988Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.7,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":2.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":2.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.7,"severity":"medium","vector":"AV:L/AC:M/Au:N/C:C/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.009,"percentile":0.58987,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.009},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.009,"percentile":0.58987}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.009,"percentile":0.58987}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_BF6BC6917A9A6165","name":"Exploit Reference (openwall.com)","source":"reference","url":"http://www.openwall.com/lists/oss-security/2020/02/24/4","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"48139","name":"OpenSMTPD 6.6.3 - Arbitrary File Read","source":"exploit-database","url":"https://www.exploit-db.com/exploits/48139","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"remote","platforms":["linux"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"remote","platform":"linux","file":"exploits/linux/remote/48139.c","codes":["CVE-2020-8793"]},"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition","description":"The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/367.html"},{"id":"CWE-426","name":"Untrusted Search Path","description":"The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/426.html"}],"affected":[{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"18.04","noFixRecorded":false,"fixedIn":null},{"text":"19.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"18.04 | 19.10","eol":{"isEol":true,"eolDate":"2023-05-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"18.04","label":"18.04 'Bionic Beaver' (LTS)","eolFrom":"2023-05-31T00:00:00.000Z","isLts":true,"isMaintained":true,"latestVersion":"18.04.6"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"debian","product":"opensmtpd","name":"opensmtpd","label":"opensmtpd","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/opensmtpd","purlType":"deb","versions":[{"text":"< 6.6.4p1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.6.4p1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"opensmtpd","name":"opensmtpd","label":"opensmtpd","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/opensmtpd","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 5.7.3p2-1ubuntu0.1~esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 6.0.3p1-1ubuntu0.2","noFixRecorded":false,"fixedIn":null},{"text":"< 6.6.4p1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 5.7.3p2-1ubuntu0.1~esm2 | < 6.0.3p1-1ubuntu0.2 | < 6.6.4p1-1","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"32","noFixRecorded":false,"fixedIn":null}],"versionsText":"32","eol":{"isEol":true,"eolDate":"2021-05-25T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"32","label":"32","eolFrom":"2021-05-25T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"opensmtpd","product":"opensmtpd","name":"opensmtpd","label":"opensmtpd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 6.6.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.6.4","eol":null,"hubHref":"/vendor/opensmtpd/opensmtpd"}],"affectedCount":5,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://www.openbsd.org/security.html","label":"www.openbsd.org/security.html","hostname":"www.openbsd.org","tags":["X Refsource MISC","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2020/02/24/4","label":"www.openwall.com/lists/oss-security/2020/02/24/4","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Exploit","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2020/Feb/28","label":"seclists.org/fulldisclosure/2020/Feb/28","hostname":"seclists.org","tags":["Mailing List","X Refsource FULLDISC","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OPH4QU4DNVHA7ACFXMYFCEP5PSXXPN4E/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://usn.ubuntu.com/4294-1/","label":"usn.ubuntu.com/4294-1/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-8793","label":"ubuntu.com/security/CVE-2020-8793","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4294-1","label":"ubuntu.com/security/notices/USN-4294-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-4875-1","label":"ubuntu.com/security/notices/USN-4875-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-8793","label":"www.cve.org/CVERecord?id=CVE-2020-8793","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-8793","label":"security-tracker.debian.org/tracker/CVE-2020-8793","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["USN-4294-1","USN-4875-1"],"duplicates":[],"related":["USN-4294-1","USN-4875-1"]},"timeline":[{"kind":"published","date":"2020-02-25T16:22:02.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T10:12:10.988Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":29,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T23:25:34.017Z","stale":false,"partial":false}}