🔍 CVE-2026-47680

0.0
CVSS Score
UNKNOWN
2026-09-08
2026-09-30 19:57
✅ 완료

🇰🇷 한글 설명

source-controller 0.0.17부터 1.8.4 버전에서 Bucket 리소스의 내용을 조작할 수 있는 공격자가 작업 디렉토리 외부로 데이터를 쓸 수 있는 경로 조작 취약점이 발견되었습니다. 또한, GitRepository 리소스를 생성할 수 있는 사용자는 sparse-checkout 기능을 악용하여 컨트롤러 포드 내의 파일 경로를 제한적으로 열거할 수 있습니다.

💡 쉬운 설명

해커가 저장소의 파일을 조작하여 서버의 허용되지 않은 위치에 파일을 만들거나, 서버 내부의 파일 경로를 몰래 알아낼 수 있는 보안 약점입니다. 다행히 파일 내용이 변조되면 시스템이 이를 감지하여 차단하지만, 서버 권한을 이용한 파일 쓰기 공격은 여전히 가능합니다.

🇺🇸 원문 (English)

The source-controller is a Kubernetes operator, specialised in artifacts acquisition from external sources such as Git, OCI, Helm repositories and S3-compatible buckets. In versions 0.0.17 through 1.8.4, an actor with the ability to influence the contents of a bucket referenced by a `Bucket` resource can cause source-controller to write fetched object data to paths outside the per-reconciliation working directory. The corruption surface is bounded by source-controller's own and downstream Flux controllers' digest verification: source-controller verifies stored artifact digests during reconciliation and rebuilds on divergence; consumers (kustomize-controller, helm-controller) verify the digest of fetched artifacts and reject mismatches. These checks prevent a manipulated artifact from reaching the cluster, but an attacker can still write files anywhere the source-controller pod has permission to write. Separately, a user with permission to create or update `GitRepository` resources can cause source-controller to test for the existence of paths outside the cloned repository. Because the result is exposed via the resource's status, this allows limited enumeration of file paths on the controller pod. This surface exists only on source-controller v1.6.0 and later, where the sparse-checkout feature was introduced. This vulnerability was fixed in source-controller v1.8.5. There is no in-product workaround. Users should upgrade to a patched version. As a defense-in-depth measure for the GitRepository sparse-checkout surface, a `ValidatingAdmissionPolicy` (or a third-party policy engine such as Kyverno or OPA Gatekeeper) can be deployed to reject `GitRepository` resources whose `.spec.sparseCheckout` entries contain `..` or absolute path segments.

📍 영향받는 시스템

source-controller v0.0.17 ~ v1.8.4 (GitRepository 경로 열거는 v1.6.0 이상)

⚔️ 공격 벡터

Bucket 리소스 내 객체 조작을 통한 경로 조작 또는 GitRepository의 sparse-checkout 설정을 이용한 경로 열거

🛡️ 대응 방법

source-controller를 v1.8.5 이상 버전으로 업그레이드하고, ValidatingAdmissionPolicy를 사용하여 GitRepository의 sparseCheckout 내 '..' 또는 절대 경로를 차단하십시오.

🔧 검증 코드

출력된 결과에서 source-controller의 버전을 확인하여 1.8.5 미만인지 체크합니다.

Shell / Script
helm list -A | grep source-controller | awk '{print $1}' | xargs helm get values source-controller -n | grep version || echo 'Version not found'

💻 영향받는 소프트웨어

Git