Vulnerabilities in pkg:maven/org.wso2.carbon.governance/org.wso2.carbon.governance.common

PACKAGE
Advisory Identifier: GHSA-cr8h-fr86-8vfv
Advisory Summary

CVE-2023-6836 is a MODERATE (CVSS 4.6) wso2 products vulnerable to xml vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Org.wso2.carbon.ntask.core libraries in the Maven ecosystem. The issue involves wso2 products vulnerable to xml external entity attack. Remediation is available by upgrading affected packages to version 4.7.24, 4.0.0-beta, 4.7.31, 2.2.12, 5.2.23, 4.8.13.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.wso2.carbon.governance/org.wso2.carbon.governance.common

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.wso2.carbon.governance/org.wso2.carbon.governance.common. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-cr8h-fr86-8vfv CVE-2023-6836 MODERATE WSO2 products vulnerable to XML External Entity attack

CVE-2023-6836 at a Glance

CVE Identifier CVE-2023-6836
GHSA Identifier GHSA-cr8h-fr86-8vfv
Severity MODERATE
CVSS v3.1 Base Score 4.6
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Org.wso2.carbon.ntask.core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 4.6

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:R/S:U/C:L/I:L/A:N).

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

How to Fix CVE-2023-6836

To remediate this vulnerability, upgrade all affected Org.wso2.carbon.ntask.core 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.commons:org.wso2.carbon.ntask.core fixed: 4.7.24
<dependency>
    <groupId>org.wso2.carbon.commons</groupId>
    <artifactId>org.wso2.carbon.ntask.core</artifactId>
    <version>4.7.24</version>
</dependency>
org.wso2.am:wso2am fixed: 4.0.0-beta
<dependency>
    <groupId>org.wso2.am</groupId>
    <artifactId>wso2am</artifactId>
    <version>4.0.0-beta</version>
</dependency>
org.wso2.carbon.registry:org.wso2.carbon.registry.extensions fixed: 4.7.31
<dependency>
    <groupId>org.wso2.carbon.registry</groupId>
    <artifactId>org.wso2.carbon.registry.extensions</artifactId>
    <version>4.7.31</version>
</dependency>
org.wso2.carbon.event-processing:org.wso2.carbon.event.processor.core fixed: 2.2.12
<dependency>
    <groupId>org.wso2.carbon.event-processing</groupId>
    <artifactId>org.wso2.carbon.event.processor.core</artifactId>
    <version>2.2.12</version>
</dependency>
org.wso2.carbon.analytics-common:org.wso2.carbon.event.input.adapter.core fixed: 5.2.23
<dependency>
    <groupId>org.wso2.carbon.analytics-common</groupId>
    <artifactId>org.wso2.carbon.event.input.adapter.core</artifactId>
    <version>5.2.23</version>
</dependency>
org.wso2.carbon.governance:org.wso2.carbon.governance.common fixed: 4.8.13
<dependency>
    <groupId>org.wso2.carbon.governance</groupId>
    <artifactId>org.wso2.carbon.governance.common</artifactId>
    <version>4.8.13</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.commons

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.wso2.carbon.commons

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

Note: The mvn dependency:tree -Dincludes=org.wso2.carbon.commons 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 CWE-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Org.wso2.carbon.ntask.core, 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 due to an XML External Entity (XXE) attack abuses a widely available but rarely used feature of XML parsers to access sensitive information.

CVE-2023-6836 Affected Org.wso2.carbon.ntask.core Versions

6 component(s)
Fixed Versions:
4.7.244.0.0-beta4.7.312.2.125.2.234.8.13
Product / Package Ecosystem Affected Versions Fixed Version
org.wso2.carbon.commons:org.wso2.carbon.ntask.core
Maven
< 4.7.24
4.7.24
org.wso2.am:wso2am
Maven
< 4.0.0-beta
4.0.0-beta
org.wso2.carbon.registry:org.wso2.carbon.registry.extensions
Maven
< 4.7.31
4.7.31
org.wso2.carbon.event-processing:org.wso2.carbon.event.processor.core
Maven
< 2.2.12
2.2.12
org.wso2.carbon.analytics-common:org.wso2.carbon.event.input.adapter.core
Maven
< 5.2.23
5.2.23
org.wso2.carbon.governance:org.wso2.carbon.governance.common
Maven
< 4.8.13
4.8.13

