What did we test?

We tested the vulnerability CVE-2026-67279, which allows an unauthenticated client to open an SSH session channel on RouterOS by exploiting a rekey requested during the authentication phase.

How was the lab set up?

The target was a CHR (Cloud Hosted Router) running RouterOS 7.23.3, executed as a virtual machine on Proxmox. The router’s IP address was 10.99.0.2 and the SSH service was active on port 22. The indicated vulnerable versions are 6.x < 6.49.21, 7.x < 7.23.4 and 7.24.0-7.24.1. The fixed versions are 7.23.4 (Long-term), 7.24.2 (Stable) and 6.49.21 (v6 Long-term).

How to reproduce it?

The attack flow exploits a flaw in the SSH protocol workflow: after a rekey requested by the client during authentication, the server proceeds to the connection protocol without having sent SSH_MSG_USERAUTH_SUCCESS.

The steps for verification are as follows:

  1. Complete the initial key exchange (KEX) with the server.
  2. Send an authentication request (SSH_MSG_USERAUTH_REQUEST) with arbitrary credentials.
  3. Before the server responds to the authentication, send SSH_MSG_KEXINIT to request a rekey.
  4. Complete the rekey between client and server.
  5. The vulnerable RouterOS server is in the connection protocol state without having authenticated the client.
  6. Send SSH_MSG_CHANNEL_OPEN "session"; the server accepts the channel opening.
  7. Send associated requests such as pty-req and shell or exec.

To run the proof, we used a Python script with the paramiko library:

# Modo detect — verifica se il target e' vulnerabile
python3 poc.py 10.99.0.2 detect

# Modo shell — tenta una shell interattiva (limitata senza CVE-2026-86060)
python3 poc.py 10.99.0.2 shell

The lab material, including the proof-of-concept script, is available in the repository:

The exam material · CVE-2026-67279Reserved for dojo members: join for free to download it

What happened?

Running the script in detect mode showed that the server refused the channel opening without a rekey, but accepted it after the pre-authentication rekey.

============================================================
CVE-2026-67279 — DETECT mode
============================================================

[CONTROLLO] Apertura canale SENZA rekey...
  [OK] Canale rifiutato (atteso): Unable to open channel.

[TEST CVE-2026-67279] Apertura canale DOPO rekey pre-auth...
  [+] CANALE APERTO! (37 bytes)
  | Login failed, incorrect user policy

============================================================
[+] VULNERABILE a CVE-2026-67279!
[+] Il server ha accettato un session channel dopo il rekey,
[+] nonostante l'autenticazione non fosse completata.
[+] CWE-841: Improper Enforcement of Behavioral Workflow

The router’s SSH debug logs confirmed the processing of the channel request and its closure, operations that normally require completed authentication:

2026-10-17 07:19:31 ssh,debug packet process: channel request
2026-10-17 07:19:31 ssh,debug,packet channel #0 local window consumed: ...
2026-10-17 07:19:31 ssh,debug packet process: channel eof
2026-10-17 07:19:31 ssh,debug channel #0 eof

On RouterOS 7.x, the vulnerability alone allows opening a functional channel but without privileges. In combination with CVE-2026-86060, it allows obtaining a full administrative console. On RouterOS 6.x, the channel may provide direct access to commands.

How to protect yourself?

The first action to take is to update the router to the fixed versions: 7.23.4 (Long-term), 7.24.2 (Stable) or 6.49.21 (v6 Long-term). After the update, it is advisable to check for unauthorized users, suspicious scripts and the Flagged marker via /system device-mode print.

Furthermore, it is fundamental to secure the router by limiting management services to the trusted network. In the guide Basic hardening of a MikroTik router with RouterOS 7, it explains how to disable unnecessary management services (API, WinBox, SSH…), limit them to the management network and close them to the Internet.

For further technical details, consult the vendor advisory: MikroTik September 2026 vulnerability.

Frequently asked questions

Does the vulnerability allow direct command execution on RouterOS 7?

On RouterOS 7.x, CVE-2026-67279 alone allows opening a session channel without authentication, but the channel has no privileges assigned. To obtain a full administrative console, the chain with CVE-2026-86060 is required.

Which RouterOS versions are vulnerable?

The vulnerable versions are 6.x < 6.49.21, 7.x < 7.23.4, and 7.24.0-7.24.1. The fixed versions are 7.23.4, 7.24.2, and 6.49.21.

How do you check if the router is vulnerable?

You can use the proof-of-concept script in detect mode, which attempts to open an SSH channel after a pre-authentication rekey. If the server accepts the channel, the router is vulnerable.