Vulnérabilité dans github.com/mhsanaei/3x-ui/v3 (CVE-2026-55477)
Résumé
Vulnérabilité dans github.com/mhsanaei/3x-ui/v3 (CVE-2026-55477). L'exploitation peut entraîner la prise de contrôle totale du système. Exploitable via xrayTemplateConfig.log.access. Atténuation : mise à jour vers 3.3.1 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
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
- Authenticate as a panel administrator.
- Export the panel database.
- Modify
xrayTemplateConfig.log.accessto point to a writable target file (e.g.~/.ssh/authorized_keys). - Inject an attacker-controlled SSH public key into an inbound client's
emailfield. - Import the modified database.
- Trigger a connection through the modified inbound.
- Xray writes the attacker-controlled con…
Source: NIST National Vulnerability Database NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-55477 a été découverte dans github.com/mhsanaei/3x-ui/v3.
Des attaquants peuvent cibler un point d'entrée spécifique comme xrayTemplateConfig.log.access à distance pour détourner le produit.
L'exploitation peut entraîner la prise de contrôle totale du système. Score CVSS : 7.2/10.
Action : mettez à jour github.com/mhsanaei/3x-ui/v3 vers 3.3.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/mhsanaei/3x-ui/v3 CVE-2026-55477 » sur le site de l'éditeur.
CVE-2026-55477 (github.com/mhsanaei/3x-ui/v3) — CWE-20 / CVSS v3 7.2
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : xrayTemplateConfig.log.access / email / resolveXrayLogPaths / log.access
Correctif : 3.3.1 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-20) affecte github.com/mhsanaei/3x-ui/v3. Les attaquants atteignent le code vulnérable via xrayTemplateConfig.log.access.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/mhsanaei/3x-ui/v3. Surface d'attaque : xrayTemplateConfig.log.access / email / resolveXrayLogPaths / log.access.
Gravité : Élevée (CVSS 7.2/10). L'exploitation peut entraîner la prise de contrôle totale du système.
Mettre à jour vers 3.3.1.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'github.com/mhsanaei/3x-ui/v3' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/mhsanaei/3x-ui/v3を grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade github.com/mhsanaei/3x-ui/v3 to 3.3.1ステージング環境で 3.3.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com