CVE-2026-113708 CRITICAL 9.9 난이도Difficulty 중급Intermediate

Argo CD Kustomize 원격 ref가 git 옵션으로 해석되어 repo-server에서 명령이 실행되는 취약점Argo CD Kustomize remote ref becomes a git option and runs commands in repo-server

공식 참조Official references: NVDCVE.org

CVE-2026-113708는 Argo CD의 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')(CWE-88) 취약점으로, CVSS 9.9(CRITICAL)입니다. 영향 버전: 2.7.0 ≤ v < 3.3.15 / 3.4.10 / 3.5.4 / 3.6.0-rc2. 수정 버전: 3.3.15, 3.4.10, 3.5.4, 3.6.0-rc2.CVE-2026-113708 is an Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88) vulnerability in Argo CD, rated CVSS 9.9 (CRITICAL). Affected: 2.7.0 ≤ v < 3.3.15 / 3.4.10 / 3.5.4 / 3.6.0-rc2. Fixed in: 3.3.15, 3.4.10, 3.5.4, 3.6.0-rc2.

제품Product Argo CD
영향 버전Affected 2.7.0 ≤ v < 3.3.15 / 3.4.10 / 3.5.4 / 3.6.0-rc2
수정 버전Fixed in 3.3.15, 3.4.10, 3.5.4, 3.6.0-rc2
심각도Severity CVSS 9.9 CRITICAL
취약점 유형Weakness CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
공격 조건Attack conditions 원격 (네트워크) · 일반 권한 계정 필요 · 사용자 상호작용 불필요Remote (network) · Low-privilege account · No user interaction

1. TL;DR

Argo CD의 argocd-repo-server는 Kustomize 애플리케이션을 렌더링합니다. 영향을 받는 버전에서 Kustomize는 원격 리소스, base, component URL의 ref 또는 version 쿼리 값을 옵션 종료 구분자 없이 git fetch에 전달합니다. 이 값이 하이픈으로 시작하면 git은 이를 리비전이 아니라 옵션으로 처리합니다. 이런 옵션 중 하나인 --upload-pack을 쓰면 git이 명령을 실행합니다. 이는 원격이 file:// 같은 로컬 전송을 사용할 때 동작하며, https://에서는 동작하지 않습니다. 명령은 repo-server 사용자 권한으로 실행됩니다. 저장소 자격 증명과 프로세스가 접근할 수 있는 다른 데이터를 읽을 수 있고, 출력은 manifest 생성 오류로 돌아옵니다 (GHSA-9v9p-x54c-58gc).

진입 경로는 두 가지입니다. 하나는 Application이 빌드하는 Git 저장소에 커밋된 Kustomization입니다. 다른 하나는 POST /api/v1/applications/manifestsWithFiles를 통한 업로드이며, 기존 Application에 대한 get 권한만 있으면 됩니다. 3.3.15, 3.4.10, 3.5.4, 3.6.0-rc2에서 수정되었습니다. CVSS 9.9.

2. Flaw 분류

항목값
주요 CWECWE-88: Improper Neutralization of Argument Delimiters in a Command (‘Argument Injection’), NVD 기준
구성 요소argocd-repo-server (Kustomize 원격 base 처리 및 git fetch)
공격 벡터네트워크 (CVSS:3.1 AV:N/AC:L/PR:L/UI:N/S:C)
영향repo-server 사용자 권한으로 명령 실행, 자격 증명 및 프로세스가 접근할 수 있는 기타 데이터 노출. 출력은 manifest 생성 오류로 반환됨. CVSS C:H/I:H/A:H, 점수 9.9
전제 조건경로 A: Application이 Kustomize로 빌드하는 Git 저장소에 Kustomization을 커밋할 수 있어야 함. 경로 B: manifest 업로드 엔드포인트에 접근하기 위한 기존 Application의 get 권한. 빌드에 사용되는 Kustomize는 5.x여야 함.
영향 받는 버전2.7.0부터 3.3.15, 3.4.10, 3.5.4, 3.6.0-rc2 이전까지. 권고문에는 패치된 2.x 릴리스가 명시되어 있지 않음.
유입 커밋번들 Kustomize를 4.5.7에서 5.0.1로 업그레이드한 커밋 (2023-03-16), v2.7.0에 처음 포함되어 릴리스됨

