The vulnerability in rclone 1.75.0 and earlier stems from two API design traps that Go's standard library ships without adequate friction. First, rclone used path.Clean() to sanitize untrusted ZIP entry names — a reasonable-sounding choice given the function's name, but a semantic mismatch at the core. path.Clean() resolves dot segments within a path but does not reject traversal patterns that escape the intended namespace. The call path.Clean('../../etc/cron.d/evil') returns that exact string unchanged because the path isn't anchored; the function normalizes, it doesn't validate. Second, the same code used strings.HasPrefix() to check extraction roots — 'foo' matching 'foobar' — a string operation without path boundary semantics.

This isn't a careless mistake by rclone's developers. It's the predictable consequence of Go's standard library naming a normalization function 'Clean', a loaded word that implies removal of dangerous elements. The function does exactly what its documentation says — collapses separators and dot segments — but the name promises security sanitization that it explicitly doesn't provide. The same pattern has appeared across ecosystems: PHP's realpath(), Python's os.path.normpath(), Node's path.normalize() all exhibit this same semantic gap between what developers expect and what the function does.

What you should check: audit any code that uses path.Clean(), path.Join(), or string-prefix matching on paths where the input is untrusted — archive extraction, file uploads, path parameters from HTTP requests. The fix requires explicit traversal rejection, not normalization. A common pattern is checking for '..' elements after cleaning, or using a dedicated path-isolation function that validates the final path remains within an allowed directory.

The deeper question is whether Go's standard library should carry some of the remediation burden here. The function name 'Clean' is itself the vulnerability — it makes the dangerous operation look like the safe one. Renaming to 'NormalizePathSeparators' or 'CollapseDotSegments' would make misuse obviously developer-error rather than a trap. The current documentation is friction for the careful, not the hurried, and the security tooling ecosystem has the same blind spot: linters see a normalization function and don't flag it for untrusted-input contexts. This CVE is a textbook example of why path.Clean() is an API design trap that the Go ecosystem has knowingly shipped for years.