# CVE-2026-77633: Cloudreve TOCTOU race in storage-quota check and charge

Source: https://junglewise.ai/threats/cve-2026-77633-cloudreve-toctou-race-in-storage-quota-check-and-charge  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-22. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-77633 · Severity: high · CVSS 7.1 · Published 2026-09-22

Cloudreve is a self-hosted file-sharing and storage application. A race condition in the upload process allows authenticated users to bypass storage quotas and exhaust disk space, denying service to all other users. Any user account can trigger this flaw; no special privileges or configuration changes are required.

Technologies: [Cloudreve](https://junglewise.ai/threats/technologies/cloudreve), [github.com/cloudreve/Cloudreve (Go)](https://junglewise.ai/threats/technologies/github-com-cloudreve-cloudreve), [github.com/cloudreve/Cloudreve/v3 (Go)](https://junglewise.ai/threats/technologies/github-com-cloudreve-cloudreve-v3), [github.com/cloudreve/Cloudreve/v4 (Go)](https://junglewise.ai/threats/technologies/github-com-cloudreve-cloudreve-v4). Vendors: [Cloudreve](https://junglewise.ai/threats/vendors/cloudreve), [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2026-77633 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-77633 being exploited in the wild.

**How severe is CVE-2026-77633?** High severity, with a CVSS score of 7.1, published 22 September 2026.

**Which products and versions are affected?** Cloudreve v4; github.com/cloudreve/Cloudreve (Go) SEMVER:introduced=0; github.com/cloudreve/Cloudreve/v3 (Go) SEMVER:introduced=0; github.com/cloudreve/Cloudreve/v4 (Go) < 4.0.0-20260715025621-7329602751c0, SEMVER:introduced=0,fixed=4.0.0-20260715025621-7329602751c0.

**Is there a fix for CVE-2026-77633?** Yes. github.com/cloudreve/Cloudreve/v4 (Go): upgrade to 4.0.0-20260715025621-7329602751c0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-77633 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-77633?** Check whether you run Cloudreve, github.com/cloudreve/Cloudreve (Go), github.com/cloudreve/Cloudreve/v3 (Go) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/cloudreve/Cloudreve/v4 (Go): upgrade to 4.0.0-20260715025621-7329602751c0 or later

  ```sh
  go get github.com/cloudreve/Cloudreve/v4@v4.0.0-20260715025621-7329602751c0
  ```


## Technical details

The vulnerability is a Time-of-Check to Time-of-Use (TOCTOU) race condition in the PrepareUpload code path. The storage-quota check reads the user's current storage consumption and compares it against MaxStorage (Stage A), but this check and the subsequent charge operation (Stage B, which increments users.storage) are not atomic and lack row-level locking. Between these stages, concurrent requests can each read the same stale storage snapshot, all pass the quota check independently, and then all commit their size increments—resulting in total usage far exceeding the quota. An attacker with valid user credentials and Files.Write permission can exploit this by issuing concurrent upload requests; this is amplifiable into a denial-of-service by reserving space beyond the host's physical disk and materializing it through chunked uploads. The default deployment is vulnerable.

## Affected products

- Cloudreve Cloudreve v4

## Identifiers

- CVE-2026-77633
- GHSA-xj3h-wwxq-gfcj
- GO-2026-6578

## Timeline

- 2026-09-22: disclosed
- other: CVE-2026-77633 assigned

## Related threats

- [Cloudreve access control bypass in share validation](https://junglewise.ai/threats/cve-2026-101056-cloudreve-before-4-16-1-fails-to-revalidate-share-access-when)
- [Cloudreve authorization bypass in admin node test endpoints](https://junglewise.ai/threats/cve-2026-101048-cloudreve-before-4-17-0-registers-the-administrative-node-test)
- [Cloudreve SSRF guard bypass via IPv6 transition wrappers](https://junglewise.ai/threats/cve-2026-79913-cloudreve-ssrf-guard-bypass-via-ipv6-transition-wrappers)
- [Cloudreve privilege scope bypass in admin API endpoints](https://junglewise.ai/threats/cve-2026-77637-cloudreve-privilege-scope-bypass-in-admin-api-endpoints)
- [GO-2026-6289 - Cloudreve's remote download file paths can escape the selected destination directory in…](https://junglewise.ai/threats/go-2026-6289-cloudreve-s-remote-download-file-paths-can-escape-the-0fd07225)