3. 근본 원인

옵션 파싱과 누락된 구분자

git은 대부분의 Unix 도구처럼, 앞에 옵션 종료 마커(--)가 없으면 -로 시작하는 모든 인자를 옵션으로 취급합니다. 이런 유형의 버그를 인자 주입(argument injection) 또는 옵션 주입(option injection)이라고 합니다. 프로그램은 셸 없이 호출되지만, 공격자는 여전히 그 프로그램이 받을 인자를 제어합니다.

Kustomize는 Git URL로 지정한 원격 base와 리소스를 지원합니다. 이 URL에는 ref, version 같은 쿼리 파라미터를 붙일 수 있습니다. Kustomize는 그 값을 -- 구분자 없이 git fetch 호출에 덧붙입니다 (권고문). 이 값은 리비전이어야 하지만, 옵션처럼 보이는 값을 막는 장치는 없습니다.

--upload-pack이 중요한 이유

--upload-pack은 원격 쪽에서 실행할 프로그램을 git에 알려 줍니다. file:// 같은 로컬 전송에서 “원격 쪽”은 같은 머신의 프로세스일 뿐입니다. 따라서 하이픈으로 시작하는 값으로 이 옵션을 지정할 수 있고, git은 전달받은 명령을 실행합니다. 권고문은 https:// 원격에서는 git이 이를 실행하지 않는다고 밝힙니다.

버전이 중요한 이유

  • Kustomize 4.5.7은 file:// URL을 거부하므로 이 경로는 git fetch에 도달하지 못합니다.
  • Kustomize 5.0.0부터 file://을 처음 허용하고 이를 git fetch에 넘깁니다.
  • 권고문은 또한 더 새로운 Kustomize로 교체해도 해결되지 않는다고 말합니다. 현재 Kustomize도 여전히 -- 없이 ref를 그대로 전달하기 때문입니다.

이그레스 필터링이 도움이 되지 않는 이유

file:// 원격은 파드 밖으로 나가지 않습니다. 따라서 repo-server의 이그레스를 차단해도 실행을 막지 못합니다. git은 명령의 출력을 manifest 생성 오류로 호출자에게 반환하므로, 공격자는 별도의 출력 채널을 얻게 됩니다.

4. 익스플로잇 흐름(개념)

각 단계를 개념 수준으로만 설명합니다. URL, 옵션 값, 명령은 의도적으로 생략했습니다.

  1. Kustomization 제공. 공격자는 Kustomization을 빌드에 포함시킵니다. Application이 빌드하는 Git 저장소에 커밋하거나, manifest 생성 요청의 일부로 업로드합니다. 업로드에는 기존 Application에 대한 get만 있으면 되며, 업데이트나 sync 권한, 저장소 쓰기 권한은 필요 없습니다.
  2. repo-server가 렌더링. argocd-repo-server가 해당 내용에 Kustomize 5.x를 실행합니다. Kustomization에는 URL이 로컬 전송을 사용하는 원격 리소스, base, component가 들어 있습니다.
  3. 옵션 형태의 리비전이 git에 도달. ref 또는 version 쿼리 값을 하이픈으로 시작하도록 고릅니다. Kustomize가 옵션 종료 마커 없이 이를 git fetch에 덧붙이므로, git은 이를 옵션으로 읽습니다.
  4. git이 로컬에서 명령 실행. 로컬 전송에서는 원격 쪽 프로그램을 지정하는 옵션 때문에 git이 repo-server 컨테이너 안에서 repo-server 사용자 권한으로 명령을 실행합니다.
  5. 영향. 명령은 저장소 자격 증명과 프로세스가 접근할 수 있는 다른 데이터를 읽을 수 있습니다. git이 출력을 manifest 생성 오류로 반환하므로 공격자가 이를 볼 수 있습니다.
  1. Kustomization 제공 — Git 커밋 또는 manifest 업로드
  2. repo-server가 Kustomize 5.x로 렌더링
  3. git fetch가 옵션 형태의 ref를 받음 — -- 구분자 없음, file:// 전송
  4. repo-server 사용자 권한으로 명령 실행
  5. 자격 증명과 데이터 노출 — 출력이 manifest 오류로 반환
