CVE-2023-6837: Org.wso2.carbon.identity.application.authentication.framework Multiple WSO2 Products Vulnerable To Vulnerability

HIGH
Advisory Identifier: GHSA-f6jm-9pr8-9c3w
CVSS 8.5
Published
Advisory Summary

CVE-2023-6837 is a HIGH (CVSS 8.5) multiple wso2 products vulnerable to vulnerability (General Security Weakness) affecting Org.wso2.carbon.identity.application.authentication.framework libraries in the Maven ecosystem. The issue involves multiple wso2 products vulnerable to perform user impersonatoin using jit provisioning. Remediation is available by upgrading affected packages to version 5.20.254, 1.6.179.1.

CVE-2023-6837 at a Glance

CVE Identifier CVE-2023-6837
GHSA Identifier GHSA-f6jm-9pr8-9c3w
Severity HIGH
CVSS v3.1 Base Score 8.5
CWE Classification General Security Weakness
Affected Product Org.wso2.carbon.identity.application.authentication.framework
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2023-6837

To remediate this vulnerability, upgrade all affected Org.wso2.carbon.identity.application.authentication.framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.authentication.framework fixed: 5.20.254
<dependency>
    <groupId>org.wso2.carbon.identity.framework</groupId>
    <artifactId>org.wso2.carbon.identity.application.authentication.framework</artifactId>
    <version>5.20.254</version>
</dependency>
org.wso2.identity.apps:authentication-portal fixed: 1.6.179.1
<dependency>
    <groupId>org.wso2.identity.apps</groupId>
    <artifactId>authentication-portal</artifactId>
    <version>1.6.179.1</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.wso2.carbon.identity.framework

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-6837, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.wso2.carbon.identity.framework

Analyze the terminal output to locate any version of Org.wso2.carbon.identity.application.authentication.framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.20.254), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.wso2.carbon.identity.framework command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Org.wso2.carbon.identity.application.authentication.framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2023-6837 Affected Org.wso2.carbon.identity.application.authentication.framework Versions

2 component(s)
Fixed Versions:
5.20.2541.6.179.1
Product / Package Ecosystem Affected Versions Fixed Version
org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.authentication.framework
Maven
< 5.20.254
5.20.254
org.wso2.identity.apps:authentication-portal
Maven
< 1.6.179.1
1.6.179.1

References

Frequently Asked Questions

What is CVE-2023-6837?
CVE-2023-6837 is a security vulnerability in Org.wso2.carbon.identity.application.authentication.framework involving Multiple WSO2 products vulnerable to perform user impersonatoin using JIT provisioning under General Security Weakness.
Which Org.wso2.carbon.identity.application.authentication.framework versions are affected?
Affected versions include releases prior to 5.20.254, 1.6.179.1 across affected packages: org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.authentication.framework, org.wso2.identity.apps:authentication-portal.
What version fixes CVE-2023-6837?
Upgrading to 5.20.254, 1.6.179.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is org.wso2.carbon.identity.application.authentication.framework affected?
Yes, org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.authentication.framework is affected in releases prior to 5.20.254. Upgrade your dependency to 5.20.254 or later.
Is authentication-portal affected?
Yes, org.wso2.identity.apps:authentication-portal is affected in releases prior to 1.6.179.1. Upgrade your dependency to 1.6.179.1 or later.
What is the CVSS score of CVE-2023-6837?
CVE-2023-6837 has a CVSS v3.1 base score of 8.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N.
What CWE is associated with CVE-2023-6837?
CVE-2023-6837 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2023-6837?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.wso2.carbon.identity.framework'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-f6jm-9pr8-9c3w",
  "modified" : "2024-05-17T14:04:39Z",
  "published" : "2023-12-15T12:30:25Z",
  "aliases" : [ "CVE-2023-6837" ],
  "summary" : "Multiple WSO2 products vulnerable to perform user impersonatoin using JIT provisioning",
  "details" : "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:\n\n  *  An IDP configured for federated authentication and JIT provisioning enabled with the \"Prompt for username, password and consent\" option.\n  *  A service provider that uses the above IDP for federated authentication and has the \"Assert identity using mapped local subject identifier\" flag enabled.\n\n\nAttacker should have:\n\n  *  A fresh valid user account in the federated IDP that has not been used earlier.\n  *  Knowledge of the username of a valid user in the local IDP.\n\n\nWhen all preconditions are met, a malicious actor could use JIT provisioning flow to perform user impersonation.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.authentication.framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.20.254"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wso2.identity.apps:authentication-portal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.179.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-6837"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wso2/carbon-identity-framework/commit/fdab609760784086b8a3f55f7acf46d977a03d79"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wso2/identity-apps/commit/1424203bbe81688d661ea8b8cd28e332302e1c53"
  }, {
    "type" : "WEB",
    "url" : "https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2022/WSO2-2021-1573"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-05T22:09:43Z",
    "nvd_published_at" : "2023-12-15T10:15:09Z"
  }
}