CVE-2026-77633
HIGH 7.1CVSS 3.1Cloudreve: Storage-quota TOCTOU race allows quota bypass and storage-based denial of service
Cloudreve is a self-hosted file management and sharing system. Prior to 4.18.0, PrepareUpload in pkg/filemanager/fs/dbfs/upload.go checks a stale in-memory user storage value through validateUserCapacity and later applies an unconditional storage charge outside the same quota-enforcing transaction. An authenticated user with Files.Write permission can issue concurrent upload-session requests that read the same capacity snapshot, all pass the MaxStorage check, and reserve their declared sizes through CommitWithStorageDiff. The resulting reservations can exceed the account quota and can be materialized as chunked uploads that exhaust host storage and deny uploads to other users. The default local-storage policy and default User group are affected. This issue is fixed in version 4.18.0.
- Published
- 22 Sep 2026
- Last modified
- 1 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-362CWE-367CWE-770
- Also known as
- GHSA-xj3h-wwxq-gfcjGO-2026-6578
- Sources
- NVDJSONOSV GHSA-xj3h-wwxq-gfcjJSONOSV GO-2026-6578JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/cloudreve/Cloudreve/v4 | < 4.0.0-20260715025621-7329602751c0 | 4.0.0-20260715025621-7329602751c0 |
| OSV | Go | github.com/cloudreve/Cloudreve | all versions | |
| OSV | Go | github.com/cloudreve/Cloudreve/v3 | all versions |
References
- https://github.com/cloudreve/cloudreve/commit/7329602751c00bb4136fe9ad8b364d0df70773df · WEB
- https://github.com/cloudreve/cloudreve/releases/tag/4.18.0 · WEB
- https://github.com/cloudreve/cloudreve/security/advisories/GHSA-xj3h-wwxq-gfcj · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-77633 · ADVISORY
- https://github.com/cloudreve/cloudreve · PACKAGE
History
- 25 Nov 2026 21:21 UTC · NVD: first stored (published 22 Sep 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Oct 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Sep 2026)