# CVE-2026-67280: MikroTik RouterOS outbound SSH client accepts unrelated valid server host keys (CWE-322)

> CERT Polska reports that the outbound SSH client in MikroTik RouterOS (/system ssh and /system ssh-exec) accepts cryptographically valid server host keys without verifying that they belong to the requested endpoint. An attacker who can intercept or redirect the connection can impersonate the server and capture the submitted credentials. Affects RouterOS 6.0.0 up to but not including 7.25; fixed in 7.25.

- **Author:** Threadlinqs Team
- **Published:** 2026-12-01T17:49:41Z
- **Last updated:** 2026-12-01T17:49:41Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7193
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7193.png
- **ID:** TL-2026-7193
- **Severity:** MEDIUM (CVSS 6)
- **Category:** VULNERABILITY
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 7
- **CVEs:** CVE-2026-67280

## Description

CVE-2026-67280 is a key-exchange entity-authentication weakness (CWE-322) in the outbound SSH client of MikroTik RouterOS, used by the /system ssh and /system ssh-exec commands. During key exchange the client accepts any cryptographically valid server host key without checking that it belongs to the endpoint the operator asked to connect to. It does not persist trust on first use, does not compare against known-host entries, and does not require a pinned fingerprint.

An attacker who can receive or redirect an outbound RouterOS SSH connection (for example from a network-adjacent position) can present their own host key, impersonate the intended server, capture the username and password the router submits, and return attacker-chosen command output together with a false success status. This means automation that uses /system ssh-exec to run commands on remote hosts can be both credential-harvested and fed falsified results.

CERT Polska scored the issue CVSS v4.0 6.0 (Medium) with vector AV:A/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N, reflecting the adjacent-network position required. The flaw was discovered by Slawomir Rozbicki of CERT Polska during their own research and published on 2026-12-01. MikroTik fixed it in RouterOS 7.25 (stable, changelog dated 2026-10-22), whose changelog lists CVE-2026-67280 under 'system - improve stability' and separately adds host key verification for the SSH client. The sources do not report active exploitation, a public PoC, attribution, or any IOCs. This issue is distinct from the six RouterOS CVEs CERT Polska published on 2026-09-05 (CVE-2026-67276 through -67279, -67281, -86060), which mainly concern inbound SSH, btest, and WebFig.

## MITRE ATT&CK

- T1557 Adversary-in-the-Middle
- T1557 Adversary-in-the-Middle
- T1565.002 Data Manipulation: Transmitted Data Manipulation
- T1021.004 Remote Services: SSH
- T1078 Valid Accounts

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**CVE-2026-67280 RouterOS Outbound SSH to First-Seen Destination (/system ssh, /system ssh-exec) — Exploitation Phase** (`TL-2026-7193-SPL-001`)

Detects a MikroTik RouterOS device (6.0.0 to before 7.25) originating an SSH (TCP/22) connection from its own output chain to a destination it has not contacted in the prior 30 days. CVE-2026-67280 (CWE-322): the /system ssh and /system ssh-exec client accepts any cryptographically valid host key, so a redirected or intercepted session lets an adjacent attacker impersonate the server and capture the credentials the router submits. A router suddenly reaching a new SSH endpoint is the best network-side signal of redirection. Requires RouterOS firewall logging on chain=output (for example: /ip firewall filter add chain=output protocol=tcp dst-port=22 action=log) forwarded to syslog. SPL is the primary flavor.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1557, T1021.004, T1565.002
- **Data sources:** mikrotik_routeros_syslog, routeros_firewall_output_chain_log
- **Severity:** medium
- **Confidence:** medium

### Splunk SPL

````spl
index=network sourcetype="mikrotik:routeros" "output:" "proto TCP" earliest=-30d@d latest=now ```Router-originated TCP/22 to a destination not seen in the prior 30 days - CVE-2026-67280 AiTM redirect lead```
| rex field=_raw "proto TCP [(][A-Z,]+[)],[ ]*(?<src_ip>[0-9]{1,3}(?:[.][0-9]{1,3}){3}):(?<src_port>[0-9]+)->(?<dest_ip>[0-9]{1,3}(?:[.][0-9]{1,3}){3}):(?<dest_port>[0-9]+)"
| where dest_port="22"
| stats min(_time) as first_seen max(_time) as last_seen count as syn_count by host src_ip dest_ip
| where first_seen >= relative_time(now(), "-24h@h")
| convert ctime(first_seen) ctime(last_seen)
| table host src_ip dest_ip syn_count first_seen last_seen
````

### Microsoft KQL