개념 흐름도 — 실행 가능한 페이로드가 아닙니다

5. 트리거 조건

  • Argo CD 버전: 2.7.0 이상이며 3.3.15, 3.4.10, 3.5.4, 3.6.0-rc2보다 낮은 버전. 권고문에는 패치된 2.x 릴리스가 없습니다.
  • Kustomize 5.x가 빌드를 수행. 영향을 받는 릴리스에서는 이것이 기본값입니다. 권고문의 우회책은 Application을 5.0 미만(예: 4.5.7)으로 고정하는 것이며, 기본값이 5.x이거나 등록된 다른 5.x 버전이 있으면 경로가 열려 있다고 명시합니다.
  • Kustomization 입력에 대한 접근. 다음 두 경로 중 하나를 통해 가능합니다.
    • Application이 Kustomize로 빌드하는 Git 저장소에 Kustomization을 커밋합니다. 다음 sync에서 빌드됩니다.
    • argocd app diff --local --server-side-generate에서도 사용하는 POST /api/v1/applications/manifestsWithFiles를 호출합니다. 기존 Application에 대한 get만 있으면 됩니다.
  • 로컬 전송: URL의 원격이 file:// 같은 로컬 전송이어야 합니다. https://는 명령을 실행하지 않습니다.
  • 불필요한 조건: repo-server의 네트워크 이그레스.

6. 패치 분석

실제 패치 diff는 확인하지 못했습니다. 변경된 라인을 읽지 못했으므로 여기에는 diff 펜스가 없습니다. 이 절은 권고문의 설명에 근거한 개념 설명입니다.

확인된 내용:

  • 수정은 3.3.15, 3.4.10, 3.5.4, 3.6.0-rc2에 포함되어 배포되었습니다. v3.3.15 릴리스 노트는 이 이슈를 보안 수정 항목에 나열합니다. 노트는 “coordinated security fixes (release-3.3)“라는 통합 커밋을 가리킵니다. 이 커밋은 util/kustomize/gitwrapper.go, util/kustomize/kustomize.go를 포함해 많은 파일을 변경합니다. 이들 파일에서 무엇이 바뀌었는지는 확인하지 못했습니다.
  • 권고문은 수정을 이렇게 설명합니다. 패치는 Kustomize 원격 base가 계속 동작하도록 유지합니다. Kustomize 빌드의 PATH에서 실제 git보다 앞에 git 래퍼를 두어, 원격 URL과 ref가 Git 옵션으로 파싱되지 않게 합니다.

개념 수준에서 이것이 흐름을 끊는 이유:

  • 이 취약점은 하이픈으로 시작하는 값이 옵션으로서 git에 도달해야 성립합니다. 누락된 구분자를 넣어 주는 래퍼를 중간에 두면 흐름의 3단계가 단순한 리비전 조회로 바뀝니다.
  • 수정은 Kustomize가 아니라 Argo CD에서 적용됩니다. 권고문은 Kustomize만 업그레이드해서는 누락된 구분자가 바로잡히지 않는다고 말합니다.
  • 원격 base는 계속 동작하므로, 이 이슈 때문에 제거되는 기능은 없습니다.

2절에 유입 커밋이 나와 있으며, 이는 Kustomize 4.5.7에서 5.0.1로의 업그레이드입니다. 이 업그레이드로 file://에 도달할 수 있게 되었고, 그 결과 누락된 구분자가 악용 가능해졌습니다.

7. 탐지·완화

