# CVE-2023-6837: Incorrect Authorization in Multiple WSO2 Products via Federated Authentication with JIT Provisioning Leading to User Impersonation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.5
- **CVSS:** 8.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.55% (percentile 39, 2026-11-26)
- **CWE:** CWE-863
- **Aliases:** GHSA-f6jm-9pr8-9c3w
- **Published:** 2023-12-15T09:41:22.719Z
- **Modified:** 2026-06-17T06:51:30.790Z

## Who should check

- Projects that depend on Maven package org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.authentication.framework (\< 5.20.254)
- Projects that depend on Maven package org.wso2.identity.apps:authentication-portal (\< 1.6.179.1)
- Anyone running WSO2 API Manager \>= 2.5.0, \< 2.5.0.32; \>= 2.6.0, \< 2.6.0.52; \>= 3.0.0, \< 3.0.0.50; \>= 3.1.0, \< 3.1.0.72; \>= 3.2.0, \< 3.2.0.86; \>= 4.0.0, \< 4.0.0.35
- Anyone running WSO2 Identity Server \>= 5.6.0, \< 5.6.0.16; \>= 5.7.0, \< 5.7.0.35; \>= 5.8.0, \< 5.8.0.26; \>= 5.9.0, \< 5.9.0.38; \>= 5.10.0, \< 5.10.0.78; \>= 5.11.0, \< 5.11.0.69
- Anyone running WSO2 Identity Server as Key Manager \>= 5.6.0, \< 5.6.0.17; \>= 5.7.0, \< 5.7.0.39; \>= 5.9.0, \< 5.9.0.45; \>= 5.10.0, \< 5.10.0.80
- Anyone running WSO2 Carbon Identity Application Authentication Framework \>= 5.11.256, \< 5.11.256.3; \>= 5.12.153, \< 5.12.153.21; \>= 5.12.387, \< 5.12.387.7; \>= 5.14.97, \< 5.14.97.22; \>= 5.17.5, \< 5.17.5.106; \>= 5.18.187, \< 5.18.187.76

## Description

Multiple WSO2 products have been identified as vulnerable to perform user impersonatoin using JIT provisioning. In order for this vulnerability to have any impact on your deployment, following conditions must be met:

  \*  An IDP configured for federated authentication and JIT provisioning enabled with the "Prompt for username, password and consent" option.
  \*  A service provider that uses the above IDP for federated authentication and has the "Assert identity using mapped local subject identifier" flag enabled.


Attacker should have:

  \*  A fresh valid user account in the federated IDP that has not been used earlier.
  \*  Knowledge of the username of a valid user in the local IDP.


When all preconditions are met, a malicious actor could use JIT provisioning flow to perform user impersonation.

## Affected and fixed versions

- Maven `org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.authentication.framework`: affected \< 5.20.254; fixed 5.20.254 (osv)
- Maven `org.wso2.identity.apps:authentication-portal`: affected \< 1.6.179.1; fixed 1.6.179.1 (osv)
- WSO2 API Manager: \>= 2.5.0, \< 2.5.0.32; \>= 2.6.0, \< 2.6.0.52; \>= 3.0.0, \< 3.0.0.50; \>= 3.1.0, \< 3.1.0.72; \>= 3.2.0, \< 3.2.0.86; \>= 4.0.0, \< 4.0.0.35 (cvelist)
- WSO2 Identity Server: \>= 5.6.0, \< 5.6.0.16; \>= 5.7.0, \< 5.7.0.35; \>= 5.8.0, \< 5.8.0.26; \>= 5.9.0, \< 5.9.0.38; \>= 5.10.0, \< 5.10.0.78; \>= 5.11.0, \< 5.11.0.69 (cvelist)
- WSO2 Identity Server as Key Manager: \>= 5.6.0, \< 5.6.0.17; \>= 5.7.0, \< 5.7.0.39; \>= 5.9.0, \< 5.9.0.45; \>= 5.10.0, \< 5.10.0.80 (cvelist)
- WSO2 Carbon Identity Application Authentication Framework: \>= 5.11.256, \< 5.11.256.3; \>= 5.12.153, \< 5.12.153.21; \>= 5.12.387, \< 5.12.387.7; \>= 5.14.97, \< 5.14.97.22; \>= 5.17.5, \< 5.17.5.106; \>= 5.18.187, \< 5.18.187.76 (cvelist)

## Mitigation

- Upgrade org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.authentication.framework to 5.20.254 or later.
- Upgrade org.wso2.identity.apps:authentication-portal to 1.6.179.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-6837. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-6837.md
Affected: org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.authentication.framework < 5.20.254; org.wso2.identity.apps:authentication-portal < 1.6.179.1
Fixed in: 5.20.254, 1.6.179.1

Steps:
1. Search this machine and project for org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.authentication.framework (Maven), org.wso2.identity.apps:authentication-portal (Maven), WSO2 API Manager, WSO2 Identity Server, WSO2 Identity Server as Key Manager, WSO2 Carbon Identity Application Authentication Framework: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-6837 being exploited?

There is no confirmed exploitation: CVE-2023-6837 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.55% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-6837?

High: CVSS 8.5 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2023-6837?

org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.authentication.framework \< 5.20.254; org.wso2.identity.apps:authentication-portal \< 1.6.179.1.

### Is there a fix for CVE-2023-6837?

Yes. Fixed in 5.20.254, 1.6.179.1. Upgrade org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.authentication.framework to 5.20.254 or later. Upgrade org.wso2.identity.apps:authentication-portal to 1.6.179.1 or later.

### How do I check if I'm affected by CVE-2023-6837?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2022/WSO2-2021-1573/>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-6837>
- patch: <https://github.com/wso2/carbon-identity-framework/commit/fdab609760784086b8a3f55f7acf46d977a03d79>
- patch: <https://github.com/wso2/identity-apps/commit/1424203bbe81688d661ea8b8cd28e332302e1c53>
- other: <https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2022/WSO2-2021-1573>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-6837>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-f6jm-9pr8-9c3w> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-6837> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-6837>
