Laboratory proof of concept and research notes for CVE-2026-67279 on MikroTik RouterOS 6.42.
Python proof of concept and research notes for CVE-2026-67279 on MikroTik RouterOS 6.42 (x86). The project examines SSH session handling after a client-initiated rekey, with a differential detection mode and laboratory console verification.
Use only with devices you own or are explicitly authorized to test.
The accompanying technical report, written in Russian, records observations from an isolated RouterOS 6.42 laboratory. It reports that a rekey allowed a session channel to open before authentication and that this particular build provided a console with full permissions. These are the supplied project's laboratory observations; they have not been independently reproduced as part of repository preparation and should not be generalized to every RouterOS 6.x build.
The report also discusses differences from the published RouterOS 7.x chain involving CVE-2026-86060. The script does not implement that second stage.
Install the recorded dependency in a virtual environment:
python3 -m venv .venv
.venv/bin/python -m pip install -r requirements.txt
All addresses below are loopback examples. Port 12222 represents a local
laboratory SSH forwarding port.
# Compare session-channel behavior before and after rekey.
.venv/bin/python poc_67279.py 127.0.0.1 -p 12222 detect
# Run a read-only version query through the laboratory console.
.venv/bin/python poc_67279.py 127.0.0.1 -p 12222 console \
-c ':put [/system resource get version]'
# Display command-line options.
.venv/bin/python poc_67279.py --help
The existing pawn mode creates an account with group=full and attempts
a separate password-authenticated SSH login. It changes the test device's
configuration and does not automatically remove the account. This mode
requires explicit --pawn-user and --pawn-pass values; no credentials
are bundled or supplied by default. Passwords passed as command-line
arguments may appear in local shell history and process listings.
Console startup on the recorded build can take approximately 30–40 seconds. The detection verdict describes the observed SSH behavior, not a comprehensive assessment of a device's security.
poc_67279.py: the laboratory PoC.README.txt: the original technical report in Russian.README.md: this English overview.requirements.txt: the dependency version recorded by the project..gitignore: exclusions for credentials, local state, and generated files.The publication contains source and documentation only. No device dumps, session transcripts, private keys, access tokens, real credentials, or personal target addresses are included. Example credentials are placeholders, and addresses are loopback addresses. Passwords are not printed by the account-creation mode, including echoed console commands. Publication commit metadata uses a neutral name and email address. The repository owner remains visible on GitHub.
MikroTik lists CVE-2026-67279 as fixed in RouterOS 6.49.21, 7.23.4, and 7.24.2. See the vendor announcements for current guidance.