Skip to content
Fencer Vulns
high 8.3

CVE-2022-31034 json

Insecure entropy in argo-cd

published 2022-06-21 4 y ago modified 2026-06-17 4 mo ago also GHSA-2m7h-86qq-fp4v , GO-2022-0497 , EUVD-2022-5894

cvss
8.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.0%
EPSS 1.0% chance of exploitation in 30 days, percentile 61%
public exploits
0
none known

Summary

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. All versions of Argo CD starting with v0.11.0 are vulnerable to a variety of attacks when an SSO login is initiated from the Argo CD CLI or UI. The vulnerabilities are due to the use of insufficiently random values in parameters in Oauth2/OIDC login flows. In each case, using a relatively-predictable (time-based) seed in a non-cryptographically-secure pseudo-random number generator made the parameter less random than required by the relevant spec or by general best practices. In some cases, using too short a value made the entropy even less sufficient. The attacks on login flows which are meant to be mitigated by these parameters are difficult to accomplish but can have a high impact potentially granting an attacker admin access to Argo CD. Patches for this vulnerability has been released in the following Argo CD versions: v2.4.1, v2.3.5, v2.2.10 and v2.1.16. There are no known workarounds for this vulnerability.

Patch / fix

  • go github.com/argoproj/argo-cd 2.1.16
  • go github.com/argoproj/argo-cd/v2 2.1.16, 2.2.10, 2.3.5, 2.4.1
  • argoproj argo_cd 2.1.16

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-31034 updated cvss 8.1

argocd: vulnerable to a variety of attacks when an SSO login is initiated from the Argo CD CLI or the UI.

  • Red Hat OpenShift GitOps 1.3 openshift-gitops-1/argocd-rhel8 v1.3.11-4, openshift-gitops-1/argocd-rhel8 v1.3.12-1
    fixed: vendor fix RHSA-2022:5187
  • Red Hat OpenShift GitOps 1.4 openshift-gitops-1/argocd-rhel8 v1.4.9-3
    fixed: vendor fix RHSA-2022:5153
  • Red Hat OpenShift GitOps 1.5 openshift-gitops-1/argocd-rhel8 v1.5.3-2
    fixed: vendor fix RHSA-2022:5152
  • Red Hat OpenShift GitOps 1.3 openshift-gitops-1/dex-rhel8 v1.3.11-4, openshift-gitops-1/dex-rhel8 v1.3.12-1, openshift-gitops-1/gitops-rhel8 v1.3.11-4, openshift-gitops-1/gitops-rhel8 v1.3.12-1, openshift-gitops-1/kam-delivery-rhel8 v1.3.11-4, openshift-gitops-1/kam-delivery-rhel8 v1.3.12-1, +6 more Red Hat OpenShift GitOps 1.4 openshift-gitops-1/dex-rhel8 v1.4.9-3, openshift-gitops-1/gitops-rhel8 v1.4.9-3, openshift-gitops-1/kam-delivery-rhel8 v1.4.9-3, openshift-gitops-1/applicationset-rhel8 v1.4.9-3, openshift-gitops-1/gitops-rhel8-operator v1.4.9-3, openshift-gitops-1/gitops-operator-bundle v1.4.9-3 Red Hat OpenShift GitOps 1.5 openshift-gitops-1/dex-rhel8 v1.5.3-2, openshift-gitops-1/gitops-rhel8 v1.5.3-2, openshift-gitops-1/kam-delivery-rhel8 v1.5.3-2, openshift-gitops-1/applicationset-rhel8 v1.5.3-2, openshift-gitops-1/gitops-rhel8-operator v1.5.3-2, openshift-gitops-1/gitops-operator-bundle v1.5.3-2
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
18 mo ago

Exploit prediction

0.96% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 8.3 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
NVD 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P
GitHub 3.1 8.3 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
go github.com/argoproj/argo-cd
>=0.11.0, <2.1.16
>=0.11.0
2.1.16
go github.com/argoproj/argo-cd/v2
<2.1.16
>=2.2.0, <2.2.10
>=2.3.0, <2.3.5
>=2.4.0, <2.4.1
2.1.16
2.2.10
2.3.5
2.4.1

Affected products

  • argoproj argo-cd

Classification

Weakness
  • CWE-330 Use of Insufficiently Random Values
  • CWE-331 Insufficient Entropy
  • CWE-335 Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.