```kql
Syslog
| where TimeGenerated > ago(30d)
| where SyslogMessage has "output:" and SyslogMessage has "proto TCP"
| extend SrcIP = extract(@"proto TCP [(][A-Z,]+[)],[ ]*([0-9.]+):[0-9]+->", 1, SyslogMessage),
         DestIP = extract(@"->([0-9.]+):[0-9]+", 1, SyslogMessage),
         DestPort = toint(extract(@"->[0-9.]+:([0-9]+)", 1, SyslogMessage))
| where DestPort == 22 and isnotempty(DestIP)
| summarize FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), SynCount = count() by Computer, SrcIP, DestIP
| where FirstSeen > ago(24h)
| project Computer, SrcIP, DestIP, SynCount, FirstSeen, LastSeen
```

### Sigma

```yaml
title: RouterOS Outbound SSH From Router Output Chain (CVE-2026-67280)
id: 7f3c2a64-5b1e-4d8a-9c07-3e2b6a1d4f81
status: experimental
description: Detects MikroTik RouterOS originating TCP/22 traffic from its own output chain, the path used by /system ssh and /system ssh-exec. Vulnerable versions (6.0.0 to before 7.25) do not verify the server host key (CVE-2026-67280), so a redirected session can capture submitted credentials. Stateless building block; apply a first-seen or allowlist baseline in the SIEM.
references:
  - https://cert.pl/en/posts/2026/12/CVE-2026-67280/
  - https://nvd.nist.gov/vuln/detail/CVE-2026-67280
author: Threadlinqs Team
date: 2026-12-01
tags:
  - attack.credential-access
  - attack.t1557
  - attack.lateral-movement
  - attack.t1021.004
  - attack.impact
  - attack.t1565.002
  - cve.2026-67280
logsource:
  category: firewall
  product: mikrotik
  service: routeros
detection:
  selection:
    chain: output
    protocol: tcp
    dst_port: 22
  condition: selection
falsepositives:
  - Administrators legitimately using /system ssh or /system ssh-exec to managed hosts
  - Scheduled RouterOS scripts that run remote commands over SSH
level: medium
```

**Known false positives:**

- Administrators legitimately using /system ssh or /system ssh-exec against a newly added managed host
- Newly deployed automation or a renumbered management server appearing as a first-seen destination

**Tuning notes:** Adjust index/sourcetype to your RouterOS syslog ingestion (mikrotik:routeros is an assumed name). Verify the field extraction against a sample log line, as RouterOS log formats vary by logging action and prefix. Shorten or lengthen the 30-day baseline to fit how often management targets change, and suppress known management hosts with an allowlist lookup. Prioritise destinations outside your management ranges.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- CVE-2026-67280 SSH Server Host Key Changed for a Known Destination (Zeek/Corelight) — Exploitation Phase (locked: unlock with TL Creds)
- CVE-2026-67280 Captured Password Replayed Across Multiple Linux Hosts From One Source (Sentinel) — Post-Exploitation (locked: unlock with TL Creds)
- CVE-2026-67280 RouterOS Outbound SSH to a Public (Non-RFC1918) Destination (Sentinel Syslog) — C2 / Credential Exposure Lead (locked: unlock with TL Creds)
- CVE-2026-67280 SSH Server Banner Change or Impostor SSH Library (Sigma/Zeek) — Exploitation Phase (locked: unlock with TL Creds)
- CVE-2026-67280 RouterOS Script or Scheduler Change (ssh-exec Automation Inventory) — Post-Exploitation / Persistence Lead (locked: unlock with TL Creds)
- CVE-2026-67280 RouterOS 7.25 SSH Host Key Regeneration Log (Patch Rollout Context / Alert Suppression) — Context (locked: unlock with TL Creds)
- CVE-2026-67280 Router-Harvested Credential Reuse: Established SSH Account Logging In From a New Source — Post-Exploitation (locked: unlock with TL Creds)
- CVE-2026-67280 RouterOS Outbound SSH Fan-Out to Multiple Destinations — Lateral Movement / Credential Harvest Lead (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [Vulnerability in Mikrotik RouterOS software (CERT Polska)](https://cert.pl/en/posts/2026/12/CVE-2026-67280/)
- [NVD - CVE-2026-67280](https://nvd.nist.gov/vuln/detail/CVE-2026-67280)
- [CVE Record CVE-2026-67280](https://www.cve.org/CVERecord?id=CVE-2026-67280)
- [MikroTik forum: 7.25 stable is released](https://forum.mikrotik.com/t/7-25-stable-is-released/273987)
- [CERT Polska: Vulnerabilities in MikroTik RouterOS (September 2026 CVEs, related context)](https://cert.pl/en/posts/2026/09/mikrotik-routeros-cve/)
- [CERT Polska coordinated vulnerability disclosure policy](https://cert.pl/en/cvd/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7193
