/

CVE-2026-52186

Severity:

CRITICAL RISK

(9.8)

SQL Injection (CWE-89) in UTT nv518G gohead Handler

CVE-2026-52186

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-89

Impact:

Remote Code Execution via SQL Injection

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

A critical SQL injection vulnerability in the UTT nv518G nv518GV3v3.2.7-210919-161313 firmware allows crafted input to be interpreted as SQL commands by the gohead/sub_463bbc component.

Under typical deployments where the device is reachable over the network, a remote attacker can leverage this flaw to execute arbitrary SQL and potentially run code on the underlying system.

Affected context

The vulnerability occurs in the UTT nv518G router firmware version nv518GV3v3.2.7-210919-161313 within the web management service (gohead) at the sub_463bbc code path.

It is relevant in contexts where:

  • The device's web interface is accessible over a network (LAN or exposed WAN)
  • User-controlled parameters reach backend SQL queries
  • Input is concatenated into SQL statements without robust normalization or binding

The exact parameters and endpoints may vary across configurations, but the risk is concentrated around web requests handled by the vulnerable gohead component.

Exploit preconditions

  • Attack surface: HTTP interface of the UTT nv518G web management (gohead server)
  • Required access: Network reachability to the management interface; no strong assumption of prior authentication if vulnerable endpoints are unauthenticated
  • Trigger point: Submission of crafted HTTP parameters that are incorporated into SQL queries in sub_463bbc
  • Why exploitation is possible: The application constructs SQL statements by directly embedding externally supplied values, allowing attacker-controlled tokens to alter the intended query structure and logic

Why this happens

This issue stems from constructing SQL queries using string concatenation or interpolation of user-supplied data without adequate sanitization or parameterization.

In the vulnerable gohead/sub_463bbc component, input is treated as trusted and passed into SQL commands, enabling injection of additional clauses or statements.

This behavior aligns with CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the database interpreter cannot distinguish data from control tokens due to the insecure query-building pattern.

Potential impact

  • Remote attackers may execute arbitrary SQL queries against the device's backend database
  • Attackers could read or modify configuration data, credentials, and logs stored in the database
  • Device settings and routing/firewall rules may be altered, impacting network integrity and availability
  • Attackers could leverage SQL injection to reach underlying OS primitives, potentially resulting in remote code execution
  • Compromised devices can be enlisted into botnets or used as pivot points into internal networks

General mitigation guidance

Mitigation focuses on removing the unsafe query construction pattern and tightening trust boundaries around user input.

Common defensive approaches include:

  • Refactoring database access to use parameterized queries or prepared statements for all dynamic values
  • Applying strict input validation and normalization at the web layer to constrain parameter formats and ranges
  • Separating command logic from data by avoiding direct string concatenation in SQL construction paths
  • Reducing database privileges for the account used by the web management service to the minimum necessary
  • Isolating and restricting access to the management interface using network controls (e.g., VPN-only access, management VLANs)

These patterns provide resilience even if individual endpoints inadvertently accept broader input than intended.

How teams detect issues like this

Detection strategies generally combine code-centric and behavior-centric approaches:

  • Static analysis rules to flag SQL query construction that uses string concatenation, interpolation, or format routines with tainted input
  • Manual code review focused on the gohead handlers and sub_463bbc, checking every path where HTTP parameters reach database APIs
  • Security testing (including fuzzing and targeted SQL injection tests) against web endpoints, monitoring for anomalous database responses or errors
  • Central policies in build pipelines that prevent merging of code containing non-parameterized SQL patterns

Automated SAST and DAST tools can be configured to detect SQL injection risks and enforce consistent query-building practices across the codebase.

Sources

SourceLink
github.comgithub.com/akuma-QAQ/CVEreport/blob/main/518G/FUN_00463bbc/README.md
utt.com.cnutt.com.cn/downloadcenter.php?filetypeid=3&model=518G&lang=zhcn

Frequently asked

questions

Yes. As long as an attacker can reach the device's web management interface over the network and interact with the vulnerable endpoints, exploitation can occur remotely.

That depends on which gohead routes are affected and how the device is configured. If the vulnerable parameters are exposed before authentication, no valid credentials are required; otherwise, a low-privileged account may suffice.

The most robust fix is to eliminate string-based query construction and use parameterized queries or prepared statements across all database interactions, paired with strict input validation.

Adopt a development policy that forbids ad hoc SQL concatenation, enforce parameterized query usage through code review and static analysis, and restrict network exposure of management interfaces to trusted administrators only.

Find out what's already
exploitable in your codebase.