CVE-2022-31105

CVE-2022-31105 is a high-severity security vulnerability in github.com/argoproj/argo-cd (go), affecting versions >= 0.4.0, < 2.2.11. It is fixed in 2.2.11, 2.3.6, 2.4.5.

Summary

Workarounds

There is no complete workaround besides upgrading.

Partial mitigation when using an external OIDC provider

If you are using an external OIDC provider (not the bundled Dex instance), then you can mitigate the issue by setting the oidc.config.rootCA field in the argocd-cm ConfigMap. If your OIDC provider's certificate is self-signed or otherwise invalid, you must set the rootCA to a certificate that enables verification. If the OIDC provider's certificate passes without an additional root CA, then you can set oidc.config.rootCA to a bogus non-empty string such as "force cert verification". The API server will log a warning, but otherwise things should work fine.

Example:

metadata:
  name: argocd-cm
data:
  oidc.config: |
    ...
    rootCA: |
      force cert verification

This mitigation only forces certificate validation when the API server handles login flows. It does not force certificate verification when verifying tokens on API calls. To fully resolve the vulnerability, you must upgrade.

References

Credits

@jannfis and @crenshaw-dev discovered the vulnerability when reviewing notes from ADA Logics' security audit of the Argo project sponsored by CNCF and facilitated by OSTIF. Thanks to Adam Korczynski and David Korczynski for their work on the audit.

For more information

Impact

All versions of Argo CD starting with v0.4.0 are vulnerable to an improper certificate validation bug which could cause Argo CD to trust a malicious (or otherwise untrustworthy) OIDC provider.

(Note: external OIDC provider support was added in v0.11.0. Before that version, the notes below apply only to the bundled Dex instance.)

You are impacted if 1) have SSO enabled and 2) insecure mode is not enabled on the API server. In this case, certificate verification is skipped when connecting to your OIDC provider for the following tasks: verifying auth tokens on API requests and handling SSO login flows. If you are using the bundled Dex instance but have not set the --dex-server flag on the API server to an HTTPS address, then certificate verification is not being skipped (because TLS is not enabled by default for the bundled Dex instance).

Argo CD sends requests to the configured OIDC provider (either the bundled Dex instance or an external provider) to 1) retrieve the OpenID configuration, 2) to retrieve the OIDC provider's key set (at the location determined by the OIDC provider's configured jwks_uri), and 3) (during an SSO login) to exchange an authorization code for a token.

(Note: Starting with v2.3.0, certificate verification is not skipped when handling an SSO login flow if 1) you are not using the bundled Dex OIDC provider and 2) you have set oidc.config.rootCA in the argocd-cm ConfigMap. Certificate verification is still skipped when verifying tokens on API calls.)

Skipping certificate verification when communicating with the OIDC provider opens Argo CD to a variety of risks. For example, if an attacker can successfully intercept, decrypt, and respond to requests bound for the configured OIDC provider (a machine-in-the-middle attack), they could theoretically issue a "valid" admin token. Verifying the OIDC provider's certificate provides an extra layer of protection against such an attack.

CVE-2022-31105 has a CVSS score of 8.3 (High). The vector is network-reachable, no privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (2.2.11, 2.3.6, 2.4.5); upgrading removes the vulnerable code path.

Affected versions

github.com/argoproj/argo-cd (>= 0.4.0, < 2.2.11) github.com/argoproj/argo-cd (>= 2.3.0, < 2.3.6) github.com/argoproj/argo-cd (>= 2.4.0, < 2.4.5)

Security releases

github.com/argoproj/argo-cd → 2.2.11 (go) github.com/argoproj/argo-cd → 2.3.6 (go) github.com/argoproj/argo-cd → 2.4.5 (go)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

A patch for this vulnerability has been released in the following Argo CD versions:

  • v2.4.5
  • v2.3.6
  • v2.2.11

Note:

To preserve backwards compatibility, this patch adds a oidc.tls.insecure.skip.verify option to the argocd-cm ConfigMap. The default is "false". Before resorting to setting this, you should try to get certificate verification to work. If you are using the bundled Dex instance, user your Argo CD API server's TLS configuration since the API server acts as a reverse proxy to Dex. If you are using an external OIDC provider, set the rootCA config.

If these fail, be sure you are aware of the risks before setting oidc.tls.insecure.skip.verify: "true".

Frequently Asked Questions

  1. What is CVE-2022-31105? CVE-2022-31105 is a high-severity security vulnerability in github.com/argoproj/argo-cd (go), affecting versions >= 0.4.0, < 2.2.11. It is fixed in 2.2.11, 2.3.6, 2.4.5.
  2. How severe is CVE-2022-31105? CVE-2022-31105 has a CVSS score of 8.3 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of github.com/argoproj/argo-cd are affected by CVE-2022-31105? github.com/argoproj/argo-cd (go) versions >= 0.4.0, < 2.2.11 is affected.
  4. Is there a fix for CVE-2022-31105? Yes. CVE-2022-31105 is fixed in 2.2.11, 2.3.6, 2.4.5. Upgrade to this version or later.
  5. Is CVE-2022-31105 exploitable, and should I be worried? Whether CVE-2022-31105 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2022-31105 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2022-31105?
    • Upgrade github.com/argoproj/argo-cd to 2.2.11 or later
    • Upgrade github.com/argoproj/argo-cd to 2.3.6 or later
    • Upgrade github.com/argoproj/argo-cd to 2.4.5 or later

Other vulnerabilities in github.com/argoproj/argo-cd

CVE-2026-45738CVE-2025-59531CVE-2025-47933CVE-2025-23216CVE-2024-40634

Stop the waste.
Protect your environment with Kodem.