Severity by source
AV:P/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L
Description indicates a local on-device app (AV:L) with no privileges or interaction reaching a weak-cred service; sandbox escape to root crosses a trust boundary (S:C) with full C/I/A loss.
Primary rating from Vendor (zte).
CVSS VectorVendor: zte
Lifecycle Timeline
4DescriptionCVE.org
The built-in PostgreSQL service on the mobile device suffers from misconfiguration flaws and command injection vulnerabilities. This service listens on a specific port, runs with root privileges, and is protected by weak credentials. The database supports the COPY FROM PROGRAM syntax, allowing local attackers to bypass Android's permission sandbox and gain full root access.
AnalysisAI
Local root escalation on the ZTE Nubia Red Magic 11 Air (NX799J) gaming smartphone stems from a built-in PostgreSQL service that runs as root, listens on a device port, and is guarded only by weak credentials. Because PostgreSQL's COPY FROM PROGRAM syntax executes OS commands with the server's privileges, any local app that reaches the database can break out of the Android application sandbox and run commands as root. No public exploit identified at time of analysis, though the technique (weak-cred Postgres plus COPY FROM PROGRAM) is well understood and trivially reproducible.
Technical ContextAI
The root cause is CWE-89 (SQL injection) leveraged against a bundled PostgreSQL instance shipped inside the phone firmware. PostgreSQL supports COPY ... FROM PROGRAM, a legitimate feature that pipes a shell command's output into a table; when the database superuser (or any role with the pg_execute_server_program privilege) issues it, the command runs as the OS account hosting the server. Here that account is root, and the service is exposed on a local port with weak/default credentials, so the SQL layer becomes a direct path to arbitrary OS command execution. Android's security model relies on per-app UID sandboxing; a root-owned network-listening service that any app can authenticate to defeats that boundary entirely. The single affected build per ENISA EUVD is GEN_CN_NX799JV1.0.0B15 (CPE cpe:2.3:a:zte:nx799j_(red_magic_11_air):*).
RemediationAI
Apply the firmware update referenced in ZTE's security bulletin (https://support.zte.com.cn/zte-iccp-isupport-webui/bulletin/detail/460174866982027405) as soon as it is available; no exact fixed build number is stated in the provided data, so confirm the patched version directly with ZTE - the input identifies only affected build GEN_CN_NX799JV1.0.0B15. Because the flaw is baked into firmware, end-user workarounds are limited: users cannot easily alter a root-owned system service, but risk can be reduced by not installing untrusted apps (which would supply the required local foothold) and avoiding untrusted USB/ADB connections. For rooted/enterprise-managed devices, compensating controls include disabling or firewalling the PostgreSQL listener, rotating/strengthening the database credentials, and revoking the pg_execute_server_program privilege to neutralize COPY FROM PROGRAM - each of which may break firmware functionality that depends on the bundled database, so test before deploying.
More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
Same weakness CWE-89 – SQL Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-53123
GHSA-v2vf-g6fh-j2m9