Vulnerabilities in pkg:maven/org.nuxeo.ecm.platform/nuxeo-platform-oauth

PACKAGE
Advisory Identifier: GHSA-x347-fc9w-w7c3
Advisory Summary

CVE-2021-32828 is a MODERATE (CVSS 5.4) remote code execution vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Nuxeo platform oauth libraries in the Maven ecosystem. The issue involves nuxeo vulnerable to reflected cross-site scripting leading to remote code execution. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.nuxeo.ecm.platform/nuxeo-platform-oauth

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.nuxeo.ecm.platform/nuxeo-platform-oauth. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-x347-fc9w-w7c3 CVE-2021-32828 MODERATE Nuxeo vulnerable to Reflected Cross-Site Scripting leading to Remote Code Execution

CVE-2021-32828 at a Glance

CVE Identifier CVE-2021-32828
GHSA Identifier GHSA-x347-fc9w-w7c3
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Nuxeo platform oauth
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.4

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:C/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 Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2021-32828

To remediate this vulnerability, upgrade all affected Nuxeo platform oauth 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.nuxeo.ecm.platform:nuxeo-platform-oauth fixed: Latest secure release
<dependency>
    <groupId>org.nuxeo.ecm.platform</groupId>
    <artifactId>nuxeo-platform-oauth</artifactId>
    <version>Latest secure release</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.nuxeo.ecm.platform

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.nuxeo.ecm.platform

Analyze the terminal output to locate any version of Nuxeo platform oauth in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.nuxeo.ecm.platform 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Nuxeo platform oauth, 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

The Nuxeo Platform is an open source content management platform for building business applications. In version 11.5.109, the `oauth2` REST API is vulnerable to Reflected Cross-Site Scripting (XSS). This XSS can be escalated to Remote Code Execution (RCE) by levering the automation API.

CVE-2021-32828 Affected Nuxeo platform oauth Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
org.nuxeo.ecm.platform:nuxeo-platform-oauth
Maven
≤ 10.10

References

Frequently Asked Questions

What is CVE-2021-32828?
CVE-2021-32828 is a security vulnerability in Nuxeo platform oauth involving Nuxeo vulnerable to Reflected Cross-Site Scripting leading to Remote Code Execution under CWE-502: Deserialization of Untrusted Data.
Which Nuxeo platform oauth versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.nuxeo.ecm.platform:nuxeo-platform-oauth.
What version fixes CVE-2021-32828?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is nuxeo-platform-oauth affected?
Yes, org.nuxeo.ecm.platform:nuxeo-platform-oauth is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2021-32828?
CVE-2021-32828 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2021-32828?
CVE-2021-32828 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for CVE-2021-32828?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.nuxeo.ecm.platform'. 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-x347-fc9w-w7c3",
  "modified" : "2023-01-09T20:06:35Z",
  "published" : "2023-01-06T00:30:17Z",
  "aliases" : [ "CVE-2021-32828" ],
  "summary" : "Nuxeo vulnerable to Reflected Cross-Site Scripting leading to Remote Code Execution",
  "details" : "The Nuxeo Platform is an open source content management platform for building business applications. In version 11.5.109, the `oauth2` REST API is vulnerable to Reflected Cross-Site Scripting (XSS). This XSS can be escalated to Remote Code Execution (RCE) by levering the automation API.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.nuxeo.ecm.platform:nuxeo-platform-oauth"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "10.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-32828"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nuxeo/nuxeo"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nuxeo/nuxeo/blob/master/modules/platform/nuxeo-platform-oauth/src/main/java/org/nuxeo/ecm/webengine/oauth2/OAuth2Callback.java"
  }, {
    "type" : "ADVISORY",
    "url" : "https://securitylab.github.com/advisories/GHSL-2021-072-nuxeo"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502", "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-09T20:06:35Z",
    "nvd_published_at" : "2023-01-05T23:15:00Z"
  }
}