{"id":"GHSA-jm48-m3rr-9hgg","revision":null,"records":[{"revision":"e869716d559c49f1b16fb65da14484cc","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-55477","aliases":[],"title":"Authenticated Arbitrary File Write via Database Import and Xray Log Path Manipulation","description":"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.","state":0,"publishedAt":"2026-06-25T15:00:36.36+00:00","modifiedAt":"2026-06-25T15:48:02.922+00:00","affected":[{"ecosystem":"Vendor product","name":"3x-ui","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"MHSanaei\",\n                    \"product\": \"3x-ui\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 3.3.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"severity":"HIGH"}],"references":["https://github.com/MHSanaei/3x-ui/security/advisories/GHSA-jm48-m3rr-9hgg"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-55477","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-55477","identifiers":["CVE-2026-55477"]},"retained":false,"historicalAffected":[]},{"revision":"49a9c5393e1a47beaa4e7cc1b0695fdf","observedAt":"2026-11-07T12:32:07.955+00:00","statement":{"source":"euvd","id":"EUVD-2026-39432","aliases":["CVE-2026-55477","GHSA-jm48-m3rr-9hgg"],"title":"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 store…","description":"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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"severity":null}],"references":["https://github.com/MHSanaei/3x-ui/security/advisories/GHSA-jm48-m3rr-9hgg"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-39432","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jun 25, 2026, 3:00:36 PM","dateUpdated":"Jun 25, 2026, 3:48:02 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-39432","identifiers":["EUVD-2026-39432","CVE-2026-55477","GHSA-jm48-m3rr-9hgg"]},"retained":false,"historicalAffected":[]},{"revision":"676fb8092e664d58a2cf9585b2358c25","observedAt":"2026-10-27T14:13:40.804+00:00","statement":{"source":"nvd","id":"CVE-2026-55477","aliases":[],"title":"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 store…","description":"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.","state":0,"publishedAt":"2026-06-25T16:16:40.033+00:00","modifiedAt":"2026-10-25T22:10:00.15+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"severity":"HIGH"}],"references":["https://github.com/MHSanaei/3x-ui/security/advisories/GHSA-jm48-m3rr-9hgg"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-55477","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-73"],"productCriteria":[],"sourceDates":{"published":"2026-06-25T16:16:40.033","lastModified":"2026-10-25T22:10:00.150"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-55477","identifiers":["CVE-2026-55477"]},"retained":false,"historicalAffected":[]},{"revision":"7ef7ea9d7d864deb94bb5b970b9ef912","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-jm48-m3rr-9hgg","aliases":["CVE-2026-55477","GO-2026-6284"],"title":"3X-UI Vulnerable to Authenticated Arbitrary File Write via Database Import and Xray Log Path Manipulation","description":"# Summary\n\nAn 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).\n\n# Details\n\nThe database import functionality trusts attacker-controlled configuration values without sufficient validation.\n\nAn 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.\n\nBecause 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.\n\n# PoC\n\n1. Authenticate as a panel administrator.\n2. Export the panel database.\n3. Modify `xrayTemplateConfig.log.access` to point to a writable target file (e.g. `~/.ssh/authorized_keys`).\n4. Inject an attacker-controlled SSH public key into an inbound client's `email` field.\n5. Import the modified database.\n6. Trigger a connection through the modified inbound.\n7. Xray writes the attacker-controlled content to the specified file, allowing SSH access as the user running Xray.\n\nA complete PoC is available and can be provided privately.\n\n# Impact\n\nType: Authenticated Arbitrary File Write -> Privilege Escalation / Code Execution\n\nAny 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 privileges.\n\nIn environments where Xray runs as root, successful exploitation results in persistent root access.\n\n# Patches\n\nFixed in **v3.3.1**.\n\n`resolveXrayLogPaths` (`internal/web/service/xray.go`) now confines the Xray `log.access` and `log.error` paths to the panel's log folder: any configured value is reduced to its base filename under `config.GetLogFolder()`. Absolute paths (such as `/etc/cron.d/...` or `~/.ssh/authorized_keys`) and `..` traversal can no longer make Xray write outside the log folder, while `\"\"` and `\"none\"` continue to disable logging. The confinement is applied during Xray configuration generation, so it covers every way the template can be set — the database import and the built-in raw Xray configuration editor alike.\n\n# Workarounds\n\nNone other than upgrading. Until you can update to v3.3.1, restrict panel administrator access to fully trusted operators.\n\n# Notes\n\nThe underlying issue is the unrestricted log path rather than the database import alone: an administrator can set the same `xrayTemplateConfig.log.access` / `log.error` value directly through the built-in raw Xray configuration editor, which is why the fix hardens the value at configuration-generation time to cover every vector. The client `email` field is also independently validated (control characters, spaces, and slashes are rejected), which constrains what can be written into a log line; the reliable primitive is therefore arbitrary file write (creation, append, or corruption) at an attacker-chosen path, with code execution dependent on a suitable writable target and the privileges of the Xray process.","state":0,"publishedAt":"2026-08-24T21:05:14+00:00","modifiedAt":"2026-08-26T01:21:46.139023+00:00","affected":[{"ecosystem":"Go","name":"github.com/mhsanaei/3x-ui/v3","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.3.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/mhsanaei/3x-ui/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"2.9.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/MHSanaei/3x-ui/security/advisories/GHSA-jm48-m3rr-9hgg","https://nvd.nist.gov/vuln/detail/CVE-2026-55477","https://github.com/MHSanaei/3x-ui/commit/80e168787ed608e83a065033ee94c8bfc3025ce7","https://github.com/MHSanaei/3x-ui","https://github.com/MHSanaei/3x-ui/releases/tag/v3.3.1"],"sourceUrl":"https://github.com/advisories/GHSA-jm48-m3rr-9hgg","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-jm48-m3rr-9hgg","identifiers":["GHSA-jm48-m3rr-9hgg","CVE-2026-55477","GO-2026-6284"]},"retained":false,"historicalAffected":[]},{"revision":"023e8df8609a495da319307faed19d44","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-6284","aliases":["CVE-2026-55477","GHSA-jm48-m3rr-9hgg"],"title":"3X-UI Vulnerable to Authenticated Arbitrary File Write via Database Import and Xray Log Path Manipulation in github.com/mhsanaei/3x-ui","description":"3X-UI Vulnerable to Authenticated Arbitrary File Write via Database Import and Xray Log Path Manipulation in github.com/mhsanaei/3x-ui","state":0,"publishedAt":"2026-08-25T19:43:10+00:00","modifiedAt":"2026-08-26T01:21:40.8536733+00:00","affected":[{"ecosystem":"Go","name":"github.com/mhsanaei/3x-ui","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/mhsanaei/3x-ui/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/mhsanaei/3x-ui/v3","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.3.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/MHSanaei/3x-ui/security/advisories/GHSA-jm48-m3rr-9hgg","https://nvd.nist.gov/vuln/detail/CVE-2026-55477","https://github.com/MHSanaei/3x-ui/commit/80e168787ed608e83a065033ee94c8bfc3025ce7","https://github.com/MHSanaei/3x-ui/releases/tag/v3.3.1"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-6284","license":"OSV · upstream source license applies","key":"osv:GO-2026-6284","identifiers":["GO-2026-6284","CVE-2026-55477","GHSA-jm48-m3rr-9hgg"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-07T20:52:46.7845564+00:00","complete":true,"records":1769,"lastAttemptAt":"2026-11-07T20:52:46.7845564+00:00","lastSuccessAt":"2026-11-07T20:52:46.9707302+00:00","error":null,"lastVerifiedAt":"2026-11-07T20:52:46.9707321+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-bb5c9d5a08063ef076042e33dd72a7d0ffa4c4487efdcf3106e29ba55ec2ad57-1766179264875bb4621a23ce4c6bcebec63fb794a16e35c2f5592f4ee300ee2e","complete":true,"records":420944,"lastAttemptAt":"2026-11-07T20:52:46.1142943+00:00","lastSuccessAt":"2026-11-07T20:52:46.0341312+00:00","error":null,"lastVerifiedAt":"2026-11-07T20:52:46.1142943+00:00","snapshotPublishedAt":"2026-11-07T20:26:36+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-cbfb00168958467aaa6015d5230faa08","complete":true,"records":13633,"lastAttemptAt":"2026-11-07T21:04:54.6100336+00:00","lastSuccessAt":"2026-11-07T21:04:54.606+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:04:54.606+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13685,"expectedIdentifiers":13685,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-07T20:52:46.7845564+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-07T20:52:46.7845564+00:00","lastSuccessAt":"2026-11-07T20:52:47.1482288+00:00","error":null,"lastVerifiedAt":"2026-11-07T20:52:47.1482303+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b9464f9c589b4886928e7045b5ad1e11","complete":true,"records":13645,"lastAttemptAt":"2026-11-07T20:52:54.6850231+00:00","lastSuccessAt":"2026-11-07T20:52:54.68+00:00","error":null,"lastVerifiedAt":"2026-11-07T20:52:54.68+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13685,"expectedIdentifiers":13685,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-0eb4d6dde62dffacd040ad992d4fd5a65cd7d0dc5f5f4cfa8b41967fc6f9ca5f","complete":true,"records":9914,"lastAttemptAt":"2026-11-07T20:52:46.6024506+00:00","lastSuccessAt":"2026-11-06T20:10:36.6450506+00:00","error":null,"lastVerifiedAt":"2026-11-07T20:52:46.6024506+00:00","snapshotPublishedAt":"2026-11-06T20:02:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-fde804134ecdda0ddd5ff5c26ee1fff5a6fa659311f7ef2e51c6ad54964db0e2","complete":true,"records":1971,"lastAttemptAt":"2026-11-07T20:52:46.3552169+00:00","lastSuccessAt":"2026-11-06T19:03:17.0399903+00:00","error":null,"lastVerifiedAt":"2026-11-07T20:52:46.3552169+00:00","snapshotPublishedAt":"2026-11-06T18:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-335633e78a15c9cde10a6025895b5617717087fb945489ae7e15d377bacf34a9","complete":true,"records":3055,"lastAttemptAt":"2026-11-07T20:52:46.7261257+00:00","lastSuccessAt":"2026-11-06T16:03:00.7615789+00:00","error":null,"lastVerifiedAt":"2026-11-07T20:52:46.7261257+00:00","snapshotPublishedAt":"2026-11-06T16:02:48+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-40ad6183a951565ace1520a9b4d631e1d0bfb1d4bf7c5574c375032559f3ff53","complete":true,"records":231292,"lastAttemptAt":"2026-11-07T20:52:46.4923243+00:00","lastSuccessAt":"2026-11-07T10:29:00.4821259+00:00","error":null,"lastVerifiedAt":"2026-11-07T20:52:46.4923243+00:00","snapshotPublishedAt":"2026-11-07T09:32:47+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}