Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local foothold via malicious app
-
DeliveryConnect to root Postgres port with weak creds
-
ExploitIssue COPY FROM PROGRAM SQL injection
-
ExecutionExecute shell command as root
-
ImpactEscape Android sandbox, own device
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires local access to the device's PostgreSQL listener - the concrete prerequisites are (1) reaching the specific TCP port the bundled Postgres service listens on, (2) authenticating with the service's weak/default credentials, and (3) a database role with rights to invoke COPY FROM PROGRAM (pg_execute_server_program / superuser), which the service reportedly grants. In practice the attacker is a local low-privilege app or an on-device shell, since the description frames this as an Android sandbox bypass, not remote Internet exploitation. Limiting factors: the attacker must already be able to run code or open a socket on the handset (a malicious app or ADB/local shell), and only the ZTE NX799J Red Magic 11 Air build GEN_CN_NX799JV1.0.0B15 is confirmed affected - narrowing realistic exposure well below what the AV:N/PR:N CVSS suggests. |
| Impact | The supplied CVSS 4.0 vector is a maximal 10.0 (AV:N/AC:L/PR:N/UI:N with full VC/VI/VA and subsequent-system SC/SI/SA all High), reflecting complete compromise. However, there is a real conflict between that AV:N (network) rating and the description, which repeatedly frames this as LOCAL exploitation - 'local attackers' bypassing the 'Android permission sandbox' - implying the practical attacker is a malicious/low-privilege app already on the device rather than a remote Internet host; verify network reachability of the Postgres port with the vendor. No EPSS score, KEV listing, or POC was provided, so exploitation probability cannot be quantified from the input and there is no evidence of in-the-wild use. Weighing signals: technical severity is genuinely critical (root, sandbox escape, trivial primitive), but real-world reach is bounded by the low deployment footprint of a single niche phone build and the likely requirement of local code execution first. This is a high-priority fix for owners of the affected device, not a mass-exploitation Internet threat. |
| Exploit ScenarioDerived | A user installs a seemingly benign app that quietly connects to the phone's local PostgreSQL port using the weak built-in credentials. The app issues a COPY ... FROM PROGRAM statement to run a shell command as root, dropping a payload outside its sandbox and escalating from an ordinary Android UID to full device control. Given AC:L and no user interaction beyond installing the app, the technique is straightforward for anyone who reproduces the credentials and port. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
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.
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.
Affected VersionsENISA
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
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):*).
Know when PostgreSQL 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: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
3DescriptionCVE.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.
Executive ViewAI
The ZTE Nubia Red Magic 11 Air (NX799J) contains a critical local privilege escalation vulnerability (CVE-2026-49004, CVSS 10.0) that allows any installed application to gain root access through a misconfigured PostgreSQL service with weak credentials. Organizations deploying these gaming phones risk complete device compromise, data exfiltration, and malware installation with no vendor patch currently available, creating an immediate security posture risk for any business use case.
No vendor-released patch identified at time of analysis. Interim mitigations: enforce app whitelisting via Mobile Device Management to prevent installation of untrusted applications; segment affected devices from networks accessing sensitive data or corporate systems; implement application sandbox hardening where device configuration permits; establish continuous monitoring for unauthorized root-level activity; consider discontinuing use of this device model and establishing timeline for fleet replacement pending vendor security update.
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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
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
EUVD-2026-53123
GHSA-v2vf-g6fh-j2m9
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB