Kestrel
대시보드로 돌아가기
CVE-2026-88014MEDIUM· 6.3MITRENVDGHSA대응게시일: 2026. 09. 10.수정일: 2026. 09. 10.

rclone archive/zip: Zip Slip via unsanitized zip entry names lets a malicious archive escape its own namespace

Path-Traversal

위협 신호 · CVSS · EPSS · KEV

정기 패치· 높은 악용 신호 없음
CVSS
6.3medium

이론적 심각도 점수

EPSS

예측 데이터 없음

KEV
미등재

실측 악용 기록 없음

권장 대응 기한차기 업그레이드 시CISA SSVC 기준

별도 긴급 패치 불필요 — 정기 시스템 업그레이드 주기에 맞춰 조치

· KEV 미등재 · 자동화 어려움 · 부분 영향 · 내부 한정

CVSS 벡터 · 메트릭

악용 경로
공격 벡터로컬
공격 복잡도낮음
필요 권한불필요
사용자 상호작용필요
범위변경
영향
기밀성 영향없음
무결성 영향높음
가용성 영향없음
버전별 점수
CVSS 3.16.3MODERATE
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N

상세 설명

Summary

backend/archive mounts a zip file as a browsable, syncable rclone Fs (e.g. rclone lsf :zip:downloaded.zip or rclone copy :zip:downloaded.zip dest:). Go's archive/zip package does not sanitize file.Name - it is taken verbatim from the untrusted zip's central directory. readZip() in backend/archive/zip/zip.go applies path.Clean to the entry name, but this alone cannot fully neutralize a name with more .. components than real segments preceding them (e.g. "../../etc/cron.d/evil" stays exactly as-is after cleaning). When the archive is mounted with an empty root (the common case), there was no check at all that the resulting name stayed inside the archive's own namespace, so it was stored verbatim and returned unchanged by Object.Remote().

fs/sync/fs/operations use srcObj.Remote() directly as the destination-relative path when copying between filesystems, so a maliciously crafted zip file can cause rclone copy/sync to attempt writes outside the intended destination directory on whatever backend it targets - this is the well-known "Zip Slip" vulnerability class (https://security.snyk.io/research/zip-slip-vulnerability) applied to rclone's own zip-mounting backend. It is distinct from cmd/archive/extract, which already validates via its own destPath() choke point and is not affected.

Details

Vulnerable code (before fix), backend/archive/zip/zip.go, (*Fs).readZip:

text
1for _, file := range zr.File {
2 remote := strings.Trim(path.Clean(file.Name), "/")
3 if remote == "." { remote = "" }
4 remote = path.Join(f.prefix, remote)
5 if f.root != "" {
6 // Ignore all files outside the root
7 if !strings.HasPrefix(remote, f.root) { continue }
8 ...
9 }
10 ...
11 o := &Object{f: f, remote: remote, ...}
12 dt.Add(o)
13}

The escape check only ran when f.root != "", and even then used a bare strings.HasPrefix with no boundary check (so f.root="foo" incorrectly also matched a sibling entry "foobar").

PoC

Built a zip in memory with Go's real archive/zip writer (entry name "../../etc/cron.d/evil", not sanitized by the writer either), wrote it to disk, and mounted it via the actual production constructor zip.New(ctx, localFs, "evil.zip", "", ""):

text
1zip entry Name="../../etc/cron.d/evil" -> Object.Remote()="../../etc/cron.d/evil"

Fully outside the archive's own namespace - confirmed via a regression test that mounts the malicious zip through the real local backend and inspects the resulting Fs's internal dirtree and every Object's Remote().

Impact

A user who runs rclone copy/sync/mount against an untrusted zip file (downloaded, e-mailed, etc.) can have files written outside the intended destination directory on the destination backend, depending on that backend's own confinement. No server compromise or custom remote configuration is required from the attacker - only a crafted zip file and a normal rclone copy/sync invocation by the victim.

Fix

Skip any zip entry whose cleaned+prefixed name still escapes the archive's own namespace, rather than exposing it. Also tightened the pre-existing root filter's weak prefix check.

AI 심층 분석

공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.