What did we test?
We tested the CVE-2026-67281 vulnerability in the RouterOS WebFig component, specifically verifying two weaknesses: a path traversal (CWE-22) that allows reading files outside the intended namespace, and access to an uninitialized pointer (CWE-824) that causes the www worker to crash.
How was the lab set up?
The test was performed in an isolated environment with the following configuration:
- Target: MikroTik CHR (QEMU Standard PC i440FX + PIIX), x86_64, 512 MiB RAM, IP
10.99.0.2. - Tested versions: RouterOS 7.22.3 (stable) and RouterOS 7.24.1 (stable).
- Active services: WebFig on HTTP/80 (
www) and HTTPS/443 (www-ssl), withmax-sessions = 20. - Access: SSH admin available for verification and recovery.
Reference material and the proof-of-concept code are available in the repository:
The exam material · CVE-2026-67281Reserved for dojo members: join for free to download it
How to reproduce it?
Reproduction requires implementing the WebFig protocol (X25519 handshake, key derivation, M2 serialization). The main steps for the verified results are:
- Handshake: Send a
POST /jsproxywith a\x00*8 + pubkey_X25519[::-1]body (40 bytes) and theContent-Type: msgheader. - Key derivation: Calculate the session keys based on the version (RC4/SHA-1 for 7.22.3, AES-128-CTR/SHA-256 for 7.24.1).
- Login (for path traversal): Perform the login to obtain the
s2dsession token. - Path Traversal: Send a
GET /jsproxy/?<URI cifrato>with a URI containing enough../components to escape the/flash/rw/disknamespace (depth >= 3).- URI example:
../../../nova/bin/www.
- URI example:
- Unauthenticated crash: Establish a session using only the handshake (without login) and send a file request. This causes non-deterministic behavior, often a crash of the
wwwworker (SIGSEGV).
For automated reproduction, you can use the script provided in the repository:
python3 poc.py --target <IP> # parti A (traversal autenticato), C (controllo), B (crash)
python3 poc.py --target <IP> --skip-crash # salta la parte B, che uccide il worker www
What happened?
The results of the lab test were as follows:
- Path Traversal (CWE-22) REPRODUCED: With an authenticated session, it was possible to read system files.
../../../nova/bin/wwwon 7.22.3: HTTP 200, 129588 bytes.../../../nova/bin/wwwon 7.24.1: HTTP 200, 137840 bytes./etc/license: HTTP 200, 132009 bytes.- Byte-by-byte verification via SHA256 confirmed the integrity of the read files.
- Unauthenticated Crash (CWE-824) REPRODUCED: A file request on a handshake-only session caused the worker
wwwto crash in several attempts. The router generated aautosupout.riffile and the supervisor restarted the service in 15-20 seconds. - Unauthenticated File Read NOT REPRODUCED: Despite approximately 60 experimental configurations (heap grooming, state machine violations), it was not possible to achieve file reading without authentication. The behavior was deterministic: crash or refusal (403/500), but never file delivery.
- Other findings:
/webfig/listis accessible without authentication (HTTP 200).- Two post-authentication crashes of the M2 parser were reproduced with malformed messages.
- The server does not bind the request to the TCP connection, but uses the
session_idin the header.
How to protect yourself?
The primary protection is updating to the correct RouterOS version containing the fix: 7.23.4 (long-term), 7.24.2 (stable) or 6.49.21 (v6).
Additionally, it is fundamental to secure the router following the Dojo guide: Basic hardening of a MikroTik router with RouterOS 7
In this guide, you will see how to disable management services that are not needed (API, WinBox, SSH…), limit them to the management network, and close them to the Internet. This drastically reduces the attack surface, making access to WebFig from unauthorized networks impossible.
Frequently asked questions
Is unauthenticated file reading confirmed?
No, it was not reproduced in our lab. We only achieved the service crash (CWE-824) without authentication. File reading requires an authenticated session (CWE-22).
Which versions are vulnerable?
According to the MikroTik advisory and NVD, the vulnerable versions are from 7.20 up to but not including 7.23.4, and from 7.24 up to but not including 7.24.2. The tested versions (7.22.3 and 7.24.1) fall within this range.
Is the www worker crash exploitable for DoS?
Yes, the unauthenticated crash (CWE-824) can be used to cause a Denial of Service, as the WebFig service is interrupted and restarted by the supervisor. However, it does not allow access to sensitive data without authentication.



