CVE-2018-14847

CRITICAL(9.1)KEVLikely Exploited

MikroTik Router OS Directory Traversal Vulnerability

Description

CVE-2018-14847 is a critical-severity path traversal vulnerability in MikroTik RouterOS through version 6.42, exploitable through the WinBox management interface. The flaw allows unauthenticated remote attackers to read arbitrary files from the router's filesystem, and authenticated attackers to write arbitrary files, by leveraging directory traversal sequences in WinBox requests. This vulnerability is particularly dangerous because reading the router's user database file enables attackers to extract credentials and gain full administrative control. CISA has added CVE-2018-14847 to its Known Exploited Vulnerabilities catalog, and the EPSS score of 92.84% (99.76th percentile) indicates near-certain exploitation activity targeting MikroTik routers worldwide.

KEV Information

Vendor
MikroTik
Product
RouterOS
Date Added
December 1, 2021
Due Date
June 1, 2022
Required Action
Apply updates per vendor instructions.

CVSS Score

Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NOpen in Calculator
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
NONE
Exploitability Score
3.9
Impact Score
5.2

CWEs

Affected Products

VendorProductVersion
mikrotikrouteros<= 6.42

Multiple CVSS Assessments

Source: [email protected](Primary)
9.1
CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0(Secondary)
9.1
CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

References

Weakness Type

CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

In MikroTik RouterOS, path traversal manifests through the WinBox interface, which fails to properly sanitize file path parameters in management protocol requests. An attacker can use directory traversal sequences to escape the intended directory and access arbitrary files on the router's filesystem. This enables reading of sensitive files such as the user credential database, and for authenticated users, writing arbitrary files to gain persistent access or modify router configuration.

Learn more: CWE-22 — Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Impact Analysis

CVE-2018-14847 carries a CVSS 3.1 score of 9.1 (CRITICAL), reflecting an extremely severe and easily exploitable threat. The vulnerability is remotely exploitable over the network with low attack complexity, requires no authentication for file reading, and needs no user interaction. Successful exploitation severely compromises confidentiality and integrity, enabling attackers to read any file on the router including credential databases and configuration files, and to write arbitrary files that can modify router behavior. Although the availability impact is rated NONE in the CVSS vector, the practical impact extends far beyond the router itself, as compromised MikroTik devices have been weaponized for cryptojacking, traffic interception, and as pivot points for lateral movement into enterprise networks. With an EPSS score of 92.84%, this vulnerability is among the most actively exploited router vulnerabilities, affecting hundreds of thousands of internet-facing MikroTik devices.

Exploit Maturity

CVE-2018-14847 has an extensively developed and publicly available exploit ecosystem. Public exploit code is available through multiple sources including Exploit-DB, WinboxPoC on GitHub, WinboxExploit on GitHub, and Tenable's PoC repository. A detailed technical dissection is also available at n0p.me. CISA has confirmed active exploitation in the wild by listing this vulnerability in the Known Exploited Vulnerabilities catalog, with a remediation deadline of 2022-06-01. The EPSS score of 92.84% indicates near-certain exploitation activity, and this vulnerability has been widely used in mass scanning campaigns to compromise internet-facing MikroTik routers for cryptojacking and botnet operations.

Remediation

  1. Update MikroTik RouterOS to a version newer than 6.42 as directed by CISA KEV: Apply updates per vendor instructions. MikroTik released patches addressing this vulnerability, and all affected routers should be upgraded immediately.
  2. Verify all MikroTik RouterOS installations running version 6.42 or earlier have been updated. Use the MikroTik WinBox or SSH interface to check the current version and apply upgrades from the MikroTik download portal.
  3. Restrict access to the WinBox management interface (TCP port 8291) by configuring firewall rules to allow connections only from trusted management IP addresses. Never expose WinBox to the public internet.
  4. After updating, change all router user passwords immediately, as credentials may have been extracted via the file-read vulnerability prior to patching. Review the router's user list for unauthorized accounts and check the scheduled scripts for malicious entries.
  5. Monitor router logs and configurations for signs of compromise including unauthorized DNS settings changes (commonly used in DNS hijacking attacks), unexpected SOCKS proxy configurations, and scheduled scripts that download or execute external payloads.

Technical Details

CVE-2018-14847 exploits a directory traversal flaw in the WinBox management protocol of MikroTik RouterOS through version 6.42. The WinBox interface listens on TCP port 8291 and processes management requests that include file path parameters. The vulnerability exists because the request handler does not properly sanitize path components, allowing attackers to include directory traversal sequences that escape the intended directory scope. An unauthenticated attacker can read arbitrary files, most critically the user database file which contains router credentials in a recoverable format. The CVSS vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N) reflects that the attack requires no authentication and is trivially exploitable remotely, with high impact on both confidentiality (arbitrary file read) and integrity (authenticated file write). The two-stage attack pattern — first reading credentials without authentication, then using those credentials to write arbitrary files — effectively gives unauthenticated attackers full control over the router despite the nominal privilege requirement difference between read and write operations.

Frequently Asked Questions

Is CVE-2018-14847 being actively exploited?

Yes. CVE-2018-14847 is listed in the CISA Known Exploited Vulnerabilities catalog, confirming active exploitation in the wild. The EPSS score of 92.84% (99.76th percentile) places it among the most actively exploited vulnerabilities. Multiple mass scanning campaigns have targeted internet-facing MikroTik routers using publicly available exploit tools.

What products are affected by CVE-2018-14847?

CVE-2018-14847 affects MikroTik RouterOS version 6.42 and earlier. All MikroTik router models running affected firmware versions are vulnerable through the WinBox management interface on TCP port 8291.

How do I fix CVE-2018-14847?

Update MikroTik RouterOS to a version newer than 6.42. After updating, immediately change all router user passwords as they may have been compromised. Restrict WinBox access to trusted management networks using firewall rules and review router configurations for signs of compromise.

How severe is CVE-2018-14847?

CVE-2018-14847 has a CVSS 3.1 score of 9.1 (CRITICAL). It allows unauthenticated remote attackers to read any file on the router, including the credential database, effectively enabling full router compromise. The 92.84% EPSS score confirms it is one of the most exploited router vulnerabilities worldwide.

CVSS Score

9.1
CRITICAL(9.1)

EPSS Score

EPSS Score96.09%
EPSS Percentile99.9%

Dates

PublishedAugust 2, 2018
Last ModifiedJune 17, 2026
StatusAnalyzed
CVSS Versionv3.1

Need Help With Vulnerability Management?

Our security experts can help you prioritize and remediate vulnerabilities effectively.