{"schemaVersion":3,"id":"CVE-2018-7445","aliases":[],"status":"published","duplicateOf":null,"title":"MikroTik RouterOS Stack-Based Buffer Overflow Vulnerability","description":"A buffer overflow was found in the MikroTik RouterOS SMB service when processing NetBIOS session request messages. Remote attackers with access to the service can exploit this vulnerability and gain code execution on the system. The overflow occurs before authentication takes place, so it is possible for an unauthenticated remote attacker to exploit it. All architectures and all devices running RouterOS before versions 6.41.3/6.42rc27 are vulnerable.","dates":{"published":"2018-03-19T21:00:00.000Z","modified":"2025-10-21T23:45:55.366Z","reserved":null,"kevAdded":["2022-09-08T00:00:00.000Z"],"kevDue":["2022-09-29T00:00:00.000Z"]},"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":"CVE.org","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":"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.60809,"percentile":0.99146,"severity":"critical","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.60809},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.60809,"percentile":0.99146}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.60809,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.60809,"percentile":0.99146}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2022-09-08T00:00:00.000Z","dueDate":"2022-09-29T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"MikroTik RouterOS Stack-Based Buffer Overflow Vulnerability","description":"In MikroTik RouterOS, a stack-based buffer overflow occurs when processing NetBIOS session request messages. Remote attackers with access to the service can exploit this vulnerability and gain code execution on the system.","notes":[{"type":"text","value":"https://www.coresecurity.com/core-labs/advisories/mikrotik-routeros-smb-buffer-overflow#vendor_update, https://mikrotik.com/download"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2018-7445","label":"nvd.nist.gov/vuln/detail/CVE-2018-7445"}],"vendor":"MikroTik","product":"RouterOS","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}],"listedCount":1,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":true,"entry":{"source":"cisa","sourceLabel":"CISA","dateAdded":"2022-09-08T00:00:00.000Z","dueDate":"2022-09-29T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"MikroTik RouterOS Stack-Based Buffer Overflow Vulnerability","description":"In MikroTik RouterOS, a stack-based buffer overflow occurs when processing NetBIOS session request messages. Remote attackers with access to the service can exploit this vulnerability and gain code execution on the system.","notes":[{"type":"text","value":"https://www.coresecurity.com/core-labs/advisories/mikrotik-routeros-smb-buffer-overflow#vendor_update, https://mikrotik.com/download"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2018-7445","label":"nvd.nist.gov/vuln/detail/CVE-2018-7445"}],"vendor":"MikroTik","product":"RouterOS","ransomware":false,"ransomwareUse":"Unknown","exploitationType":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_9DC8E4E542B01512","name":"Exploit Reference (seclists.org)","source":"reference","url":"http://seclists.org/fulldisclosure/2018/Mar/38","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_7A8399C045340FA5","name":"Exploit Reference (coresecurity.com)","source":"reference","url":"https://www.coresecurity.com/advisories/mikrotik-routeros-smb-buffer-overflow","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"44290","name":"MikroTik RouterOS < 6.41.3/6.42rc27 - SMB Buffer Overflow","source":"exploit-database","url":"https://www.exploit-db.com/exploits/44290","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"remote","platforms":["hardware"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"remote","platform":"hardware","file":"exploits/hardware/remote/44290.py","codes":["CVE-2018-7445"]},"metasploit":null}],"exploitCount":3,"weaknesses":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"}],"affected":[{"vendor":"mikrotik","product":"routeros","name":"RouterOS","label":"routeros","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 6.41.3","noFixRecorded":false,"fixedIn":null},{"text":"6.42:rc11","noFixRecorded":false,"fixedIn":null},{"text":"6.42:rc12","noFixRecorded":false,"fixedIn":null},{"text":"6.42:rc14","noFixRecorded":false,"fixedIn":null},{"text":"6.42:rc15","noFixRecorded":false,"fixedIn":null},{"text":"6.42:rc18","noFixRecorded":false,"fixedIn":null},{"text":"6.42:rc2","noFixRecorded":false,"fixedIn":null},{"text":"6.42:rc20","noFixRecorded":false,"fixedIn":null},{"text":"6.42:rc23","noFixRecorded":false,"fixedIn":null},{"text":"6.42:rc24","noFixRecorded":false,"fixedIn":null},{"text":"6.42:rc5","noFixRecorded":false,"fixedIn":null},{"text":"6.42:rc6","noFixRecorded":false,"fixedIn":null},{"text":"6.42:rc9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.41.3 | 6.42:rc11 | 6.42:rc12 | 6.42:rc14 | 6.42:rc15 | 6.42:rc18 | 6.42:rc2 | 6.42:rc20 | 6.42:rc23 | 6.42:rc24 | 6.42:rc5 | 6.42:rc6 | 6.42:rc9","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"routeros","label":"RouterOS","category":"os"}},"hubHref":"/vendor/mikrotik/routeros"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.securityfocus.com/bid/103427","label":"www.securityfocus.com/bid/103427","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2018/Mar/38","label":"seclists.org/fulldisclosure/2018/Mar/38","hostname":"seclists.org","tags":["Mailing List","X Refsource FULLDISC","Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://www.exploit-db.com/exploits/44290/","label":"www.exploit-db.com/exploits/44290/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry"]},{"url":"https://www.coresecurity.com/advisories/mikrotik-routeros-smb-buffer-overflow","label":"www.coresecurity.com/advisories/mikrotik-routeros-smb-buffer-overflow","hostname":"www.coresecurity.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-7445","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2018-7445","hostname":"www.cisa.gov","tags":["Government Resource","US Government Resource"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-03-19T21:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-added","date":"2022-09-08T00:00:00.000Z","label":"Added to CISA KEV","detail":"MikroTik RouterOS Stack-Based Buffer Overflow Vulnerability","source":"cisa"},{"kind":"kev-due","date":"2022-09-29T00:00:00.000Z","label":"CISA remediation due","detail":"Apply updates per vendor instructions.","source":"cisa"},{"kind":"modified","date":"2025-10-21T23:45:55.366Z","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-20T16:33:53.184Z","stale":false,"partial":false}}