CVE-2026-55477
# Summary 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). # Details The database import functionality trusts attacker-controlled configuration values without sufficient validation. An authenticated administrator can export the SQLite database, modify `xrayTemplateConfig.log.access` to point to an arbitrary file, and import the modified database back into the panel. The attacker can then inject controlled content into an inbound client's `email` field. When a connection is processed, Xray writes the attacker-controlled content to the configured access log path. Because the log path is fully attacker-controlled, this behavior results in arbitrary file write as the user running Xray. Depending on the target file and service privileges, this can be used to obtain code execution and persistent host access. # PoC 1. Authenticate as a panel administrator. 2. Export the panel database. 3. Modify `xrayTemplateConfig.log.access` to point to a writable target file (e.g. `~/.ssh/authorized_keys`). 4. Inject an attacker-controlled SSH public key into an inbound client's `email` field. 5. Import the modified database. 6. Trigger a connection through the modified inbound. 7. Xray writes the attacker-controlled content to the specified file, allowing SSH access as the user running Xray. A complete PoC is available and can be provided privately. # Impact Type: Authenticated Arbitrary File Write -> Privilege Escalation / Code Execution Any authenticated 3X-UI administrator can write attacker-controlled content to arbitrary files accessible by the Xray process. This allows compromise of the account running Xray and may lead to full host compromise depending on deployment configuration and service privile
Properties
- ghsa_id
- GHSA-jm48-m3rr-9hgg
- severity
- high
- summary
- 3X-UI Vulnerable to Authenticated Arbitrary File Write via Database Import and Xray Log Path Manipulation
- cvss_score
- 7.2
- cve_id
- CVE-2026-55477
- cvss_vector
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- is_ghsa_only
- false
- ghsa_published
- 2026-08-24T21:05:14Z
- source_url
- https://github.com/advisories/GHSA-jm48-m3rr-9hgg
- ghsa_updated
- 2026-08-24T21:05:15Z
Related Entities (7)
VULNERABLE_TO (2)
AFFECTS (2)
HAS_WEAKNESS (2)
REPORTED_BY (1)
Explore deeper with Ninja Signal's threat intelligence graph