PT-2026-64433 · Cloudreve · Cloudreve

CVE-2026-55497

·

Published

2026-07-24

·

Updated

2026-09-04

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Cloudreve versions prior to 4.17.0
Description Cloudreve contains an issue where the built-in image decoders for PNG, JPEG, and GIF formats limit only the compressed file size but do not restrict the decoded pixel dimensions. An authenticated user can upload a small image file that declares enormous dimensions in its header, forcing the system to attempt a multi-gigabyte memory allocation. This leads to a fatal out-of-memory condition that terminates the entire Cloudreve process, resulting in a complete loss of availability for all users.
This can be triggered through two primary paths:
  1. Avatar upload via the PUT /api/v4/user/setting/avatar endpoint.
  2. Thumbnail generation for files, which is enabled by default and can be triggered by users or anonymous visitors via public share links.
The issue occurs because the NewThumbFromFile() function uses standard Go library decoders that allocate pixel buffers based on the image header without an upper bound on width or height variables.
Recommendations Update Cloudreve to version 4.17.0. As a temporary mitigation, restrict the use of the PUT /api/v4/user/setting/avatar endpoint or disable the built-in thumbnail generator in the system settings.

Exploit

Fix

Resource Exhaustion

Allocation of Resources Without Limits

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-55497
GHSA-G9J2-8W95-3VWV
GO-2026-6100
OPENSUSE-SU-2026:21761-1

Affected Products

Cloudreve