/

CVE-2026-37152

Severity:

CRITICAL RISK

(9.8)

Hardcoded Password (CWE-798) in TOTOLINK X5000R Router

CVE-2026-37152

Deferred

Vulnerability type

Category:

Hardcoded Credentials

CWE:

CWE-798

Impact:

Unauthorized root access and full device compromise

Severity:

CRITICAL RISK

(9.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

TOTOLINK X5000R firmware contains a hardcoded password associated with root access. If an attacker can reach the affected authentication interface and obtain or use the embedded credential, they may gain administrative control over the router.

Affected context

The issue affects TOTOLINK X5000R devices running firmware V9.1.0cu.2415_B20250515 when a built-in password is accepted for a privileged account. Risk depends on whether the relevant management or authentication interface is reachable, how the credential is exposed, and whether network access controls limit interaction with the device.

Exploit preconditions

  • Attack surface: The device's management or authentication interface - Required access: Network access to the relevant interface and knowledge or

discovery of the embedded credential

  • Trigger point: Authentication to a privileged root account - Why exploitation is possible: A static credential provides a reusable

authentication path that is not unique to the device or safely rotated

Why this happens

The vulnerability results from embedding a password in firmware or device logic and using it for privileged authentication. This insecure pattern maps to CWE-798, Use of Hard-coded Credentials, because a credential intended to protect a sensitive account is stored in a fixed, recoverable form rather than being generated uniquely, securely provisioned, or changed during deployment.

Potential impact

  • An attacker could gain root-level administrative access to the router.
  • An attacker may change network, firewall, or DNS settings.
  • The device could be used to monitor, redirect, or disrupt network traffic.
  • Attackers could install persistence or alter firmware and configuration.
  • The compromised router could support lateral movement into connected networks.

General mitigation guidance

Mitigation generally focuses on eliminating shared static privileged credentials and reducing exposure of management interfaces. Secure-by-default designs use unique, device-specific credentials or secure first-use enrollment, store secrets using protected mechanisms, and prevent root authentication through broadly distributed defaults. Administrative access can be limited to trusted management networks, unnecessary services can be disabled, and device privileges can be separated so routine functions do not require root access. Credential rotation, secure provisioning, and recovery procedures should avoid embedding reusable secrets in firmware.

How teams detect issues like this

Detection can include firmware and binary analysis for password-like strings, credential constants, authentication routines that compare against fixed values, and privileged accounts with identical defaults across devices. Code review should flag embedded secrets, fallback authentication paths, and root credentials that cannot be rotated. Inventory and policy enforcement can verify unique initial credentials, restricted management-plane exposure, and disabled or controlled remote administration. Automated secret-scanning and firmware-analysis tools may help identify related patterns.

Sources

SourceLink
github.comgithub.com/AndreaLandriscina/Hardcoded-Password-Totolink-X5000R
github.comgithub.com/AndreaLandriscina/Hardcoded-Password-Totolink-X5000R/tree/main

Frequently asked

questions

It may be remotely exploitable when the affected management or authentication

interface is exposed to an attacker who can reach it and use the embedded

credential. Exposure depends on device configuration and network controls.

The attacker generally needs network access to the relevant interface, but the

hardcoded password may provide the credential needed for privileged

authentication.

Remove acceptance of shared hardcoded credentials and require unique,

securely provisioned, and rotatable administrative credentials.

Use secret scanning and firmware review, enforce unique-credential policies,

restrict management access to trusted networks, and test authentication paths

for undocumented fallback accounts.

Find out what's already
exploitable in your codebase.