Vulnérabilité dans github.com/xuri/excelize/v2 (CVE-2026-107219)
Résumé
Vulnérabilité dans github.com/xuri/excelize/v2 (CVE-2026-107219). Risque d'opérations non autorisées ou de divulgation. Exploitable via openReaderAt. Atténuation : mise à jour vers 2.11.1-0.20260906004932-2badfcd5841d ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Opening a file whose first eight bytes are the OLE magic number sends excelize down the decryption path whether or not the caller set a password, or supports encrypted workbooks at all. openReaderAt (excelize.go:198-215) branches on the header alone, and agileDecrypt calls convertPasswdToKey before the verifier hash is checked, so the key-derivation loop runs spinCount times regardless.
spinCount (crypt.go:98) is a plain int filled by a bare xml.Unmarshal of the file's own EncryptionInfo stream. Nothing bounds it.
A 3072-byte file with spinCount 100000000 makes OpenFile take 58.65s on v2.11.0 with default options, then return zip: not a valid zip file. It is linear at about 0.6 microseconds per iteration and the attacker picks the number, so 1e9 is roughly ten minutes. Nothing on the path takes a context.Context, so the caller cannot cancel it; in an HTTP handler the write timeout returns a response while the goroutine keeps spinning. Memory stays flat at 24 MB, so nothing reclaims it either.
v2.5.0 spinCount=10000000 5.307s
v2.9.1 spinCount=10000000 5.444s
v2.11.0 spinCount=10000000 7.529s
v2.11.0 spinCount=100000000 58.654s
The loop arrived with crypt.go in v2.3.1 and is unchanged through v2.11.0.
Excel and LibreOffice write spinCount 100000, which costs 61ms here, so a ceiling well above the legitimate value would cost real files nothing.
This is availability only, and it is not a vulnerability for a program that only opens…
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-107219 a été découverte dans github.com/xuri/excelize/v2.
Des attaquants peuvent cibler un point d'entrée spécifique comme openReaderAt à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation. Score CVSS : 7.5/10.
Action : mettez à jour github.com/xuri/excelize/v2 vers 2.11.1-0.20260906004932-2badfcd5841d ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/xuri/excelize/v2 CVE-2026-107219 » sur le site de l'éditeur.
CVE-2026-107219 (github.com/xuri/excelize/v2) — CWE-400 / CVSS v3 7.5
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Surface d'attaque : openReaderAt / agileDecrypt / convertPasswdToKey / spinCount
Correctif : 2.11.1-0.20260906004932-2badfcd5841d — 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-400) affecte github.com/xuri/excelize/v2. Les attaquants atteignent le code vulnérable via openReaderAt sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/xuri/excelize/v2. Surface d'attaque : openReaderAt / agileDecrypt / convertPasswdToKey / spinCount.
Gravité : Élevée (CVSS 7.5/10). Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 2.11.1-0.20260906004932-2badfcd5841d.
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.20260906004932-2badfcd5841dステージング環境で 2.11.1-0.20260906004932-2badfcd5841d に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- exploit security-advisories@github.com
- patch security-advisories@github.com
- patch security-advisories@github.com
- web github.com