즉시 조치

  • 지원되는 라인에서 3.3.15, 3.4.10, 3.5.4, 3.6.0-rc2 이상으로 업그레이드하십시오. 권고문에는 패치된 2.x 릴리스가 없으므로, 2.x 배포는 수정된 3.x 라인으로 옮겨야 합니다.
  • 아직 업그레이드할 수 없다면, Kustomize를 쓰는 모든 Application을 5.0 미만(예: 4.5.7)으로 고정하십시오.
    • argocd-cm의 kustomize.path.<version>으로 해당 바이너리를 등록합니다.
    • 각 Application에 spec.source.kustomize.version(또는 argocd app set <app> --kustomize-version)을 설정합니다.
    • 5.x를 기본값으로 두거나 다른 버전으로 등록해 두면 경로가 열려 있습니다.
    • Kustomize 5 기능에 의존하는 Application은 이 고정을 쓸 수 없습니다. 해당 빌드는 실패하거나 동작을 잃습니다.
  • 다음은 수정으로 간주하지 마십시오.
    • 전송이 로컬이므로 repo-server 이그레스 차단은 도움이 되지 않습니다.
    • Application get 제한이나 manifestsWithFiles 차단은 업로드 경로만 닫습니다. Git에 커밋된 Kustomization은 다음 sync에서 여전히 빌드됩니다.
    • 권고문은 업그레이드 외에 완전한 우회책은 없다고 말합니다.
  • 노출이 의심되면 repo-server가 읽을 수 있었던 자격 증명이 유출되었을 수 있다고 보고 교체하십시오. 이는 일반적인 사고 대응 수칙이며 권고문의 조언은 아닙니다.

탐지

벤더가 공개한 탐지 규칙은 확인하지 못했습니다. 다음은 환경에 맞게 조정할 편집자 제안입니다.

  • Application이 빌드하는 저장소의 Kustomization 파일에서, file://을 쓰거나 ref/version 값이 하이픈으로 시작하는 원격 리소스, base, component URL을 검색하십시오.
  • 특히 Application get만 가진 계정을 중심으로 manifestsWithFiles 호출자를 검토하십시오. 새롭거나 평소와 다른 호출자를 주시하십시오.
  • repo-server 로그와 Application 조건에서, 예상치 못한 명령 출력이나 git 사용법 텍스트가 담긴 manifest 생성 오류를 찾으십시오.
  • repo-server 컨테이너 아래에서 예상치 못한 자식 프로세스가 생기는지 모니터링하십시오.

격리된 실습(로컬 Docker 랩)

인터넷과 격리되어 있고 실제 자격 증명이나 운영 데이터가 없는 로컬 Docker 랩에서만 재현하십시오. 외부로 나가는 경로가 없는 일회용 네트워크나 내부 전용 Docker 네트워크를 사용하십시오. 공유, 호스팅, 제3자 Argo CD 인스턴스를 대상으로는 절대 테스트하지 마십시오.

개념 실습 제안:

  • 컨테이너 안에 소규모 테스트 하니스를 만들어, git fetch 인자 목록을 단순 연결로 조립한 경우와 옵션 종료 마커를 넣어 조립한 경우를 비교하십시오. “명령”으로는 무해한 no-op을 사용합니다. 하이픈으로 시작하는 같은 입력이 각 경우에 어떻게 파싱되는지 비교하십시오.
  • 랩에서 수정 전 Argo CD 릴리스와 수정된 릴리스를 비교하십시오. 수정 후에는 로컬 전송 원격에 대한 Kustomize 5.x 빌드의 동작이 달라지는지 확인하십시오.
  • 버전 의존성을 확인하십시오. Kustomize 4.5.7은 file://을 거부하고, 5.x는 허용합니다.

8. References

1. TL;DR

Argo CD’s argocd-repo-server renders Kustomize applications. In affected versions, Kustomize passes the ref or version query value of a remote resource, base, or component URL to git fetch with no end-of-options separator. If that value starts with a hyphen, git treats it as an option, not a revision. One such option, --upload-pack, makes git run a command. That works when the remote uses a local transport such as file://, and never for https://. The command runs as the repo-server user. It can read repository credentials and other process-accessible data, and the output comes back in the manifest-generation error (GHSA-9v9p-x54c-58gc).

Two entry points exist. One is a Kustomization committed to a Git repository that an Application builds. The other is an upload through POST /api/v1/applications/manifestsWithFiles, which needs only get on an existing Application. Fixed in 3.3.15, 3.4.10, 3.5.4, and 3.6.0-rc2. CVSS 9.9.

