Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cloudreve/Cloudreve/v4
  4. ›
  5. CVE-2026-55497

CVE-2026-55497: Cloudreve: Denial of Service - Image decompression / pixel bomb in thumbnail & avatar decoding crashes the server

July 24, 2026

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:

  1. Avatar upload (PUT /api/v4/user/setting/avatar) — decodes synchronously in the request handler. Any authenticated user. Cleanest single-request PoC.
  2. 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.

References

  • github.com/advisories/GHSA-g9j2-8w95-3vwv
  • github.com/cloudreve/cloudreve/commit/3607f79bb44c35d0be4fa8b6e24c0502b51415a9
  • github.com/cloudreve/cloudreve/releases/tag/4.17.0
  • github.com/cloudreve/cloudreve/security/advisories/GHSA-g9j2-8w95-3vwv
  • nvd.nist.gov/vuln/detail/CVE-2026-55497

Code Behaviors & Features

Detect and mitigate CVE-2026-55497 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.0.0-20260613024411-3607f79bb44c

Fixed versions

  • 4.0.0-20260613024411-3607f79bb44c

Solution

Upgrade to version 4.0.0-20260613024411-3607f79bb44c or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

go/github.com/cloudreve/Cloudreve/v4/CVE-2026-55497.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 18 Aug 2026 00:16:29 +0000.