{"schemaVersion":3,"id":"CVE-2017-16943","aliases":["UBUNTU-CVE-2017-16943","DEBIAN-CVE-2017-16943"],"status":"published","duplicateOf":null,"title":null,"description":"The receive_msg function in receive.c in the SMTP daemon in Exim 4.88 and 4.89 allows remote attackers to execute arbitrary code or cause a denial of service (use-after-free) via vectors involving BDAT commands.","dates":{"published":"2017-11-25T17:00:00.000Z","modified":"2024-08-05T20:43:59.963Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.0/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":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.0/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.0","versionLabel":"v3.0","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true}]},"epss":{"probability":0.47149,"percentile":0.98826,"severity":"high","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.44399999999999995,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.46705},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.43646,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.47149,"percentile":0.98826}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.43646,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.46705,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.47149,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.47149,"percentile":0.98826}]},"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":"GITHUB_LETUSFSCK_POC-EXPLOIT-MIRROR","name":"Poc Exploit Mirror","source":"github","url":"https://github.com/LetUsFsck/PoC-Exploit-Mirror/tree/master/CVE-2017-16944","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_3EF0B9EB014DCC74","name":"Exploit Reference (bugs.exim.org)","source":"reference","url":"https://bugs.exim.org/show_bug.cgi?id=2199","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"debian","product":"exim4","name":"exim4","label":"exim4","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/exim4","purlType":"deb","versions":[{"text":"< 4.89-12","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.89-12","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"exim4","name":"exim4","label":"exim4","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/exim4","purlType":"deb","versions":[{"text":"< 4.82-3ubuntu2.3","noFixRecorded":false,"fixedIn":null},{"text":"< 4.86.2-2ubuntu2.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.82-3ubuntu2.3 | < 4.86.2-2ubuntu2.2","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}],"versionsText":"9.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":"exim","product":"exim","name":"Exim","label":"exim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.88","noFixRecorded":false,"fixedIn":null},{"text":"4.89","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.88 | 4.89","eol":{"isEol":true,"eolDate":"2017-03-07T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"4.88","label":"4.88","eolFrom":"2017-03-07T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"4.88"},"product":{"name":"exim","label":"Exim","category":"server-app"}},"hubHref":"/vendor/exim/exim"}],"affectedCount":4,"eol":{"hasEol":true,"count":2},"references":[{"url":"http://www.securitytracker.com/id/1039872","label":"www.securitytracker.com/id/1039872","hostname":"www.securitytracker.com","tags":["VDB Entry","X Refsource SECTRACK","Third Party Advisory"]},{"url":"https://lists.exim.org/lurker/message/20171125.034842.d1d75cac.en.html","label":"lists.exim.org/lurker/message/20171125.034842.d1d75cac.en.html","hostname":"lists.exim.org","tags":["X Refsource MISC","Mailing List","REPORT"]},{"url":"https://git.exim.org/exim.git/commit/4090d62a4b25782129cc1643596dc2f6e8f63bde","label":"git.exim.org/exim.git/commit/4090d62a4b25782129cc1643596dc2f6e8f63bde","hostname":"git.exim.org","tags":["X Refsource MISC","Patch"]},{"url":"http://openwall.com/lists/oss-security/2017/11/25/3","label":"openwall.com/lists/oss-security/2017/11/25/3","hostname":"openwall.com","tags":["X Refsource MISC","Mailing List"]},{"url":"https://github.com/LetUsFsck/PoC-Exploit-Mirror/tree/master/CVE-2017-16944","label":"github.com/LetUsFsck/PoC-Exploit-Mirror/tree/master/CVE-2017-16944","hostname":"github.com","tags":["X Refsource MISC","Exploit"]},{"url":"http://openwall.com/lists/oss-security/2017/11/25/1","label":"openwall.com/lists/oss-security/2017/11/25/1","hostname":"openwall.com","tags":["X Refsource MISC","Mailing List"]},{"url":"https://git.exim.org/exim.git/commitdiff/4e6ae6235c68de243b1c2419027472d7659aa2b4","label":"git.exim.org/exim.git/commitdiff/4e6ae6235c68de243b1c2419027472d7659aa2b4","hostname":"git.exim.org","tags":["X Refsource MISC","Patch"]},{"url":"http://openwall.com/lists/oss-security/2017/11/25/2","label":"openwall.com/lists/oss-security/2017/11/25/2","hostname":"openwall.com","tags":["X Refsource MISC","Mailing List"]},{"url":"https://www.debian.org/security/2017/dsa-4053","label":"www.debian.org/security/2017/dsa-4053","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"https://bugs.exim.org/show_bug.cgi?id=2199","label":"bugs.exim.org/show_bug.cgi?id=2199","hostname":"bugs.exim.org","tags":["X Refsource MISC","Exploit","Issue Tracking"]},{"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"]},{"url":"https://ubuntu.com/security/CVE-2017-16943","label":"ubuntu.com/security/CVE-2017-16943","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-3493-1","label":"ubuntu.com/security/notices/USN-3493-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-16943","label":"www.cve.org/CVERecord?id=CVE-2017-16943","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-16943","label":"security-tracker.debian.org/tracker/CVE-2017-16943","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-4053-1","OPENSUSE-SU-2021:0677-1","OPENSUSE-SU-2021:0753-1","OPENSUSE-SU-2021:0754-1","OPENSUSE-SU-2024:10746-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:0677-1","OPENSUSE-SU-2021:0753-1","OPENSUSE-SU-2021:0754-1","OPENSUSE-SU-2024:10746-1"]},"timeline":[{"kind":"published","date":"2017-11-25T17:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T20:43:59.963Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T07:01:12.664Z","stale":false,"partial":false}}