CVE-2026-67276

Summary

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)

Affected Software

VendorProductVersion RangeStatus
MikrotikRouterOS7.24 < 7.24.2affected
MikrotikRouterOS7.0.0 < 7.23.4affected
MikrotikRouterOS6.0.0 < 6.49.21affected

Weaknesses

  • CWE-347: CWE-347 Improper verification of cryptographic signature

References