Mercury D196G CVE-2025-50398
CRITICALAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach D196G web management interface
-
DeliverySubmit oversized fac_password parameter
-
ExploitOverflow buffer in sub_404CAEDC
-
ExecutionHijack execution flow on router
-
ImpactFull device compromise and network pivot
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer copy size validation
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to reach the vulnerable firmware function sub_404CAEDC and supply a crafted/oversized value in the 'fac_password' parameter; this parameter is part of the device's management/login handling, so practical exploitation requires network reachability to the Mercury D196G router's administrative interface. Key limiting factors: the specific firmware build (d196gv1-cn-up_2020-01-09_11.21.44) must be present, the management interface must be reachable (default consumer deployments expose it only on the LAN, not the WAN, unless remote administration is enabled), and the description does not confirm whether the endpoint is reachable pre-authentication - so the NVD PR:N (unauthenticated) assumption should be verified against the actual request path before treating this as fully pre-auth. |
| Impact | Signals conflict and should be weighted carefully. NVD assigns CVSS 9.8 with vector AV:N/AC:L/PR:N/UI:N, implying trivial remote unauthenticated code execution, and a public exploit exists on GitHub (sezangel/IOT-vul), which raises the floor on real-world risk. However, the EPSS score is only 0.42% (35th percentile), indicating a low modeled probability of broad exploitation in the next 30 days, and the CVE is NOT on the CISA KEV list, so there is no evidence of active exploitation. The contrast between a 9.8 CVSS and low EPSS is typical of an obscure IoT/router product: the flaw is technically severe (buffer overflow → likely RCE) but the affected device has a small, regional deployment footprint, so mass exploitation is unlikely even with POC code available. One important caveat: the parameter name 'fac_password' and the fact that this is a reverse-engineered web-management function (sub_404CAEDC) suggest the overflow may be reached through the device's administrative/login interface, which would make PR:N questionable - the NVD AV:N/PR:N rating may overstate pre-authentication reachability. Net assessment: a credible RCE on exposed/management-accessible Mercury D196G routers, but not a widespread emergency; prioritize for the specific populations running this firmware rather than as a general critical patch-now item. |
| Exploit ScenarioDerived | An attacker with reachability to the Mercury D196G web management interface sends a request containing an overly long 'fac_password' value, overflowing a stack/heap buffer in the handler sub_404CAEDC and corrupting control data to execute arbitrary code on the router. Public proof-of-concept material is available in the referenced GitHub repository, lowering the effort to reproduce. Because routers typically run service code as a privileged account, successful exploitation yields full control of the device, enabling traffic interception or pivoting into the internal network. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 13, 2026
Remote buffer overflow in Mercury D196G router firmware (specific build d196gv1-cn-up_2020-01-09_11.21.44) allows an attacker who can reach the device's administrative interface to corrupt memory via an oversized 'fac_password' parameter passed to the function sub_404CAEDC, potentially enabling code execution or denial of service. Publicly available exploit code exists (GitHub PoC at sezangel/IOT-vul), but there is no evidence of confirmed active exploitation - the CVE is not listed in CISA KEV - and EPSS is low at 0.42% (35th percentile). Note the conflicting signals: NVD's CVSS vector lists PR:N (unauthenticated), while our independent assessment scores PR:L (authenticated); the exact pre-auth reachability of the affected endpoint must be verified before treating this as an unauthenticated flaw.
RemediationAI
No vendor-released patch or advisory was identified at time of analysis, so remediation must rely on compensating controls until Mercury publishes updated firmware. The most effective immediate measure is to ensure the D196G management interface is never exposed to the WAN: verify that any 'remote management' setting is disabled, remove any UPnP/NAT port-forwarding rules pointing at the admin port, and restrict administrative access to the LAN only - the trade-off is that legitimate remote administration becomes impossible without a VPN or similar tunnel. For defense in depth, place the router behind a firewall with ACLs that permit management traffic only from trusted administrative subnets, segment IoT/IoMT devices onto an isolated VLAN to limit lateral movement if the router is compromised, change all default credentials, and monitor logs for oversized or malformed values submitted to the fac_password parameter. Because public PoC code exists (https://github.com/sezangel/IOT-vul/tree/main/Mercury/D196G/2), organizations that cannot isolate these devices should consider replacing them; if Mercury releases a firmware update, apply the vendor's exact fix version as soon as it is available.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CVE-2025-50398 is a CWE-120 classic buffer overflow in the firmware of the Mercury D196G router (CPE cpe:2.3:o:mercurycom:d196g_firmware:-:*:*:*:*:*:*:*), which is embedded consumer networking hardware. The vulnerable code path is the function sub_404CAEDC, which processes the 'fac_password' parameter - a value apparently tied to management/factory password handling - without validating input length, allowing an oversized value to overwrite adjacent memory. A stack or heap corruption of this kind in router firmware can crash the device (denial of service) and, depending on memory layout and mitigations (e.g., ASLR/NX), may enable remote code execution with the privileges of the HTTP/management service. The provided CPE uses a wildcard version, meaning the NVD record does not constrain the flaw to one firmware release, though the report specifically identifies build d196gv1-cn-up_2020-01-09_11.21.44. The only public reference is a proof-of-concept repository (https://github.com/sezangel/IOT-vul/tree/main/Mercury/D196G/2), and no vendor advisory is supplied. The discrepancy between the NVD vector (PR:N) and our assessed vector (PR:L) hinges on whether the fac_password parameter is parsed before authentication completes - this is not confirmed by the available data.
Know when D196G Firmware gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Network-reachable overflow in a web-management parameter with no user interaction, but likely requires access to the admin/login interface, so PR:L; memory-corruption RCE gives full C/I/A impact.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
Mercury D196G d196gv1-cn-up_2020-01-09_11.21.44 is vulnerable to Buffer Overflow in the function sub_404CAEDC via the parameter fac_password.
Executive ViewAI
Mercury D196G routers running firmware build d196gv1-cn-up_2020-01-09_11.21.44 are affected by a critical remote buffer overflow (CVE-2025-50398) in the administrative interface's fac_password parameter, potentially allowing code execution or denial of service on exposed devices. Publicly available exploit code exists, but there is no confirmed active exploitation (not listed in CISA KEV) and EPSS is low; because no vendor-released patch has been identified, organizations using these routers should urgently limit administrative access and prepare for replacement or mitigation. Leadership should care because these edge devices may sit in branch or remote locations, and a successful compromise could disrupt connectivity or provide a foothold into the network.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict administrative interface access to trusted networks, disable remote/WAN administration, block inbound admin ports, segment or isolate affected Mercury D196G routers, monitor for anomalous behavior or crashes, and plan device replacement or vendor mitigation.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
NVD
CVE.org
EPSS
GitHub
Exploit-DB