Cloudreve: Path Traversal in WOPI PUT_RELATIVE Allows Arbitrary File Creation in Owner Account
cloudreve
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/cloudreve/Cloudreve/v4 Go |
|
|
| github.com/cloudreve/Cloudreve/v3 Go |
| No fix yet |
cloudreve
| Product | Affected | Fixed in |
|---|---|---|
| github.com/cloudreve/Cloudreve/v4 Go |
|
|
| github.com/cloudreve/Cloudreve/v3 Go |
| No fix yet |
|
| No fix yet |
Cloudreve is a self-hosted file management and sharing system. Prior to 4.17.0, the WOPI PUT_RELATIVE handler passes X-WOPI-SuggestedTarget to URI.JoinRaw as a path rather than a filename, allowing slash and dot-dot segments to escape the source file directory and create or conditionally overwrite files elsewhere in the same owner account. This issue is fixed in version 4.17.0.
From the CVE record · GitHub_M
Cloudreve’s WOPI PUT_RELATIVE handler treats X-WOPI-SuggestedTarget as a path rather than a filename. A crafted value containing slash or dot-dot segments can escape the source file’s directory and create or conditionally overwrite files elsewhere in the same owner account. The input does not specify authentication or user-interaction requirements.
Check Cloudreve deployments before 4.17.0, Go github.com/cloudreve/Cloudreve/v4 versions before 4.0.0-20260613023150-7968e50429ef, and users of the listed v3 and unversioned Go packages.