MikroTik RouterOS SSH authentication bypass lets an attacker log in without the private key

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-67276?

CVE-2026-67276 is a vulnerability classified as Improper Verification of Cryptographic Signature, affecting RouterOS (affected versions: 7.24 – < 7.24.2 and 7.9 – < 7.23.4). This vulnerability is rated Critical, with a CVSS score of 9.2. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

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)

Affected products and scope

MikroTik RouterOS on the 7.x branch. The record states the issue affects only that branch, and that it is fixed in the listed Long-term and Stable releases. Devices on the older major branch are described as unaffected. Within the affected branch, exposure depends on SSH being reachable and on RSA key authentication being used for at least one account; the record does not break this down further.

Technical details

The weakness is improper verification of a cryptographic signature (CWE-347), in the RouterOS SSH server. When matching an incoming SSH authentication request to an authorized user key, RouterOS checks the key type and the RSA modulus but omits the exponent. Signature verification then uses the key supplied by the client rather than the stored authorized key. That leaves the exponent, which is part of the key and is attacker-controlled, outside the check. The record states that an attacker who knows an authorized RSA modulus can supply a key with exponent one and forge a signature that passes verification, which yields an SSH command channel as the target user without the private key. The record does not describe the parsing or comparison code beyond this.

Exploitability

Reachable over the network through the SSH service: no privileges and no user interaction are required, and the record rates the attack vector as network. The barrier is knowing an authorized RSA modulus. The record notes that public exploit code is available and that a patch exists. Its structured known-exploited field is not populated, while one of the advisories attached to the record discusses RouterOS vulnerabilities being actively exploited, so treat exposure as urgent to establish rather than assume either way.

Technical impact

An attacker obtains an interactive SSH command channel with the privileges of the targeted user, without holding that user's private key. What they can do next depends on that account: on RouterOS, administrative accounts reach configuration, routing, firewall and accounting functions. The precondition is knowledge of an authorized user's RSA modulus, which is public key material and may be obtainable in some deployments, but which the attacker must have or guess. The record rates attack complexity as high, which reflects that precondition rather than any step the attacker can skip.

Business impact

A RouterOS device is usually the box between the internet and everything else, so a command channel on it as an authorized user is a great deal more than a single compromised host. The attacker can read the running configuration, which commonly holds VPN keys, credentials, address lists and firewall rules, change routing and firewall policy, add accounts for later, and use the device as a position from which to reach the networks behind it. Restoring service may be quick, but restoring confidence in the device is not: every secret that passed through the configuration should be treated as exposed. Network and infrastructure teams running RouterOS at the edge, or using SSH key authentication for administrators, are the people who need to act on this.

Remediation

Update RouterOS to a fixed release on the branch you track, choosing the Long-term or Stable build that the vendor lists as fixed, and do so for every device that runs SSH. After updating, treat any device that had SSH reachable from untrusted networks as potentially accessed: rotate credentials and VPN keys held in the configuration and review accounts, scheduled jobs and firewall rules for changes you did not make. Where updating has to wait, reduce exposure by limiting who can reach the SSH service at all, through management network segregation or firewall rules, accepting that this lowers risk rather than removing it.

Detection

Review RouterOS SSH authentication logs for successful logins by key, especially from addresses that do not normally administer the device, and compare them against known administrator activity. Look for logins for accounts that should not be using key authentication, sessions opened outside maintenance windows, and any configuration change that follows a login, particularly new users, new keys, altered firewall or NAT rules, and new scheduled scripts. Since the bypass leaves a normal successful-authentication record, absence of failures is not evidence of safety; inventory which devices expose SSH and which accounts have keys registered, and check that inventory against what you expect.

Sources (11)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.