⚠️

Disclaimer & Liability

The content provided on this website is for educational, research, and security awareness purposes only. Any unauthorized, illegal, or abusive use of the information, tools, and techniques discussed is solely the responsibility of the user. The author and publisher assume no liability for any damages, injuries, or consequences resulting from the misuse of this content.

CVE-2026-145491: Argo CD Authorization Bypass Lets Repository Contributors Evade clusterResourceBlacklist via generateName Delete Hooks | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-145491: Argo CD Authorization Bypass Lets Repository Contributors Evade clusterResourceBlacklist via generateName Delete Hooks

Affected Products: Argo CD

Background

Argo CD is the GitOps continuous-delivery component of the Argo project family and is widely used to reconcile Kubernetes cluster state with manifests stored in Git repositories. Project-scoped guardrails in Argo CD include a clusterResourceBlacklist setting that allows administrators to deny specific kinds or name patterns of cluster-scoped resources for applications bound to a given App Project, complementing Kubernetes RBAC at the application-policy layer.

CVE-2026-145491 documents a logic gap in how those guardrails interact with Kubernetes delete hooks and the metadata.generateName field.

Affected systems

  • Vendor: Argoproj

  • Product: Argo CD

  • Affected versions: every release up to and including 3.6.4

  • Weakness class: CWE-863 (Incorrect Authorization)

  • Severity: LOW (CVSS 3.1 base 83251b91-4cc7-4094-a5c7-464a1b83ea10, exploitability sub-score 1.6, impact sub-score 1.4; CVSS 4.0 base score 2.3)

  • Remotely exploitable: yes, over the network, by anyone able to push commits to a repository that an Argo CD Application tracks.

The advisory points operators at two source-code locations in Argo CD v3.6.4 that illustrate the affected logic:

  • https://github.com/argoproj/argo-cd/blob/v3.6.4/controller/hook.go#L170-L177

  • https://github.com/argoproj/argo-cd/blob/v3.6.4/pkg/apis/application/v1alpha1/app_project_types.go#L412-L417

Vulnerability mechanics

Kubernetes objects normally carry a static metadata.name. As an alternative, manifests can supply metadata.generateName, in which case the API server picks the final name at creation time by appending a random suffix to the supplied prefix. The validator that enforces clusterResourceBlacklist operates by glob-matching the value of metadata.name against name-scoped entries defined on the App Project.

When a manifest declares an Argo CD delete hook (a hook annotated with PreDelete or PostDelete) and uses generateName while leaving metadata.name empty, the validator's name-glob matching does not fire. The hook is then handed off to a code path that calls the Kubernetes API to create the resource, and that creation uses the prefix from generateName rather than the (empty) value the blacklist engine saw. The net effect is that cluster-scoped kinds a project's blacklist was designed to block can be created during application deletion even though the policy was nominally enforced.

Because the trigger path is application deletion, the bypass only materializes when an Application that pulls from the attacker's repository is actually deleted in Argo CD. Repository trust therefore sits at the heart of the practical exposure: write access to a tracked Git repository is the prerequisite for staging the crafted hook manifest.

Exploit posture

The supplied sources mark the advisory as remotely exploitable, but several factors limit the practical blast radius:

  • The attacker must have commit access to a Git repository feeding an Application whose App Project declares a restrictive clusterResourceBlacklist.

  • The Application must be deleted for the PreDelete or PostDelete hooks to run, so the bypass is not instantaneous; it requires an eventual lifecycle event on an Application that the contributor's repo is bound to.

  • CISA's Known Exploited Vulnerabilities catalog does not list CVE-2026-145491, and the supplied context does not document any public proof-of-concept repositories or in-the-wild abuse.

  • The CVSS 3.1 impact sub-score of 1.4 reflects the ability to create otherwise-blocked cluster-scoped resources, not direct cluster takeover, code execution, or data exfiltration.

The vulnerability therefore reads as a defense-in-depth failure rather than a frontline compromise: an administrative control that should have been authoritative can be circumvented by a class of manifest that the policy engine did not anticipate.

Mitigation

Operators running Argo CD 3.6.4 or earlier should layer multiple controls, because the supplied advisory does not enumerate a specific fixed version number — the GitHub Security Advisory GHSA-fmxq-cgp8-87wp is the authoritative source for the first patched release and should be consulted directly.

  • Patch path: follow GHSA-fmxq-cgp8-87wp and upgrade Argo CD to the first release that addresses the bypass. Until that version is in place, treat the existing deployment as exposed to repo-contributor risk.

  • Reduce the trust surface on tracked repositories: require signed commits, branch protection, and CODEOWNERS approval for any change that introduces an argocd.argoproj.io/hook: PreDelete or PostDelete annotation, or for any manifest whose metadata.name field is empty while metadata.generateName is set.

  • Broaden blacklist entries: supplement name-scoped clusterResourceBlacklist patterns with group- or kind-only entries so that the deny logic is not solely dependent on metadata.name glob matching.

  • Limit hook execution: where the operating model permits, disable PreDelete/PostDelete hook execution for App Projects that ingest commits from less-trusted contributors, or apply the restriction at the namespace/project level through Argo CD's existing controls.

  • Audit existing manifests: review tracked Git repositories for hook manifests that use generateName and an empty metadata.name, since these are exactly the artifacts that would weaponize the bypass.

  • Detection at the cluster boundary: alert in the Kubernetes audit log on create events for any resource whose group/kind matches a clusterResourceBlacklist pattern but whose name was server-generated via generateName, especially in temporal proximity to Application deletion events recorded by the Argo CD controller.

What to watch

  • The specific Argo CD release that closes the gap, once Argoproj publishes it through GHSA-fmxq-cgp8-87wp.

  • Any third-party post confirming a fixed version range or backport to a 3.6.x point release.

  • Independent reproduction notes, since the supplied context does not include public proof-of-concept code.

  • Updates to the CVSS-assessed business impact if Argoproj or downstream analysts publish a revision.

References

  • https://nvd.nist.gov/vuln/detail/CVE-2026-145491

  • https://github.com/argoproj/argo-cd/security/advisories/GHSA-fmxq-cgp8-87wp

  • https://github.com/argoproj/argo-cd/blob/v3.6.4/controller/hook.go#L170-L177

  • https://github.com/argoproj/argo-cd/blob/v3.6.4/pkg/apis/application/v1alpha1/app_project_types.go#L412-L417

  • https://www.vulncheck.com/advisories/argo-cd-through-3.6.4-clusterresourceblacklist-bypass-via-generatename-only-delete-hooks

advisory low CVE-2026-145491
·
← Back to Writeups