HIGH 7.2

CVE-2026-55477: 3X-UI Admin Database Import Arbitrary File Write (CVSS 7.2)

3X-UI, a web-based control panel for managing Xray-core proxy servers, contains a vulnerability in its database import feature that allows authenticated administrators to write arbitrary files to the server. An attacker with admin credentials can manipulate Xray configuration values during import to place malicious files on disk, potentially leading to code execution with the privileges of the Xray process—which may be root. The vulnerability affects all versions prior to 3.3.1 and is resolved in that release.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.2 HIGH · CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Weaknesses (CWE)
CWE-73
Affected products
0 configuration(s)
Published / Modified
2026-06-25 / 2026-06-25

NVD description (verbatim)

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.

2 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability exists in 3X-UI's database import functionality, which fails to properly validate or sanitize Xray configuration values before writing them to the filesystem. An authenticated administrator can craft a malicious database import that modifies configuration parameters to specify arbitrary file paths and content. Because Xray configuration is typically trusted and may be parsed with elevated privileges, this enables arbitrary file write. The attack surface is limited to authenticated users with administrative privileges, but the impact is severe: an attacker can write files into critical directories, potentially including executable locations or configuration directories that Xray loads at startup, resulting in code execution within the Xray process context.

Business impact

If an administrator account is compromised or if a malicious insider gains administrative access to 3X-UI, they can achieve persistent code execution on the underlying Xray servers. This can lead to traffic interception, malicious routing configuration, unauthorized access to encrypted communications, or lateral movement into the network. Organizations relying on Xray-core for proxy/VPN functionality face loss of confidentiality and integrity of traffic flowing through the infrastructure. Recovery requires identifying compromised configuration files and potentially reimaging affected systems.

Affected systems

3X-UI versions prior to 3.3.1 are affected. The vulnerability requires an authenticated administrator account, so exposure is limited to environments where admin credentials are at risk or where untrusted users have been granted admin roles. The impact scales with the privileges of the Xray process; if Xray runs as root, code execution is root-level.

Exploitability

Exploitation requires valid administrative credentials for the 3X-UI panel. No network-layer exploit or unauthenticated bypass is known. However, the attack itself is straightforward once authenticated: an attacker simply imports a specially crafted database with malicious configuration values. The barrier to exploitation is thus credential compromise rather than technical complexity. The ability to achieve code execution makes this high-priority despite the authentication requirement.

Remediation

Upgrade 3X-UI to version 3.3.1 or later. Organizations should also audit administrative access logs to detect any suspicious import activities or file modifications that may have occurred before patching. Review file integrity monitoring logs for unexpected changes in Xray configuration or binary directories. If administrative credentials may have been compromised, reset them and review recent activity.

Patch guidance

Verify your installed version of 3X-UI and upgrade to 3.3.1 or later according to the project's release instructions. Ensure Xray-core is restarted cleanly after the upgrade to clear any in-memory state. Test the import functionality in a staging environment if possible to confirm patch behavior before production deployment. Document the upgrade timestamp for audit records.

Detection guidance

Monitor for suspicious database import operations, particularly imports that modify Xray configuration paths or file permissions. Watch for unexpected file creation or modification in directories where Xray stores configuration or binaries. Enable audit logging on the 3X-UI panel if available and correlate import events with filesystem changes. Check Xray process logs for errors or unexpected configuration loads that might indicate a compromise. File integrity monitoring tools can alert on unauthorized changes to Xray config or executable directories.

Why prioritize this

This vulnerability scores 7.2 (HIGH) due to the combination of high confidentiality, integrity, and availability impact with low attack complexity. Although authentication is required, the severity of the impact—remote code execution as the Xray user, potentially root—and the likelihood that admin credentials could be compromised via phishing, credential reuse, or insider threat elevate this to urgent priority. Organizations should prioritize patching within their standard high-severity window.

Risk score, explained

The CVSS 3.1 score of 7.2 reflects: (1) Network accessibility (AV:N), reducing the barrier to exploitation; (2) low attack complexity (AC:L), as the exploit requires only standard database import functionality; (3) high privilege requirement (PR:H), which limits the initial threat actors but does not eliminate it; (4) no user interaction (UI:N); (5) unchanged scope (S:U); and (6) complete impact across confidentiality, integrity, and availability (C:H/I:H/A:H), since code execution can be weaponized for any objective. The score appropriately reflects a high-risk vulnerability that should be treated as critical in environments where admin credential compromise is plausible.

Frequently asked questions

Can this vulnerability be exploited without administrative credentials?

No. The attack requires an authenticated administrator account on the 3X-UI panel. However, the vulnerability becomes critical if an admin account is compromised through phishing, credential reuse, or insider threat, making credential hygiene and strong access controls essential.

If Xray is running as a non-root user, is the impact reduced?

Yes, somewhat. Code execution would be limited to that non-root user's privileges. However, this can still lead to traffic manipulation, unauthorized data access within Xray's scope, and lateral movement. Running Xray as non-root is recommended as a defense-in-depth measure but does not eliminate the severity.

Do I need to reinstall Xray after patching 3X-UI?

No, upgrading 3X-UI to 3.3.1 and restarting the Xray service should be sufficient. However, if you suspect that the vulnerability was exploited before patching, you should audit configuration files and consider reimaging the host.

Are there any workarounds if I cannot upgrade immediately?

Strict access controls on administrative accounts, network segmentation to limit 3X-UI access, and disabling the database import feature if not regularly used are potential interim mitigations. However, upgrading to 3.3.1 is the definitive fix and should be prioritized.

This analysis is based on the official CVE record and vendor advisory. No exploit code or weaponized proof-of-concept is provided. Organizations should verify patch availability and compatibility with their environment before deployment. Actual risk may vary based on network architecture, access controls, and the sensitivity of systems running Xray-core. This page is for informational purposes; consult your security team and vendor documentation for authoritative guidance. Source: NVD (public-domain), retrieved 2026-08-03. Analysis generated by SEC.co (claude-haiku-4-5).