Vulnérabilité dans github.com/xuri/excelize/v2 (CVE-2026-107218)
Résumé
Vulnérabilité dans github.com/xuri/excelize/v2 (CVE-2026-107218). Risque d'opérations non autorisées ou de divulgation. Exploitable via leftRight. Atténuation : mise à jour vers 2.11.1-0.20260908032718-ecd99d761fe0 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
leftRight (calc.go:14236) tests the length with countUTF16String, which counts a rune above U+FFFF as 2. The RIGHT branch on 14241 then slices []rune(text) at utf8.RuneCountInString(text)-numChars, which counts it as 1. For text with N such runes the two measures are 2N and N, so any numChars between them passes the guard and gives a negative index. The numChars < 0 check at 14216 does not help, since the value that gets through is positive.
What makes it worth reporting is AutoFitColWidth, which evaluates formulas without looking like it does, so normalising an uploaded sheet is enough to reach it. One scoping correction to my own wording there: AutoFitColWidth was added in v2.11.0 and does not exist at v2.10.1, so on v2.10.1 the only reachable path is an explicit CalcCellValue.
A 6,077-byte file containing two U+1D7D9 characters in A1 and RIGHT(A1,3) in B1 was created and then opened in a separate program without recovery enabled:
v2.9.1 ok
v2.10.0 ok
v2.10.1 panic: slice bounds out of range [-1:]
v2.11.0 panic: slice bounds out of range [-1:]
So it is a regression, not an old defect. Commit a880146 (2026-01-16) moved the guard to countUTF16String and left the slice on the rune index, and git tag --contains gives v2.10.1 and v2.11.0 only.
RIGHT only. RIGHTB reaches the same function but takes the byte branch at 14225, which is internally consistent, and I probed MID and MIDB from 1 to 5 with no panic. It is the same negative-ind…
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-107218 a été découverte dans github.com/xuri/excelize/v2.
Des attaquants peuvent cibler un point d'entrée spécifique comme leftRight à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation. Score CVSS : 5.3/10.
Action : mettez à jour github.com/xuri/excelize/v2 vers 2.11.1-0.20260908032718-ecd99d761fe0 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/xuri/excelize/v2 CVE-2026-107218 » sur le site de l'éditeur.
CVE-2026-107218 (github.com/xuri/excelize/v2) — CWE-129 / CVSS v3 5.3
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Surface d'attaque : leftRight / countUTF16String / numChars / AutoFitColWidth
Correctif : 2.11.1-0.20260908032718-ecd99d761fe0 — 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-129) affecte github.com/xuri/excelize/v2. Les attaquants atteignent le code vulnérable via leftRight sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/xuri/excelize/v2. Surface d'attaque : leftRight / countUTF16String / numChars / AutoFitColWidth.
Gravité : Moyenne (CVSS 5.3/10). Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 2.11.1-0.20260908032718-ecd99d761fe0.
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/xuri/excelize/v2' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/xuri/excelize/v2を grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade github.com/xuri/excelize/v2 to 2.11.1-0.20260908032718-ecd99d761fe0ステージング環境で 2.11.1-0.20260908032718-ecd99d761fe0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com