CVE-2022-39222 json
OAuth authorization code exposure in Dex
published 2022-10-03 4 y ago modified 2026-09-10 1 mo ago also GHSA-vh7g-p26c-j2cw , EUVD-2022-7166
- cvss
- 9.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
Summary
Dex is an identity service that uses OpenID Connect to drive authentication for other apps. Dex instances with public clients (and by extension, clients accepting tokens issued by those Dex instances) are affected by this vulnerability if they are running a version prior to 2.35.0. An attacker can exploit this vulnerability by making a victim navigate to a malicious website and guiding them through the OIDC flow, stealing the OAuth authorization code in the process. The authorization code then can be exchanged by the attacker for a token, gaining access to applications accepting that token. Version 2.35.0 has introduced a fix for this issue. Users are advised to upgrade. There are no known workarounds for this issue.
Patch / fix
- go github.com/dexidp/dex 2.35.0
- linuxfoundation dex 2.35.0
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-39222 updated cvss 6.5
dexidp: gaining access to applications accepting that token
-
Red Hat RHACS 4.3 for RHEL 8 advanced-cluster-security/rhacs-main-rhel8 4.3.1-9, advanced-cluster-security/rhacs-roxctl-rhel8 4.3.1-3, advanced-cluster-security/rhacs-rhel8-operator 4.3.1-3, advanced-cluster-security/rhacs-central-db-rhel8 4.3.1-4fixed: vendor fix RHSA-2023:7725
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/observatorium-rhel8 Red Hat Advanced Cluster Security 3 advanced-cluster-security/rhacs-main-rhel8, advanced-cluster-security/rhacs-roxctl-rhel8, advanced-cluster-security/rhacs-rhel8-operator, advanced-cluster-security/rhacs-central-db-rhel8 Red Hat OpenShift GitOps openshift-gitops-1/dex-rhel8 Red Hat RHACS 4.3 for RHEL 8 advanced-cluster-security/rhacs-scanner-rhel8 4.3.1-4, advanced-cluster-security/rhacs-collector-rhel8 4.3.1-4, advanced-cluster-security/rhacs-operator-bundle 4.3.1-10, advanced-cluster-security/rhacs-scanner-db-rhel8 4.3.1-4, advanced-cluster-security/rhacs-scanner-slim-rhel8 4.3.1-4, advanced-cluster-security/rhacs-collector-slim-rhel8 4.3.1-1, +1 morenot 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
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
1.58% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/dexidp/dex/security/advisories/GHSA-vh7g-p26c-j2cw referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/dexidp/dex | <2.35.0 |
2.35.0 |
Affected products
- dexidp dex
Classification
References
-
github.com
/dexidp/dex/commit/49471b14c8080ddb034d4855841123d378b7a634
web, patch, third-party-advisory
-
github.com
/dexidp/dex/security/advisories/GHSA-vh7g-p26c-j2cw
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-39222
advisory
-
github.com
/dexidp/dex
package
-
github.com
/dexidp/dex/releases/tag/v2.35.0
web
Sources
- CVE List CVE-2022-39222
- GitHub Advisory GHSA-vh7g-p26c-j2cw
- NVD CVE-2022-39222
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.