Skip to main content

Cloudreve CVE-2026-55502

| EUVDEUVD-2026-51394 HIGH
Incorrect Authorization (CWE-863)
2026-07-24 https://github.com/cloudreve/cloudreve GHSA-hq88-5x99-x3gf
7.1
CVSS 3.1 · Vendor: https://github.com/cloudreve/cloudreve
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain OAuth bearer token with Admin.Read scope
  2. Exploit
    Send crafted POST to /api/v4/admin/policy/oauth/signin with malicious secret and app_id
  3. Execution
    Overwrite OneDrive storage policy credentials on the server
  4. Impact
    Redirect future OAuth flows for that policy to attacker-controlled application

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the Cloudreve instance has at least one OneDrive storage policy configured. An admin user must have authorized an OAuth client with only the Admin.Read scope (not Admin.Write), and that OAuth client must have obtained a valid bearer token for the admin. The attacker must know the ID of an existing OneDrive policy. Without these conditions, or if all OAuth clients are scoped with Admin.Write, the vulnerability cannot be triggered.

Impact

The CVSS 3.1 vector is AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L, indicating a network-accessible, low-complexity attack requiring low privileges (an OAuth bearer token with read scope) and no user interaction. The impact is confined to the vulnerable component, with high integrity impact (credential overwrite) and low availability impact (potential storage backend disruption). No EPSS score is available, and the vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog. A public proof-of-concept exists but there is no evidence of active exploitation. The combination of required authentication and specific preconditions (OneDrive policy present, authorized OAuth client with limited scope) moderates the overall risk, though an attacker who obtains such a token can silently poison the storage configuration.

Exploit ScenarioDerived

An attacker obtains a bearer token for an admin user that has authorized an OAuth client with only the Admin.Read scope. Using this token, the attacker sends a crafted POST request to /api/v4/admin/policy/oauth/signin with a target policy ID and attacker-controlled credentials. The server, missing the write-scope check, permanently overwrites the OneDrive storage policy's secret and app ID, breaking the storage backend or enabling future OAuth redirection to the attacker’s application.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 27, 2026

Cloudreve versions earlier than 4.17.0 contain an incorrect authorization flaw in the OAuth scoping of admin storage policy routes. An attacker with a bearer token scoped only to Admin.Read can send a request to the vulnerable endpoint and overwrite OneDrive storage policy credentials, violating the intended scope boundary. A publicly available proof-of-concept exists, and the vendor has released a patched version.

RemediationAI

Upgrade Cloudreve to version 4.17.0, where the missing RequiredScopes(ScopeAdminWrite) middleware has been added to the oauth.POST("signin", ...) route. For v3 installations, no official patch is planned; consider migrating to v4.17.0 or later. As a temporary workaround, restrict OAuth applications from being granted Admin.Read scope unless absolutely necessary, and audit existing OAuth authorizations to remove unnecessary read-only admin access to reduce the risk of token abuse until the upgrade can be applied.

Affected VersionsENISA

Cloudreve < 4.17.0

Affected Packages

go github.com/cloudreve/cloudreve no fix
go github.com/cloudreve/cloudreve/v3 no fix
go github.com/cloudreve/cloudreve/v4 fix: 4.17.0
euvd cloudreve fix: 4.17.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the Go-based Cloudreve web application, specifically in the Gin router and admin OAuth policy handlers. The root cause is a missing RequiredScopes(ScopeAdminWrite) middleware guard on the POST /api/v4/admin/policy/oauth/signin route, while the router group itself only enforces ScopeAdminRead. This allows an OAuth bearer token with insufficient privileges to invoke a handler that persists attacker-controlled secret and app_id values into a OneDrive storage policy object. The weakness is classified as CWE-863 (Incorrect Authorization). Affected packages identified via CPE include pkg:go/github.com_cloudreve_cloudreve_v4 (v4.x) and pkg:go/github.com_cloudreve_cloudreve_v3 (v3.x).

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/cloudreve/cloudreve) PRIMARY 7.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
vuln.today AI 7.1 HIGH

Authenticated attacker with read-only token can remotely overwrite storage credentials, causing integrity loss and limited availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
SUSE HIGH

Primary rating from Vendor (https://github.com/cloudreve/cloudreve).

CVSS VectorVendor: https://github.com/cloudreve/cloudreve

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low

DescriptionCVE.org

Summary

Cloudreve 4.16.1 has an OAuth scope authorization bypass in the admin storage policy routes. An OAuth bearer token scoped to Admin.Read but not Admin.Write can call POST /api/v4/admin/policy/oauth/signin and update OneDrive storage policy credentials.

The route is inside the admin group that requires Admin.Read, but it does not add the local Admin.Write guard used by sibling policy mutation routes. Its handler persists attacker-supplied secret and app_id values into the selected OneDrive storage policy before returning an OAuth URL.

Impact

An OAuth application that was granted only read-only admin scope can modify persistent storage backend configuration for a OneDrive policy. This can break the storage backend, replace the stored application secret and app ID, and redirect future OAuth setup for that policy to attacker-controlled application parameters. The attack crosses the intended OAuth scope boundary because Admin.Write is required for sibling storage policy mutation routes.

Reproduction

Preconditions:

  1. The instance has a OneDrive storage policy.
  2. An admin user authorizes an OAuth client for Admin.Read but not Admin.Write.
  3. The OAuth client obtains a bearer access token for that admin user.

Send the following request with that read-only admin scoped token:

http
POST /api/v4/admin/policy/oauth/signin HTTP/1.1
Authorization: Bearer <admin OAuth token scoped to Admin.Read only>
Content-Type: application/json

{"id":1,"secret":"attacker-secret","app_id":"attacker-app-id"}

Expected secure result: the request is rejected with an insufficient-scope error because it changes storage policy credentials.

Actual result: the request reaches AdminOdOAuthURL, and GetOauthRedirectService.GetOAuth() persists the supplied values to the storage policy.

Root cause

routers/router.go applies RequiredScopes(types.ScopeAdminRead) to the authenticated admin route group. Sibling policy mutation routes add local RequiredScopes(types.ScopeAdminWrite) guards, for example policy create, policy update, CORS creation, OAuth callback, and policy delete.

The OneDrive OAuth signin route is missing that local write-scope guard:

go
oauth.POST("signin",
    controllers.FromJSON[adminsvc.GetOauthRedirectService](adminsvc.GetOauthRedirectParamCtx{}),
    controllers.AdminOdOAuthURL,
)

The handler performs a persistent write in service/admin/policy.go:

go
policy.Settings.OauthRedirect = routes.MasterPolicyOAuthCallback(dep.SettingProvider().SiteURL(c)).String()
policy.SecretKey = service.Secret
policy.BucketName = service.AppID
policy, err = storagePolicyClient.Upsert(c, policy)

The request fields secret and app_id come directly from the caller.

PoC evidence

A focused scope test confirmed that a request context with only Admin.Read fails CheckScope(c, types.ScopeAdminWrite), while Admin.Write implies Admin.Read. Therefore write routes must add RequiredScopes(types.ScopeAdminWrite) explicitly. The vulnerable route does not do so, and the handler writes the policy fields shown above.

Remediation

Add middleware.RequiredScopes(types.ScopeAdminWrite) to oauth.POST("signin", ...) before the JSON handler. Consider auditing other admin test routes that perform outbound network or mail actions under only Admin.Read, but this persistent credential update should be fixed first.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
Medium
self-hosted cloud storage platform with moderate community and enterprise adoption, not ubiquitous
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy