Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain admin credentials for 3X-UI panel
-
DeliveryAuthenticate to web control panel
-
ExploitCraft malicious database export with Xray config paths
-
InstallTrigger database import to write file
-
C2Place payload in privileged path
-
ExecuteAchieve code execution as Xray user
-
ImpactEstablish persistent root access
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
|
| Exploitation Conditions | Exploitation requires an authenticated 3X-UI administrator session (CVSS PR:H) and access to the panel's database import functionality; the attacker abuses Xray configuration values stored in the database to direct an arbitrary file write on the host. The concrete prerequisite is the ability to supply and import a crafted database/configuration into 3X-UI versions before 3.3.1. The severity of the outcome scales with how Xray is run: full root compromise only occurs when Xray runs as root, whereas a less-privileged service account limits the write to that account's permissions. Limiting factors: no exploitation is possible without valid admin credentials and reachability to the panel, so panels restricted to localhost/VPN or protected by strong authentication and 2FA are not exploitable by external unauthenticated actors. |
| Impact | The CVSS 3.1 base score is 7.2 (High) with vector AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H - network-reachable and low-complexity, but gated by PR:H, i.e. it requires an already-authenticated administrator. This is the dominant mitigating factor: the attacker must already control the panel, so the realistic threat model is a malicious/compromised admin, credential theft, or an exposed panel with weak/default credentials, rather than opportunistic mass exploitation. No EPSS score, KEV entry, or POC was provided in the input, so there is no signal of active or automated exploitation; SSVC inputs (exploitation status, automatable, technical impact) were not supplied. The technical impact is severe (root-level code execution and persistence), but the privilege prerequisite keeps this in the 'high but not emergency' tier for most deployments - prioritize for any internet-exposed 3X-UI instance, where credential compromise plausibly bridges the PR:H gap. |
| Exploit ScenarioDerived | An attacker who has obtained 3X-UI administrator access - for example by phishing or reusing leaked credentials against an internet-exposed panel - crafts a malicious database export that embeds Xray configuration values pointing a file write to a sensitive host path such as a cron directory, an SSH authorized_keys file, or a service startup script. Using the panel's database import functionality, they trigger the write and obtain code execution as the Xray user (root where Xray runs as root), establishing persistent access. No public proof-of-concept was identified in the provided data, and the network-reachable, low-complexity vector means the only real barrier is obtaining the administrator session. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 25, 2026
Arbitrary file write in 3X-UI, a web control panel for managing Xray-core proxy servers, allows an authenticated administrator to write attacker-controlled files anywhere on the host by tampering with Xray configuration values through the database import feature in versions prior to 3.3.1. Because the written files execute in the context of the Xray process - frequently root in self-hosted deployments - this escalates to full code execution and persistent host compromise. No public exploit identified at time of analysis, and the issue is not listed in CISA KEV; it is resolved in release 3.3.1.
RemediationAI
Upgrade to 3X-UI 3.3.1, which contains the fix, per the vendor advisory at https://github.com/MHSanaei/3x-ui/security/advisories/GHSA-jm48-m3rr-9hgg (vendor-released patch: 3.3.1). Until the upgrade is applied, reduce exposure by ensuring the panel is not reachable from the public internet - bind it to localhost and reach it over an SSH tunnel or VPN, and place it behind an IP allowlist or reverse-proxy authentication - which limits who can authenticate and reach the database import feature at the cost of less convenient remote administration. Rotate the administrator credentials and enforce strong, unique passwords plus two-factor where available to shrink the credential-theft path that bridges the PR:H requirement. As a defense-in-depth control with an availability trade-off, run Xray under a dedicated unprivileged service account rather than root so that an arbitrary write does not immediately yield root-level persistence; note this may require granting CAP_NET_BIND_SERVICE or using higher ports. Avoid importing untrusted database exports.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 4 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
3X-UI is a Go-based web administration panel that wraps Xray-core, storing proxy and inbound/outbound configuration in a backing database. The vulnerability is classed as CWE-73 (External Control of File Name or Path): configuration values that the application later materializes to disk are not constrained to a safe directory, so an operator who supplies a crafted database export and re-imports it can steer a write to an arbitrary host path. The CPE cpe:2.3:a:mhsanaei:3x-ui:*:*:*:*:*:*:*:* confirms the affected component is the MHSanaei 3x-ui project across all versions below the fixed build. Because Xray frequently runs as a privileged service to bind low ports and manage networking, the file write inherits that privilege level.
Know when 3x Ui 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:H/UI:N/S:U/C:H/I:H/A:H
Network-reachable panel feature (AV:N/AC:L) but requires an authenticated admin (PR:H); arbitrary file write yields code execution with full C/I/A impact and no scope change.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
3X-UI is a web control panel for managing Xray-core servers. Prior to 3.3.1, an authenticated administrator can abuse the database import functionality to achieve arbitrary file write on the host by modifying Xray configuration values stored in the database. This can be leveraged to obtain code execution and persistent access as the user running Xray (including root when Xray is running as root). This vulnerability is fixed in 3.3.1.
Executive ViewAI
3X-UI versions prior to 3.3.1 allow authenticated administrators to write arbitrary files with Xray process privileges-typically root in self-hosted environments-enabling complete system compromise. Organizations using affected versions face risk of insider threats and persistent infrastructure compromise through the database import feature.
Apply vendor patch.
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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-39432
GHSA-jm48-m3rr-9hgg
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB