CVE-2026-67276

SSH user impersonation possible in Mikrotik RouterOS

Published Sep 5, 2026 CVSS 4.0 · 9.2 Critical EPSS < 1% KEV · Not listed
Description
RouterOS does not compare the complete RSA public key when matching an SSH authentication request to an authorized user key, checking the key type and modulus but omitting the exponent. Because signature verification uses the client-supplied key, an attacker knowing an authorized RSA modulus can supply a key with exponent one, forge a valid signature, and open an SSH command channel as the target user without the private key.This issue affects only 7.x branch was fixed in versions: 7.23.4 (Long-term) and 7.24.2 (Stable)

Analysis

AI-generated

Technical impact

RouterOS does not compare the complete RSA public key when validating an SSH authentication request, checking only the key type and modulus while omitting the exponent. Because signature verification uses the key supplied by the client, an attacker who knows the authorized RSA modulus can supply a key with an exponent of one, forge a valid signature, and obtain an SSH session as the target user without needing the private key. This capability allows an attacker to gain SSH access as the impersonated account, thereby enabling execution of arbitrary commands with that account’s privileges.

Affected Systems

The vulnerability affects Mikrotik RouterOS 7.x releases older than 7.23.4 (Long-term) and 7.24.2 (Stable). Any device running these older releases is susceptible if RSA key authentication is enabled for any user.

Risk and Exploitability

With a CVSS score of 9.2 the vulnerability is considered critical. The EPSS score is <1%, indicating a very low probability of exploitation, yet reports of active exploitation exist in the wild. The attack vector is remote, requiring an attacker to establish an SSH session and supply a forged key.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official Mikrotik patch that addresses the RSA key comparison flaw (CWE-347) by upgrading to RouterOS 7.23.4 LTS or 7.24.2 stable.
  • If an upgrade cannot be performed immediately, mitigate the CWE-347 weakness by limiting SSH access to trusted IP addresses via firewall rules to reduce the attack surface.
  • As a temporary workaround that mitigates the CWE-347 vulnerability, disable RSA key–based authentication for privileged accounts or rotate SSH key pairs until the patch is applied.

Generated by OpenCVE AI on November 26, 2026 at 07:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:o:mikrotik:routeros:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description RouterOS does not compare the complete RSA public key when matching an SSH authentication request to an authorized user key, checking the key type and modulus but omitting the exponent. Because signature verification uses the client-supplied key, an attacker knowing an authorized RSA modulus can supply a key with exponent one, forge a valid signature, and open an SSH command channel as the target user without the private key.This issue was fixed in versions: 6.49.21 (Long-term), 7.23.4 (Long-term) and 7.24.2 (Stable) RouterOS does not compare the complete RSA public key when matching an SSH authentication request to an authorized user key, checking the key type and modulus but omitting the exponent. Because signature verification uses the client-supplied key, an attacker knowing an authorized RSA modulus can supply a key with exponent one, forge a valid signature, and open an SSH command channel as the target user without the private key.This issue affects only 7.x branch was fixed in versions: 7.23.4 (Long-term) and 7.24.2 (Stable)
Type Values Removed Values Added
Description RouterOS does not compare the complete RSA public key when matching an SSH authentication request to an authorized user key, checking the key type and modulus but omitting the exponent. Because signature verification uses the client-supplied key, an attacker knowing an authorized RSA modulus can supply a key with exponent one, forge a valid signature, and open an SSH command channel as the target user without the private key.This issue was fixed in versions: 6.49.21 (Lont-term), 7.23.4 (Lont-term) and 7.24.2 (Stable) RouterOS does not compare the complete RSA public key when matching an SSH authentication request to an authorized user key, checking the key type and modulus but omitting the exponent. Because signature verification uses the client-supplied key, an attacker knowing an authorized RSA modulus can supply a key with exponent one, forge a valid signature, and open an SSH command channel as the target user without the private key.This issue was fixed in versions: 6.49.21 (Long-term), 7.23.4 (Long-term) and 7.24.2 (Stable)
Type Values Removed Values Added
Description RouterOS does not compare the complete RSA public key when matching an SSH authentication request to an authorized user key, checking the key type and modulus but omitting the exponent. Because signature verification uses the client-supplied key, an attacker knowing an authorized RSA modulus can supply a key with exponent one, forge a valid signature, and open an SSH command channel as the target user without the private key.This issue was fixed in versions: 6.49.21 (Lont-term), 7.23.4 (Lont-term) and 7.24.2 (Stable)
Title SSH user impersonation possible in Mikrotik RouterOS
First Time appeared Mikrotik
Mikrotik routeros
Weaknesses CWE-347
CPEs cpe:2.3:a:mikrotik:routeros:*:*:*:*:*:*:*:*
Vendors & Products Mikrotik
Mikrotik routeros
References
Metrics cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-347

    Improper Verification of Cryptographic Signature

Sources

Status
PUBLISHED
Assigner
CERT-PL
Published
Updated
Sep 9, 2026, 4:26 AM
Reserved
Jul 29, 2026, 11:59 AM
Status
Analyzed
Published
Sep 5, 2026, 8:17 PM
Modified
Sep 25, 2026, 2:57 PM