References

Frequently Asked Questions

What is CVE-2023-6836?
CVE-2023-6836 is a security vulnerability in Org.wso2.carbon.ntask.core involving WSO2 products vulnerable to XML External Entity attack under CWE-611: Improper Restriction of XML External Entity Reference.
Which Org.wso2.carbon.ntask.core versions are affected?
Affected versions include releases prior to 4.7.24, 4.0.0-beta, 4.7.31, 2.2.12, 5.2.23, 4.8.13 across affected packages: org.wso2.carbon.commons:org.wso2.carbon.ntask.core, org.wso2.am:wso2am, org.wso2.carbon.registry:org.wso2.carbon.registry.extensions, org.wso2.carbon.event-processing:org.wso2.carbon.event.processor.core, org.wso2.carbon.analytics-common:org.wso2.carbon.event.input.adapter.core, org.wso2.carbon.governance:org.wso2.carbon.governance.common.
What version fixes CVE-2023-6836?
Upgrading to 4.7.24, 4.0.0-beta, 4.7.31, 2.2.12, 5.2.23, 4.8.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is org.wso2.carbon.ntask.core affected?
Yes, org.wso2.carbon.commons:org.wso2.carbon.ntask.core is affected in releases prior to 4.7.24. Upgrade your dependency to 4.7.24 or later.
Is wso2am affected?
Yes, org.wso2.am:wso2am is affected in releases prior to 4.0.0-beta. Upgrade your dependency to 4.0.0-beta or later.
What is the CVSS score of CVE-2023-6836?
CVE-2023-6836 has a CVSS v3.1 base score of 4.6 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2023-6836?
CVE-2023-6836 is classified under CWE-611: Improper Restriction of XML External Entity Reference (The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.).
How can I check Maven dependencies for CVE-2023-6836?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.wso2.carbon.commons'. 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-cr8h-fr86-8vfv",
  "modified" : "2023-12-19T20:52:53Z",
  "published" : "2023-12-15T12:30:25Z",
  "aliases" : [ "CVE-2023-6836" ],
  "summary" : "WSO2 products vulnerable to XML External Entity attack",
  "details" : "Multiple WSO2 products have been identified as vulnerable due to an XML External Entity (XXE) attack abuses a widely available but rarely used feature of XML parsers to access sensitive information.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wso2.carbon.commons:org.wso2.carbon.ntask.core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.7.24"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wso2.am:wso2am"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.0-beta"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wso2.carbon.registry:org.wso2.carbon.registry.extensions"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.7.31"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wso2.carbon.event-processing:org.wso2.carbon.event.processor.core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.2.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wso2.carbon.analytics-common:org.wso2.carbon.event.input.adapter.core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.2.23"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.wso2.carbon.governance:org.wso2.carbon.governance.common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.8.13"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-6836"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wso2/carbon-analytics-common/commit/9478336859306d3ea13b25cb386f29c183707fde"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wso2/carbon-commons/commit/a08a587e3dd5146121a7b47a0fdd06ddbcd903f4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wso2/carbon-event-processing/commit/e9953afd46a45f704de341a081f710cbdfa3f975"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wso2/carbon-governance/commit/ad36968d5a11d4fc35fa5cc4e8b5ae9a04e5bb4c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wso2/carbon-registry/commit/738b2a0b3e5f118527da236467ed72d9fd9ce40e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/wso2/product-apim/commit/96e8f5d6566d57bbbb8d4257f6f55057a79d00b5"
  }, {
    "type" : "WEB",
    "url" : "https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2021/WSO2-2020-0716"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-19T20:52:53Z",
    "nvd_published_at" : "2023-12-15T10:15:09Z"
  }
}