Vulnérabilité dans github.com/gotenberg/gotenberg/v8 (CVE-2026-45742)
Résumé
Vulnérabilité dans github.com/gotenberg/gotenberg/v8 (CVE-2026-45742). Risque d'opérations non autorisées ou de divulgation. Exploitable via downloadFrom. Atténuation : mise à jour vers 8.33.0 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
Gotenberg is vulnerable to a remote denial of service in multipart downloadFrom handling.
A multipart request containing multiple downloadFrom entries causes concurrent goroutines to write to shared maps without synchronization. This can terminate the process with fatal error: concurrent map writes.
In the default configuration, downloadFrom is enabled and authentication is disabled, so an exposed instance can be crashed by an unauthenticated remote attacker.
Details
The issue is in pkg/modules/api/context.go.
newContext parses multipart requests and processes the downloadFrom form field before the route handler runs. For each downloadFrom entry, it starts a goroutine via errgroup.Go():
pkg/modules/api/context.go:221
Each goroutine downloads a file and then writes to request context maps shared by all goroutines:
ctx.files[filename] = pathctx.diskToOriginal[path] = filenamectx.filesByField[...] = append(...)
Affected lines in current main:
pkg/modules/api/context.go:395pkg/modules/api/context.go:396pkg/modules/api/context.go:401
Go maps and slices are not safe for concurrent writes. A crafted multipart request with many downloadFrom entries can therefore trigger a runtime crash.
The vulnerable downloadFrom feature was introduced in commit f2b6bd3d. The first tagged release containing this code appears to be v8.10.0.
PoC
The following self-contained command creates a temporary test f…
Source: GitHub Security Advisories (Global) 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-45742 a été découverte dans github.com/gotenberg/gotenberg/v8.
Des attaquants peuvent cibler un point d'entrée spécifique comme downloadFrom à 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/gotenberg/gotenberg/v8 vers 8.33.0 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/gotenberg/gotenberg/v8 CVE-2026-45742 » sur le site de l'éditeur.
CVE-2026-45742 (github.com/gotenberg/gotenberg/v8) — CWE-362 / CVSS v3 7.5
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Surface d'attaque : downloadFrom / newContext / main / f2b6bd3d
Correctif : 8.33.0 — 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-362) affecte github.com/gotenberg/gotenberg/v8. Les attaquants atteignent le code vulnérable via downloadFrom sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/gotenberg/gotenberg/v8. Surface d'attaque : downloadFrom / newContext / main / f2b6bd3d.
Gravité : Élevée (CVSS 7.5/10). Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 8.33.0.
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/gotenberg/gotenberg/v8' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/gotenberg/gotenberg/v8を grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade github.com/gotenberg/gotenberg/v8 to 8.33.0ステージング環境で 8.33.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
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 security-advisories@github.com
- web github.com
- web security-advisories@github.com