{"schemaVersion":3,"id":"CVE-2020-8794","aliases":["UBUNTU-CVE-2020-8794","DEBIAN-CVE-2020-8794","DSA-4634-1"],"status":"published","duplicateOf":null,"title":null,"description":"OpenSMTPD before 6.6.4 allows remote code execution because of an out-of-bounds read in mta_io in mta_session.c for multi-line replies. Although this vulnerability affects the client side of OpenSMTPD, it is possible to attack a server because the server code launches the client code during bounce handling.","dates":{"published":"2020-02-25T16:38:07.000Z","modified":"2024-08-04T10:12:10.566Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":10,"severity":"high","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.889,"percentile":0.9978,"severity":"critical","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.889},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.889,"percentile":0.9978}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.889,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.889,"percentile":0.9978}]},"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_E485964AA2819458","name":"Exploit Reference (openwall.com)","source":"reference","url":"https://www.openwall.com/lists/oss-security/2020/02/24/5","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_74C19819FB2BE37D","name":"Exploit Reference (openwall.com)","source":"reference","url":"http://www.openwall.com/lists/oss-security/2020/02/26/1","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_8710BD68691C1D65","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/156633/OpenSMTPD-Out-Of-Bounds-Read-Local-Privilege-Escalation.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_22D02AB94209EBB2","name":"Exploit Reference (openwall.com)","source":"reference","url":"http://www.openwall.com/lists/oss-security/2021/05/04/7","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"48185","name":"OpenSMTPD - OOB Read Local Privilege Escalation (Metasploit)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/48185","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"local","platforms":["linux"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"local","platform":"linux","file":"exploits/linux/local/48185.rb","codes":["CVE-2020-8794"]},"metasploit":null},{"id":"48140","name":"OpenSMTPD < 6.6.3p1 - Local Privilege Escalation + Remote Code Execution","source":"exploit-database","url":"https://www.exploit-db.com/exploits/48140","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"remote","platforms":["openbsd"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"remote","platform":"openbsd","file":"exploits/openbsd/remote/48140.c","codes":["CVE-2020-8794"]},"metasploit":null},{"id":"MSF_EXPLOIT_UNIX_LOCAL_OPENSMTPD_OOB_READ_LPE","name":"OpenSMTPD OOB Read Local Privilege Escalation","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/unix/local/opensmtpd_oob_read_lpe.rb","maturity":"poc","reliabilityScore":0.3333333333333333,"verified":false,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/unix/local/opensmtpd_oob_read_lpe","rank":"200","rankName":"average","postAuth":false,"check":true,"stability":["crash-service-down"],"sideEffects":["ioc-in-logs"],"reliability":["repeatable-session"]}}],"exploitCount":7,"weaknesses":[{"id":"CWE-125","name":"Out-of-bounds Read","description":"The product reads data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/125.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},{"text":"< 6.0.2p1-2+deb9u3","noFixRecorded":false,"fixedIn":null},{"text":"< 6.0.3p1-5+deb10u4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.6.4p1-1 | < 6.0.2p1-2+deb9u3 | < 6.0.3p1-5+deb10u4","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":"< 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":"< 5.7.3p2-1ubuntu0.1~esm2 | < 6.0.3p1-1ubuntu0.2 | < 6.6.4p1-1","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.0","noFixRecorded":false,"fixedIn":null},{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0 | 10.0","eol":{"isEol":true,"eolDate":"2022-07-01T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"9","label":"9 (Stretch)","eolFrom":"2022-07-01T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"9.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"31","noFixRecorded":false,"fixedIn":null},{"text":"32","noFixRecorded":false,"fixedIn":null}],"versionsText":"31 | 32","eol":{"isEol":true,"eolDate":"2020-11-24T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"31","label":"31","eolFrom":"2020-11-24T00: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":6,"eol":{"hasEol":true,"count":3},"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":"https://www.openwall.com/lists/oss-security/2020/02/24/5","label":"www.openwall.com/lists/oss-security/2020/02/24/5","hostname":"www.openwall.com","tags":["X Refsource MISC","Exploit","Mailing List","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2020/02/26/1","label":"www.openwall.com/lists/oss-security/2020/02/26/1","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Exploit","Third Party Advisory"]},{"url":"https://www.debian.org/security/2020/dsa-4634","label":"www.debian.org/security/2020/dsa-4634","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2020/Feb/32","label":"seclists.org/fulldisclosure/2020/Feb/32","hostname":"seclists.org","tags":["Mailing List","X Refsource FULLDISC","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2020/03/01/1","label":"www.openwall.com/lists/oss-security/2020/03/01/1","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2020/03/01/2","label":"www.openwall.com/lists/oss-security/2020/03/01/2","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/156633/OpenSMTPD-Out-Of-Bounds-Read-Local-Privilege-Escalation.html","label":"packetstormsecurity.com/files/156633/OpenSMTPD-Out-Of-Bounds-Read-Local-Privilege-Escalation.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","VDB Entry"]},{"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","Patch","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2021/05/04/7","label":"www.openwall.com/lists/oss-security/2021/05/04/7","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Exploit","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-8794","label":"ubuntu.com/security/CVE-2020-8794","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-8794","label":"www.cve.org/CVERecord?id=CVE-2020-8794","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-8794","label":"security-tracker.debian.org/tracker/CVE-2020-8794","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:38:07.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T10:12:10.566Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":90,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T18:34:03.258Z","stale":false,"partial":false}}