Vulnerabilities in pkg:maven/org.apache.james/james-project

PACKAGE
Advisory Identifier: GHSA-xj7q-q94c-6wr3
Advisory Summary

CVE-2017-12628 is a HIGH (CVSS 7.8) apache james privilege escalation vulnerability (CWE-502: Deserialization of Untrusted Data) affecting James project libraries in the Maven ecosystem. The issue involves apache james privilege escalation. Remediation is available by upgrading affected packages to version 3.0.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.james/james-project

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.james/james-project. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-xj7q-q94c-6wr3 CVE-2017-12628 HIGH Apache James Privilege Escalation

CVE-2017-12628 at a Glance

CVE Identifier CVE-2017-12628
GHSA Identifier GHSA-xj7q-q94c-6wr3
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product James project
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.8

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

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
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-2017-12628

To remediate this vulnerability, upgrade all affected James project 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.james:james-project fixed: 3.0.1
<dependency>
    <groupId>org.apache.james</groupId>
    <artifactId>james-project</artifactId>
    <version>3.0.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.apache.james

How to Check if You Are Affected

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

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

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

Note: The mvn dependency:tree -Dincludes=org.apache.james 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 James project, 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 JMX server embedded in Apache James, also used by the command line client is exposed to a java de-serialization issue, and thus can be used to execute arbitrary commands. As James exposes JMX socket by default only on local-host, this vulnerability can only be used for privilege escalation. Release 3.0.1 upgrades the incriminated library.

CVE-2017-12628 Affected James project Versions

1 component(s)
Fixed Versions:
3.0.1
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.james:james-project
Maven
< 3.0.1
3.0.1

References

Frequently Asked Questions

What is CVE-2017-12628?
CVE-2017-12628 is a security vulnerability in James project involving Apache James Privilege Escalation under CWE-502: Deserialization of Untrusted Data.
Which James project versions are affected?
Affected versions include releases prior to 3.0.1 across affected packages: org.apache.james:james-project.
What version fixes CVE-2017-12628?
Upgrading to 3.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is james-project affected?
Yes, org.apache.james:james-project is affected in releases prior to 3.0.1. Upgrade your dependency to 3.0.1 or later.
What is the CVSS score of CVE-2017-12628?
CVE-2017-12628 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2017-12628?
CVE-2017-12628 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-2017-12628?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.james'. 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-xj7q-q94c-6wr3",
  "modified" : "2023-10-23T17:05:54Z",
  "published" : "2022-05-17T00:25:34Z",
  "aliases" : [ "CVE-2017-12628" ],
  "summary" : "Apache James Privilege Escalation",
  "details" : "The JMX server embedded in Apache James, also used by the command line client is exposed to a java de-serialization issue, and thus can be used to execute arbitrary commands. As James exposes JMX socket by default only on local-host, this vulnerability can only be used for privilege escalation. Release 3.0.1 upgrades the incriminated library.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.james:james-project"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-12628"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/james-project"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20210124113233/http://www.securityfocus.com/bid/101532"
  }, {
    "type" : "WEB",
    "url" : "https://www.mail-archive.com/server-user@james.apache.org/msg15633.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-27T00:18:01Z",
    "nvd_published_at" : "2017-10-20T15:29:00Z"
  }
}