Cloudreve's SSRF Guard Missed IPv6 Transition Wrappers

SSRF protection usually begins with a list of disallowed destinations: loopback, private ranges, link-local addresses, cloud metadata and unspecified addresses. CVE-2026-79913 shows how an address can satisfy a superficial public-address check while carrying a private IPv4 target inside an IPv6 transition format.

Cloudreve's ValidateExternalURL resolves a user-supplied host and rejects addresses classified as internal. The advisory says the check classified IPv4-mapped, NAT64, IPv4-compatible or 6to4 wrappers by the outer IPv6 address rather than decoding the embedded IPv4 destination. An authenticated user with remote-download access could submit a URL that reached an internal service or the cloud metadata endpoint.

The guard and the bypass

A hostname can resolve to an IPv6 address that is technically public-looking at one layer and routable to an embedded IPv4 address at another. The bypass is not about DNS rebinding alone. It is an address-normalization problem inside the SSRF policy.

The attacker needs the remote-download feature and an account able to create a task. That makes the vulnerability authenticated, not automatically public. The consequence can still be serious because a server-side download can return internal content into a file, cache or error path that the attacker can inspect.

The affected release range in the advisory is Cloudreve versions before 4.18.0. The patch and release notes identify the fixed boundary. Cloudreve also separated the download URL handling through its task model, so teams should inspect both the application version and the exposed feature set.

Remediation

Upgrade to Cloudreve 4.18.0 or later. Then review remote-download privileges. Disable the feature for untrusted users if the business does not require it. Where it is required, require a dedicated egress proxy that enforces a destination allowlist and blocks private networks independently of application parsing.

Apply network policy at the workload level. The Cloudreve server should not be able to reach the cloud metadata service or management networks. DNS resolution should be performed in a controlled resolver, and the connection should use the validated address rather than resolving again without a policy check.

Investigation

Review remote-download task creation, source URLs, response errors and stored files for internal-looking destinations. Check requests to link-local metadata endpoints, internal object storage, administration ports and service mesh addresses. A blocked response can still reveal timing or status information.

If metadata access is suspected, inspect the instance role or credential provider logs and rotate credentials that the workload could obtain. Also review files created by the download task for internal configuration or secrets.

Verification

Test the patched version with IPv4-mapped, NAT64, 6to4 and IPv4-compatible literals. The expected behavior is rejection at the connection layer, not only a string check. Verify that an allowed public URL still works and that a DNS answer that changes between validation and connection cannot route to a private address.

References