CVE DatabaseCVE-2018-14847
한국어 권고문 →
CVE-2018-148479.1/CRITICALCISA KEVCWE-22CWE-22

MikroTik RouterOS WinBox Directory Traversal Arbitrary File Read/Write Vulnerability (CVE-2018-14847) Analysis and Mitigation Guide

⚡ Jump to Patch
Affected Vendors
mikrotik
Affected Components
routeros
Published Date
2018-08-02
CVSS v3.1
9.1
CRITICAL
EPSS (30d)
96.0%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

MikroTik RouterOS versions 6.29 through 6.42 with the WinBox interface enabled

Impact

Unauthenticated remote attackers can read arbitrary system files (including user credentials), and authenticated attackers can write arbitrary files, leading to complete device compromise

Mitigation

Immediately upgrade RouterOS to patched versions (6.40.9, 6.42.1 or higher) and restrict or disable external WinBox port (8291) access

Affected Products & Version Scope

MikroTik RouterOS versions 6.29 through 6.42 with WinBox service enabled

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Upgrade RouterOS to the latest stable or long-term release where this vulnerability is patched. Execute the following commands via the RouterOS CLI:

bash
# Check for updates and install the latest long-term release
/system package update
set channel=long-term
check-for-updates
install

2. Temporary Workaround & Hardening Configuration

If an immediate upgrade is not feasible, disable the WinBox service or restrict access to trusted IP addresses only.

bash
# Option A: Completely disable the WinBox service
/ip service disable winbox

# Option B: Restrict WinBox access to a specific management subnet (e.g., 192.168.88.0/24)
/ip service set winbox address=192.168.88.0/24

# Option C: Drop all incoming WinBox traffic from the WAN interface
/ip firewall filter
add action=drop chain=input dst-port=8291 protocol=tcp in-interface-list=WAN comment='Block External WinBox Access'

3. Log Audit & IoC Verification Commands

Verify the current RouterOS version and inspect system logs for unauthorized access attempts or suspicious file operations.

bash
# 1. Print system resource and version details
/system resource print

# 2. Inspect system and account logs for suspicious WinBox activity
/log print where topics~'system' or topics~'account'
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
NordLayer / Zero-Trust Network Access
Disable public internet access to the WinBox port (8291) immediately and upgrade RouterOS to a secure, patched release.

Stop Exposing VPN Ports to the Internet — Switch to Zero-Trust Access

Eliminate public-facing VPN concentrators and firewall management ports with identity-first Zero-Trust Network Access.

90% Attack Surface Reduction · Hardware-Free

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2018-14847) is a critical directory traversal (CWE-22) flaw within the WinBox interface of MikroTik RouterOS. The root cause lies in the improper validation and sanitization of directory paths in the WinBox protocol parser when handling remote requests. This allows unauthenticated remote attackers to bypass directory restrictions and access sensitive system files.

2. Exploitation Mechanics & Attack Scenario

An attacker transmits crafted packets to the WinBox service port (default TCP 8291). By exploiting the directory traversal flaw, an unauthenticated attacker can download the system database file 'var/pdb/user.dat'. This file contains administrative user credentials, which can be decrypted offline to extract plaintext passwords. Once administrative access is obtained, the attacker can log in, write arbitrary files, and gain full control over the router.

3. Infrastructure & Business Impact

Since MikroTik routers serve as critical gateway and routing infrastructure, compromise of these devices can lead to traffic interception, Man-in-the-Middle (MitM) attacks, and internal network pivoting. This vulnerability is actively exploited in the wild (listed in CISA KEV) and has been heavily leveraged by threat actors to build massive botnets and launch distributed denial-of-service (DDoS) attacks.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2018-14847)

FAQ

Q1. How critical is CVE-2018-14847 and is it actively exploited in the wild?

CVE-2018-14847 is rated CVSS 9.1 (CRITICAL) with a 30-day EPSS exploitation probability of 96.0%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2018-14847?

Primary impacted vendors include mikrotik across routeros. Scope summary: MikroTik RouterOS versions 6.29 through 6.42 with WinBox service enabled

Q3. What temporary mitigations or workarounds exist for CVE-2018-14847 before patching?

[Mitigation] Immediately upgrade RouterOS to patched versions (6.40.9, 6.42.1 or higher) and restrict or disable external WinBox port (8291) access Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2018-14847

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (mikrotik)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2018-14847 MikroTik RouterOS WinBox Directory Traversal Arbitrary File Read/Write Vulnerability (CVE-2018-14847) Analysis and Mitigation Guide (CVSS 9.1) - Patch & Workaround | CVE Pulse