Vulnérabilité dans github.com/cloudreve/Cloudreve/v4 (CVE-2026-55497)
Résumé
Vulnérabilité dans github.com/cloudreve/Cloudreve/v4 (CVE-2026-55497). Risque d'opérations non autorisées ou de divulgation. Exploitable via PUT /api/v4/user/setting/avatar. Atténuation : mise à jour vers 4.0.0-20260613024411-3607f79bb44c ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
Cloudreve's built-in image processor decodes user-supplied images with Go's standard-library decoders (image/png, image/jpeg, image/gif) and guards only the compressed file size — never the decoded pixel dimensions. Go's decoders allocate a pixel buffer sized bytesPerPixel × width × height taken straight from the image header (e.g. a PNG's IHDR), with no upper bound on width/height. A tiny (tens-of-bytes) image that declares enormous dimensions therefore forces a multi-gigabyte-to-terabyte allocation (make([]uint8, …)), exhausting memory. The resulting out-of-memory condition is a fatal Go runtime error / kernel OOM-kill that recover() cannot catch, terminating the whole Cloudreve process for all users.
Two reachable sinks share the same root cause:
- Avatar upload (
PUT /api/v4/user/setting/avatar) — decodes synchronously in the request handler. Any authenticated user. Cleanest single-request PoC. - Thumbnail generation (built-in generator, enabled by default) — decodes in the thumbnail queue worker. Reachable for the user's own files and for files inside a share, so a planted bomb can be (re)triggered through a public share link.
Post-auth, low privilege. A single 65-byte upload deterministically takes the instance offline.
Details
Root cause — decode guarded by file size, not pixel count
The built-in generator is the default image thumbnailer:
// inventory/setting.go @ 26b6b10
"thumb_buil…
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-55497 a été découverte dans github.com/cloudreve/Cloudreve/v4.
Des attaquants peuvent cibler un point d'entrée spécifique comme PUT /api/v4/user/setting/avatar à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation. Score CVSS : 6.5/10.
Action : mettez à jour github.com/cloudreve/Cloudreve/v4 vers 4.0.0-20260613024411-3607f79bb44c ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/cloudreve/Cloudreve/v4 CVE-2026-55497 » sur le site de l'éditeur.
CVE-2026-55497 (github.com/cloudreve/Cloudreve/v4) — CWE-400 / CVSS v3 6.5
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : PUT /api/v4/user/setting/avatar / GET /api/v4/file/thumb / width / height
Correctif : 4.0.0-20260613024411-3607f79bb44c — 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/cloudreve/Cloudreve/v4. Les attaquants atteignent le code vulnérable via PUT /api/v4/user/setting/avatar.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/cloudreve/Cloudreve/v4. Surface d'attaque : PUT /api/v4/user/setting/avatar / GET /api/v4/file/thumb / width / height.
Gravité : Moyenne (CVSS 6.5/10). Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 4.0.0-20260613024411-3607f79bb44c.
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 webserver/proxy/WAF des requêtes anormales vers PUT /api/v4/user/setting/avatar (en-têtes d'auth malformés, méta-caractères SQL). Auditez les fichiers de dépendances pour trouver github.com/cloudreve/Cloudreve/v4.
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/cloudreve/Cloudreve/v4' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/cloudreve/Cloudreve/v4を grep し、稼働しているサービス・バージョンを把握する。 -
2Hunt for indicators of compromise detect
grep 'PUT /api/v4/user/setting/avatar' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
PUT /api/v4/user/setting/avatarへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3Apply patch patch
Upgrade github.com/cloudreve/Cloudreve/v4 to 4.0.0-20260613024411-3607f79bb44cステージング環境で 4.0.0-20260613024411-3607f79bb44c に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
4Post-deployment verification verify
Replay attack against PUT /api/v4/user/setting/avatar on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。
Paquets affectés
Références
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com