# CVE-2026-77633: Cloudreve: Storage-quota TOCTOU race allows quota bypass and storage-based denial of service

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-09-22T15:28:56.700Z
- Modified: 2026-10-01T20:55:42.489Z
- Also known as: GHSA-xj3h-wwxq-gfcj, GO-2026-6578
- Weaknesses: CWE-362, CWE-367, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- cloudreve cloudreve: < 4.18.0
- github.com/cloudreve/Cloudreve/v4 (Go): before 4.0.0-20260715025621-7329602751c0
- github.com/cloudreve/Cloudreve (Go): all versions
- github.com/cloudreve/Cloudreve/v3 (Go): all versions

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H`

## References

- <https://github.com/cloudreve/cloudreve/security/advisories/GHSA-xj3h-wwxq-gfcj> (advisory, web)
- <https://github.com/cloudreve/cloudreve/commit/7329602751c00bb4136fe9ad8b364d0df70773df> (web)
- <https://github.com/cloudreve/cloudreve/releases/tag/4.18.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-77633> (advisory)
- <https://github.com/cloudreve/cloudreve> (package)

## Sources

- CVE List: [CVE-2026-77633](https://www.cve.org/CVERecord?id=CVE-2026-77633), CVE Terms of Use, modified 2026-09-25
- GitHub Advisory Database: [GHSA-xj3h-wwxq-gfcj](https://github.com/advisories/GHSA-xj3h-wwxq-gfcj), CC-BY-4.0, modified 2026-10-01
- Go Vulnerability Database: [GO-2026-6578](https://pkg.go.dev/vuln/GO-2026-6578), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-77633](https://nvd.nist.gov/vuln/detail/CVE-2026-77633), Public domain, modified 2026-09-26

---

Page: https://cve.day/CVE-2026-77633 · Whole record: https://cve.day/CVE-2026-77633.json · Rebuilt by cve.day 2026-11-25T22:59:40.456Z
