{"answers":{"affected":"7 open source packages ship an affected version, including github.com/mhsanaei/3x-ui/v2, github.com/mhsanaei/3x-ui and github.com/mhsanaei/3x-ui/v3.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-55477 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-55477 is a high-severity path traversal vulnerability in MHSanaei 3x-ui, published on 25 Jun 2026. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-55477 and fix it if it is affected.\n\nWhat it is: CVE-2026-55477 is a high-severity path traversal vulnerability in MHSanaei 3x-ui, published on 25 Jun 2026. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-55477 exists.\n\nAffected packages and fixed versions:\n- github.com/mhsanaei/3x-ui/v2 (Go): affected all versions; no fix listed\n- github.com/mhsanaei/3x-ui/v2 (Go): affected all versions up to 2.9.4; no fix listed\n- github.com/mhsanaei/3x-ui/v2 (Go): affected all versions up to 2.9.4; no fix listed\n- github.com/mhsanaei/3x-ui (Go): affected all versions; no fix listed\n- github.com/mhsanaei/3x-ui/v3 (Go): affected all versions; fixed in 3.3.1\n- github.com/mhsanaei/3x-ui/v3 (Go): affected all versions; fixed in 3.3.1\n- github.com/mhsanaei/3x-ui/v3 (Go): affected all versions; fixed in 3.3.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-55477/ (Markdown: https://insights.sbomify.com/CVE-2026-55477/index.md)","id":"CVE-2026-55477","markdown":"https://insights.sbomify.com/CVE-2026-55477/index.md","name":"CVE-2026-55477","record":{"aliases":["GHSA-jm48-m3rr-9hgg","GO-2026-6284"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Xray management panel","requires_auth":"high_privilege","summary":"Authenticated administrators can achieve arbitrary file write and code execution by manipulating Xray log paths via database import.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Authenticated Arbitrary File Write via Database Import and Xray Log Path Manipulation","id":"CVE-2026-55477","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":7,"n_references":1,"next":{"headline":"Snipe-IT: Missing object-level authorization in Kits API","id":"CVE-2026-55478"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/mhsanaei/3x-ui","purl":"pkg:golang/github.com/mhsanaei/3x-ui","source":"GO-2026-6284"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/mhsanaei/3x-ui/v2","purl":"pkg:golang/github.com/mhsanaei/3x-ui/v2","source":"GO-2026-6284"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.9.4"],"package":"github.com/mhsanaei/3x-ui/v2","purl":null,"source":"GHSA-jm48-m3rr-9hgg"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.9.4"],"package":"github.com/mhsanaei/3x-ui/v2","purl":"pkg:golang/github.com/mhsanaei/3x-ui/v2","source":"GHSA-jm48-m3rr-9hgg"},{"ecosystem":"Go","fixed":["3.3.1"],"introduced":["0"],"last_affected":[],"package":"github.com/mhsanaei/3x-ui/v3","purl":null,"source":"GHSA-jm48-m3rr-9hgg"},{"ecosystem":"Go","fixed":["3.3.1"],"introduced":["0"],"last_affected":[],"package":"github.com/mhsanaei/3x-ui/v3","purl":"pkg:golang/github.com/mhsanaei/3x-ui/v3","source":"GHSA-jm48-m3rr-9hgg"},{"ecosystem":"Go","fixed":["3.3.1"],"introduced":["0"],"last_affected":[],"package":"github.com/mhsanaei/3x-ui/v3","purl":"pkg:golang/github.com/mhsanaei/3x-ui/v3","source":"GO-2026-6284"}],"prev":{"headline":"Snipe-IT: Unauthorized Asset Request Cancellation via Unguarded cancel_by_admin Parameter","id":"CVE-2026-55476"},"products":["3x-ui"],"published":"2026-06-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-06-25","vendors":["MHSanaei"]},"summary":"Authenticated administrators can achieve arbitrary file write and code execution by manipulating Xray log paths via database import.","url":"https://insights.sbomify.com/CVE-2026-55477/"}