2. Flaw classification

ItemValue
Primary CWECWE-88: Improper Neutralization of Argument Delimiters in a Command (‘Argument Injection’), per NVD
Componentargocd-repo-server (Kustomize remote-base handling and git fetch)
Attack vectorNetwork (CVSS:3.1 AV:N/AC:L/PR:L/UI:N/S:C)
ImpactCommand execution as the repo-server user, plus disclosure of credentials and other process-accessible data. Output comes back through manifest-generation errors. CVSS C:H/I:H/A:H, score 9.9
PrerequisitesPath A: the ability to commit a Kustomization to a Git repository that an Application builds with Kustomize. Path B: Application get permission on an existing Application, to reach the manifest-upload endpoint. Kustomize 5.x must be the version that builds.
AffectedFrom 2.7.0 until 3.3.15, 3.4.10, 3.5.4, and 3.6.0-rc2. No patched 2.x release is listed by the advisory.
Introduced byThe commit that upgraded bundled Kustomize from 4.5.7 to 5.0.1 (2023-03-16), first released in v2.7.0

3. Root cause

Option parsing and the missing separator

Git, like most Unix tools, treats any argument starting with - as an option unless an end-of-options marker (--) comes before it. This class of bug is called argument injection, or option injection. The program is invoked without a shell, but the attacker still controls which arguments it receives.

Kustomize supports remote bases and resources given as Git URLs. These URLs can carry query parameters such as ref and version. Kustomize appends that value to its git fetch invocation with no -- separator (advisory). The value is meant to be a revision, but nothing stops it from looking like an option.

Why --upload-pack matters

--upload-pack tells git which program to run on the remote side. For a local transport such as file://, “the remote side” is just a process on the same machine. A value starting with a hyphen can therefore pick this option, and git then runs the command it was given. The advisory states that git does not run it for an https:// remote.

Why the version matters

  • Kustomize 4.5.7 rejects file:// URLs, so this path never reaches git fetch.
  • Kustomize 5.0.0 first accepts file:// and hands it to git fetch.
  • The advisory also says swapping in a newer Kustomize does not help, because current Kustomize still passes ref through without --.

Why egress filtering does not help

A file:// remote never leaves the pod. Blocking repo-server egress therefore does not prevent execution. Git returns the command’s output to the caller in the manifest-generation error, which gives the attacker a built-in output channel.

4. Exploit flow (conceptual)

This describes each step as a concept only. It deliberately omits URLs, option values, and commands.

  1. Supply a Kustomization. The attacker gets a Kustomization into the build. They either commit it to a Git repository an Application builds, or upload it as part of a manifest-generation request. The upload needs only get on an existing Application, not update or sync permission or repository write access.
  2. Repo-server renders it. argocd-repo-server runs Kustomize 5.x on the content. The Kustomization contains a remote resource, base, or component whose URL uses a local transport.
  3. Option-shaped revision reaches git. The ref or version query value is chosen so it starts with a hyphen. Kustomize appends it to git fetch with no end-of-options marker, so git reads it as an option.
  4. Git runs a command locally. With a local transport, the option that names the remote-side program makes git execute a command in the repo-server container, as the repo-server user.
  5. Impact. The command can read repository credentials and other data the process can access. Git returns the output in the manifest-generation error, so the attacker sees it.
  1. Supply Kustomization — Git commit or manifest upload
  2. Repo-server renders with Kustomize 5.x
  3. git fetch gets option-shaped ref — no -- separator, file:// transport
  4. Command runs as repo-server user
  5. Credentials and data exposed — output returned in manifest error
Conceptual flow — not an executable payload

5. Trigger conditions

  • Argo CD version: 2.7.0 or later and older than 3.3.15, 3.4.10, 3.5.4, or 3.6.0-rc2. The advisory lists no patched 2.x release.
  • Kustomize 5.x does the build. It is the default in affected releases. The advisory’s workaround is to pin Applications to a version older than 5.0, such as 4.5.7, and it notes that a 5.x default or any other registered 5.x version leaves the path open.
  • Access to a Kustomization input, through either path:
    • Commit a Kustomization to a Git repository that an Application builds with Kustomize. The next sync builds it.
    • Call POST /api/v1/applications/manifestsWithFiles, also used by argocd app diff --local --server-side-generate. This needs only Application get on an existing Application.
  • Local transport: the remote in the URL must be a local transport such as file://. https:// does not run the command.
  • Not required: network egress from the repo-server.

