Skip to main content
Vulnerability Database/CVE-2026-78861

CVE-2026-78861: Mercusys AC12 V2 RCE Vulnerability

CVE-2026-78861 is a remote code execution vulnerability in Mercusys AC12 V2 router caused by a hardcoded 512-bit RSA private key. This article covers the technical details, affected versions, security impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-78861 Overview

CVE-2026-78861 affects the Mercusys AC12 V2 wireless router. The device ships with a hardcoded 512-bit RSA private key embedded in its firmware. A local attacker can leverage this static key material to execute arbitrary code on the device. The weakness is tracked under [CWE-789: Memory Allocation with Excessive Size Value] in the NVD record and stems from insecure cryptographic key management. Because the private key is identical across all affected devices, extraction from one unit compromises the trust model for every deployment of the same firmware.

Critical Impact

Attackers with local access can abuse the hardcoded 512-bit RSA private key to achieve arbitrary code execution and compromise the integrity and confidentiality of the Mercusys AC12 V2 router.

Affected Products

  • Mercusys AC12 V2 wireless router
  • Firmware versions distributed with the hardcoded RSA private key
  • Deployments relying on the embedded key for authentication or signature verification

Discovery Timeline

  • 2026-10-05 - CVE-2026-78861 published to the National Vulnerability Database
  • 2026-10-06 - NVD record last modified

Technical Details for CVE-2026-78861

Vulnerability Analysis

The Mercusys AC12 V2 firmware embeds a 512-bit RSA private key directly within the device image. Any attacker able to extract the firmware recovers the same private key used across every unit of the model. A 512-bit RSA modulus is also computationally factorable with modern hardware, further weakening any residual secrecy. Once the key is known, an attacker can forge signatures, decrypt protected material, or impersonate trusted components of the device software stack. The resulting primitive allows local arbitrary code execution on the router.

Root Cause

The root cause is insecure cryptographic design. The vendor shipped a static private key inside the firmware instead of generating a unique key per device at provisioning time. The use of a 512-bit RSA key additionally fails modern cryptographic strength requirements. Both design choices violate baseline guidance for embedded device key management.

Attack Vector

Exploitation requires local access to the device or its firmware image. An attacker obtains the hardcoded private key by extracting the firmware from storage or downloading a public image. The attacker then uses the key to sign malicious payloads, decrypt authenticated channels, or bypass integrity checks that rely on the embedded key. Successful abuse results in execution of attacker-controlled code within the router's software environment. See the ThreadPoolX Advisory for Mercusys AC12 V2 for additional technical context.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-78861

Indicators of Compromise

  • Unexpected firmware modifications or unsigned binaries executing on the Mercusys AC12 V2
  • Administrative sessions or configuration changes originating from unauthorized local sources
  • Appearance of persistence artifacts such as new startup scripts or modified rc entries on the device

Detection Strategies

  • Compare firmware hashes against vendor-published reference values to detect tampering
  • Monitor router management traffic for anomalous payloads signed with the known-compromised key
  • Perform static analysis of firmware images to confirm the presence or replacement of the embedded RSA key

Monitoring Recommendations

  • Log and alert on configuration changes and firmware update events for the AC12 V2
  • Capture network telemetry from the router's management plane for retroactive investigation
  • Review wireless and LAN logs for unusual device enrollment or administrative access patterns

How to Mitigate CVE-2026-78861

Immediate Actions Required

  • Restrict physical and local network access to Mercusys AC12 V2 devices to trusted administrators only
  • Isolate affected routers from sensitive network segments until a vendor patch is applied
  • Rotate any credentials, certificates, or shared secrets that may have been exposed through the device

Patch Information

No vendor patch is referenced in the published NVD record for CVE-2026-78861. Administrators should monitor the Mercusys Official Website and the AC12 Security Information resources for firmware updates that remove the hardcoded key and introduce per-device key generation.

Workarounds

  • Segment the AC12 V2 onto an isolated management VLAN with strict access control lists
  • Disable unused local management interfaces, including serial, UART, and local web administration where feasible
  • Replace affected devices with hardware that generates unique cryptographic keys at provisioning if a vendor fix is unavailable

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.