CVE-2026-67281: Unauthenticated file read in Mikrotik RouterOS
RouterOS WebFig contains an unauthenticated file-read vulnerability in the /jsproxy path where a newly allocated session retains a stale uninitialized principal pointer used for file authorization. An unauthenticated attacker can prepare the allocator so that the file-serving path dereferences this pointer with sufficient rights, then supply parent-directory components in an encrypted URI to escape the WebFig file namespace and disclose root-owned files, including configuration stores containing credentials.This issue was fixed in versions: 6.49.21 (Lont-term), 7.23.4 (Lont-term) and 7.24.2 (Stable)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Mikrotik RouterOSto a version that resolves this vulnerability.Fixed in 6.49.21 - Upgrade
Upgrade
Mikrotik RouterOSto a version that resolves this vulnerability.Fixed in 7.23.4 - Upgrade
Upgrade
Mikrotik RouterOSto a version that resolves this vulnerability.Fixed in 7.24.2 - Compensating control
If immediate upgrade is not possible, restrict network access to RouterOS WebFig (/jsproxy path) so unauthenticated users cannot reach the vulnerable file-read functionality.