6. Patch analysis

The real patch diff was not confirmed. I could not read the changed lines, so there is no diff fence here. This section is conceptual and based on the advisory’s description.

What is confirmed:

  • Fixes shipped in 3.3.15, 3.4.10, 3.5.4, and 3.6.0-rc2. The v3.3.15 release notes list this issue under security fixes. They point to a combined commit, “coordinated security fixes (release-3.3)”. That commit changes many files, including util/kustomize/gitwrapper.go and util/kustomize/kustomize.go. I did not see what changed in them.
  • The advisory describes the fix this way: the patch keeps Kustomize remote bases working. It places a git wrapper ahead of the real git on the Kustomize build’s PATH, so the remote URL and ref cannot be parsed as Git options.

Why this breaks the flow, at the concept level:

  • The flaw needs a hyphen-leading value to reach git as an option. Interposing a wrapper that supplies the missing separator turns step 3 of the flow into a plain revision lookup.
  • The fix is applied in Argo CD, not in Kustomize. The advisory says upgrading Kustomize alone does not correct the missing separator.
  • Remote bases keep working, so no feature is removed for this issue.

Section 2 gives the introducing commit, which is the Kustomize 4.5.7 to 5.0.1 upgrade. That upgrade made file:// reachable, and the missing separator then became exploitable.

7. Detection & mitigation

Immediate actions

  • Upgrade to 3.3.15, 3.4.10, 3.5.4, or 3.6.0-rc2 or later on your supported line. The advisory lists no patched 2.x release, so 2.x deployments should move to a fixed 3.x line.
  • If you cannot upgrade yet, pin every Application that uses Kustomize to a version older than 5.0, such as 4.5.7:
    • Register that binary with kustomize.path.<version> in argocd-cm.
    • Set spec.source.kustomize.version (or argocd app set <app> --kustomize-version) on each Application.
    • Leaving 5.x as the default or as another registered version keeps the path open.
    • Applications that rely on Kustomize 5 features cannot use this pin. Their builds will fail or lose behavior.
  • Do not treat these as fixes:
    • Blocking repo-server egress does not help, because the transport is local.
    • Restricting Application get, or blocking manifestsWithFiles, closes only the upload path. A Kustomization committed to Git is still built on the next sync.
    • The advisory says there is no complete workaround besides upgrading.
  • If you suspect exposure, treat credentials the repo-server could read as possibly disclosed and rotate them. This is general incident hygiene, not advice from the advisory.

Detection

No vendor-published detection rules were confirmed. These are editor suggestions to adapt to your environment:

  • Search Kustomization files in repositories your Applications build for remote resource, base, or component URLs that use file:// or whose ref or version value begins with a hyphen.
  • Review who calls manifestsWithFiles, especially accounts that hold only Application get. Watch for new or unusual callers.
  • Look in repo-server logs and Application conditions for manifest-generation errors that carry unexpected command output or git usage text.
  • Watch for unexpected child processes under the repo-server container.

Isolated practice (local Docker lab)

Reproduce this only in a local Docker lab that is isolated from the internet and has no real credentials or production data. Use a throwaway network with no outbound route, or an internal-only Docker network. Never test against shared, hosted, or third-party Argo CD instances.

Suggested concept exercises:

  • Build a small test harness in a container that assembles a git fetch argument list by naive concatenation, then again with an end-of-options marker. Use a harmless no-op as the “command”. Compare how the same hyphen-leading input is parsed in each case.
  • Compare a pre-fix and a fixed Argo CD release in the lab. Confirm that a Kustomize 5.x build behaves differently on a local-transport remote after the fix.
  • Confirm the version dependency: Kustomize 4.5.7 rejects file://, while 5.x accepts it.

8. References