CVE-2018-1321: Syncope core Syncope-core Vulnerability

HIGH
Advisory Identifier: GHSA-xgc9-9w4v-h33h
CVSS 7.2
CWE-20
Published
Advisory Summary

CVE-2018-1321 is a HIGH (CVSS 7.2) syncope-core vulnerability (CWE-20: Improper Input Validation) affecting Syncope core libraries in the Maven ecosystem. The issue involves syncope-core. Remediation is available by upgrading affected packages to version 1.2.11, 2.0.8.

CVE-2018-1321 at a Glance

CVE Identifier CVE-2018-1321
GHSA Identifier GHSA-xgc9-9w4v-h33h
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-20: Improper Input Validation
Affected Product Syncope core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.2

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

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

How to Fix CVE-2018-1321

To remediate this vulnerability, upgrade all affected Syncope 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.apache.syncope:syncope-core fixed: 1.2.11
<dependency>
    <groupId>org.apache.syncope</groupId>
    <artifactId>syncope-core</artifactId>
    <version>1.2.11</version>
</dependency>
org.apache.syncope:syncope-core fixed: 2.0.8
<dependency>
    <groupId>org.apache.syncope</groupId>
    <artifactId>syncope-core</artifactId>
    <version>2.0.8</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.apache.syncope

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.syncope

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

Note: The mvn dependency:tree -Dincludes=org.apache.syncope 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Syncope 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

An administrator with report and template entitlements in Apache Syncope 1.2.x before 1.2.11 and 2.0.x before 2.0.8 can use XSL Transformations (XSLT) to perform malicious operations, including but not limited to file read, file write, and code execution.

CVE-2018-1321 Affected Syncope core Versions

2 component(s)
Fixed Versions:
1.2.112.0.8
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.syncope:syncope-core
Maven
< 1.2.11
1.2.11
org.apache.syncope:syncope-core
Maven
≥ 2.0.0
< 2.0.8
2.0.8

References

Frequently Asked Questions

What is CVE-2018-1321?
CVE-2018-1321 is a security vulnerability in Syncope core involving syncope-core under CWE-20: Improper Input Validation.
Which Syncope core versions are affected?
Affected versions include releases prior to 1.2.11, 2.0.8 across affected packages: org.apache.syncope:syncope-core.
What version fixes CVE-2018-1321?
Upgrading to 1.2.11, 2.0.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is syncope-core affected?
Yes, org.apache.syncope:syncope-core is affected in releases prior to 1.2.11, 2.0.8. Upgrade your dependency to 1.2.11, 2.0.8 or later.
What is the CVSS score of CVE-2018-1321?
CVE-2018-1321 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-1321?
CVE-2018-1321 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2018-1321?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.syncope'. 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-xgc9-9w4v-h33h",
  "modified" : "2024-03-04T20:44:41Z",
  "published" : "2018-11-06T23:17:27Z",
  "aliases" : [ "CVE-2018-1321" ],
  "summary" : "High severity vulnerability that affects org.apache.syncope:syncope-core",
  "details" : "An administrator with report and template entitlements in Apache Syncope 1.2.x before 1.2.11 and 2.0.x before 2.0.8 can use XSL Transformations (XSLT) to perform malicious operations, including but not limited to file read, file write, and code execution.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.syncope:syncope-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.syncope:syncope-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1321"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/syncope/commit/726231fbf7b817bd2a9467171dcb1c0087c75bc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/syncope/commit/ad31479c1c543ac7d26b8c882aa14f6c00c1fd0"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-xgc9-9w4v-h33h"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/45400"
  }, {
    "type" : "WEB",
    "url" : "http://syncope.apache.org/security.html#CVE-2018-1321:_Remote_code_execution_by_administrators_with_report_and_template_entitlements"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/103508"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T22:03:16Z",
    "nvd_published_at" : null
  }
}