{"id":"CVE-2026-45737","aliases":["CVE-2026-45737","GHSA-rg3g-4rw9-gqrp","BIT-ARGO-CD-2026-45737","GO-2026-5618"],"related":[],"kind":"vulnerability","state":"published","title":"Argo CD: Kubernetes Secret Extraction via ArgoCD ServerSideDiff via sensitive annotations","summary":"Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. From 3.2.0 until 3.2.12, 3.3.10, and 3.4.2, Argo CD ServerSideDiff can expose Kubernetes Secret values embedded in the kubectl.kubernetes.io/last-applied-configuration annotation because HideSecretData(target, live, ...) does not fully sanitize ResourceDiff.TargetState and LiveState predicted live Secret objects, allowing sensitive data, stringData, and annotations to appear in UI or CLI diffs. This issue is fixed in versions 3.2.12, 3.3.10, and 3.4.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. From 3.2.0 until 3.2.12, 3.3.10, and 3.4.2, Argo CD ServerSideDiff can expose Kubernetes Secret values embedded in the kubectl.kubernetes.io/last-applied-configuration annotation because HideSecretData(target, live, ...) does not fully sanitize ResourceDiff.TargetState and LiveState predicted live Secret objects, allowing sensitive data, stringData, and annotations to appear in UI or CLI diffs. This issue is fixed in versions 3.2.12, 3.3.10, and 3.4.2.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe original fix for [GHSA-3v3m-wc6v-x4x3](https://github.com/argoproj/argo-cd/security/advisories/GHSA-3v3m-wc6v-x4x3) is incomplete. argocd app diff --server-side-diff can still expose Kubernetes Secret values embedded in the kubectl.kubernetes.io/last-applied-configuration annotation.\n\nThe prior fix masks top-level Secret data in ServerSideDiff responses, but it does not fully sanitize Secret data stored inside the last-applied-configuration annotation. If a Secret was previously created or updated using client-side apply, that annotation may contain raw data, stringData, and sensitive annotations. These values can be shown in UI/CLI diffs.\n\n### Details\nThe ServerSideDiff endpoint returns ResourceDiff.TargetState / LiveState based on server-side dry-run output. Kubernetes server-side dry-run can return a full predicted live Secret object that carries forward existing live annotations, including:\n\nkubectl.kubernetes.io/last-applied-configuration\nFor Secrets created with client-side apply, that annotation can contain a JSON-serialized Secret manifest with sensitive values.\n\nThe masking path calls HideSecretData(target, live, ...). However, HideSecretData only rewrites the last-applied annotation on the second argument (live). In server-side diff, the first argument can be predictedLive, not a clean Git target. predictedLive can also contain kubectl.kubernetes.io/last-applied-configuration, so the first object’s embedded annotation can remain unmasked.\n\n### PoC\nCreate an app containing this Secret manifest:\n```yaml\napiVersion: v1\nkind: Namespace\nmetadata:\n  name: last-applied-secret-repro\n---\napiVersion: v1\nkind: Secret\nmetadata:\n  name: secret\n  namespace: last-applied-secret-repro\n  annotations:\n    app: test\n    token: SECRETVAL\ntype: Opaque\ndata:\n  password: U0VDUkVUVkFM\n  username: U0VDUkVUVkFM\n```\nCreate and Sync Argo App\n```yaml\napiVersion: argoproj.io/v1alpha1\nkind: Application\nmetadata:\n  name: last-applied-secret-repro\n  namespace: argocd\n  annotations:\n    argocd.argoproj.io/compare-options: ServerSideDiff=true,IncludeMutationWebhook=true\nspec:\n  project: default\n  destination:\n    server: https://kubernetes.default.svc\n    namespace: last-applied-secret-repro\n  source:\n    repoURL: https://github.com/YOUR_ORG/YOUR_REPO.git\n    targetRevision: HEAD\n    path: last-applied-secret-repro\n  syncPolicy:\n    automated:\n      prune: true\n      selfHeal: true\n    syncOptions:\n      - CreateNamespace=true\n      - ServerSideApply=true\n```\nRun argo cd app diff\n`argocd app diff last-applied-secret-repro --server-side-diff --exit-code=false`\n```\n❯ argocd app diff last-applied-secret-repro --server-side-diff --exit-code=false\n\n===== /Secret last-applied-secret-repro/secret ======\n10c10,11\n<     kubectl.kubernetes.io/last-applied-configuration: '{\"apiVersion\":\"v1\",\"data\":{\"password\":\"++++++++\",\"username\":\"++++++++\"},\"kind\":\"Secret\",\"metadata\":{\"annotations\":{\"app\":\"test\",\"argocd.argoproj.io/tracking-id\":\"last-applied-secret-repro:/Secret:last-applied-secret-repro/secret\",\"token\":\"SECRETVAL\"},\"name\":\"secret\",\"namespace\":\"last-applied-secret-repro\"},\"type\":\"Opaque\"}'\n---\n>     kubectl.kubernetes.io/last-applied-configuration: |\n>       {\"apiVersion\":\"v1\",\"data\":{\"password\":\"U0VDUkVUVkFM\",\"username\":\"U0VDUkVUVkFM\"},\"kind\":\"Secret\",\"metadata\":{\"annotations\":{\"app\":\"test\",\"argocd.argoproj.io/tracking-id\":\"last-applied-secret-repro:/Secret:last-applied-secret-repro/secret\",\"token\":\"SECRETVAL\"},\"name\":\"secret\",\"namespace\":\"last-applied-secret-repro\"},\"type\":\"Opaque\"}\n```\nThe secret value can be seen inside the diff\n\n### Impact\nAuthenticated Argo CD users who can view application diffs may be able to read Secret values that should be masked.\n\nImpacted values include:\nSecret data embedded in kubectl.kubernetes.io/last-applied-configuration","format":"markdown","source":"ghsa"},{"lang":"en","text":"Argo CD: Kubernetes Secret Extraction via ArgoCD ServerSideDiff via sensitive annotations in github.com/argoproj/argo-cd","format":"markdown","source":"go"},{"lang":"es","text":"Argo CD es una herramienta de entrega continua declarativa, GitOps, para Kubernetes. Desde la 3.2.0 hasta la 3.2.12, la 3.3.10 y la 3.4.2, ServerSideDiff de Argo CD puede exponer valores de Secret de Kubernetes incrustados en la anotación kubectl.kubernetes.io/last-applied-configuration porque HideSecretData(target, live, ...) no sanea completamente ResourceDiff.TargetState y LiveState objetos Secret en vivo predichos, permitiendo que datos sensibles, stringData y anotaciones aparezcan en las diferencias de la interfaz de usuario o de la línea de comandos. Este problema está solucionado en las versiones 3.2.12, 3.3.10 y 3.4.2.","source":"nvd"}],"published":"2026-05-19T15:54:21.000Z","modified":"2026-10-24T21:10:00.130Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-200","CWE-212"],"affected":[{"ranges":[{"version":">= 3.2.0, < 3.2.12","status":"affected"},{"version":">= 3.3.9, < 3.3.10","status":"affected"},{"version":">= 3.4.1, < 3.4.2","status":"affected"}],"vendor":"argoproj","product":"argo-cd","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.2.0","status":"affected","fixed":"3.2.12"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v3","purl":"pkg:golang/github.com/argoproj/argo-cd/v3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.3.0-rc1","status":"affected","fixed":"3.3.10"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v3","purl":"pkg:golang/github.com/argoproj/argo-cd/v3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.4.0-rc1","status":"affected","fixed":"3.4.2"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v3","purl":"pkg:golang/github.com/argoproj/argo-cd/v3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd","purl":"pkg:golang/github.com/argoproj/argo-cd","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","source":"go"},{"ranges":[{"type":"semver","introduced":"3.2.0","status":"affected","fixed":"3.2.12"},{"type":"semver","introduced":"3.3.0-rc1","status":"affected","fixed":"3.3.10"},{"type":"semver","introduced":"3.4.0-rc1","status":"affected","fixed":"3.4.2"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v3","purl":"pkg:golang/github.com/argoproj/argo-cd/v3","source":"go"},{"ranges":[{"status":"affected","introduced":"3.2.0","fixed":"3.2.12"},{"status":"affected","introduced":"3.3.9","fixed":"3.3.10"},{"status":"affected","introduced":"3.4.1","fixed":"3.4.2"}],"vendor":"argoproj","product":"argo_cd","cpe":"cpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"3.2.0","status":"affected","fixed":"3.2.12"},{"type":"semver","introduced":"3.3.9","status":"affected","fixed":"3.3.10"},{"type":"semver","introduced":"3.4.1","status":"affected","fixed":"3.4.2"}],"ecosystem":"Bitnami","package":"argo-cd","purl":"pkg:bitnami/argo-cd","source":"bitnami"}],"references":[{"url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-rg3g-4rw9-gqrp","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-cd/commit/7879e6322465080a82d152bf00f2b92e0f36c658","tags":["fix","patch","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-cd/commit/87e9148320749693624d08e3d6fa2cc217c672a0","tags":["fix","patch","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-cd/commit/ac11bec9986807adc8886ef1181eced7347ef5c6","tags":["fix","patch","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-cd/commit/bcb4298afc9fcff5f5d69f4e1db2d0a75983f42c","tags":["fix","patch","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-cd/releases/tag/v3.2.12","tags":["article","release-notes","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-cd/releases/tag/v3.3.10","tags":["article","release-notes","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-cd/releases/tag/v3.4.2","tags":["article","release-notes","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-cd","tags":["package"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45737","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-07-16T19:14:28.622Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45737","url":"https://www.cve.org/CVERecord?id=CVE-2026-45737","licence":"CVE Terms of Use","modified":"2026-07-16T19:14:44.711Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rg3g-4rw9-gqrp","url":"https://github.com/advisories/GHSA-rg3g-4rw9-gqrp","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:47.473Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5618","url":"https://pkg.go.dev/vuln/GO-2026-5618","licence":"CC-BY-4.0","modified":"2026-07-20T21:26:20.534Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45737","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45737","licence":"Public domain","modified":"2026-10-24T21:10:00.130Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-ARGO-CD-2026-45737","url":"https://osv.dev/vulnerability/BIT-ARGO-CD-2026-45737","licence":"Apache-2.0","modified":"2026-09-08T08:45:38.509Z"}],"updatedAt":"2026-11-25T22:59:28.336Z","epss":{"score":0.00359,"percentile":0.31657,"date":"2026-12-01T12:00:22.000Z"}}