CVE-2015-8103: Cli Jenkins CLI Deserialization Of Untrusted Vulnerability

CRITICAL
Advisory Identifier: GHSA-wfw7-6632-xcv2
CVSS 9.8
CWE-502
Published
Advisory Summary

CVE-2015-8103 is a CRITICAL (CVSS 9.8) jenkins cli deserialization of untrusted vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Cli libraries in the Maven ecosystem. The issue involves jenkins cli deserialization of untrusted data vulnerability. Remediation is available by upgrading affected packages to version 1.625.2, 1.638.

CVE-2015-8103 at a Glance

CVE Identifier CVE-2015-8103
GHSA Identifier GHSA-wfw7-6632-xcv2
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Cli
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.8

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
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-2015-8103

To remediate this vulnerability, upgrade all affected Cli 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.jenkins-ci.main:cli fixed: 1.625.2
<dependency>
    <groupId>org.jenkins-ci.main</groupId>
    <artifactId>cli</artifactId>
    <version>1.625.2</version>
</dependency>
org.jenkins-ci.main:cli fixed: 1.638
<dependency>
    <groupId>org.jenkins-ci.main</groupId>
    <artifactId>cli</artifactId>
    <version>1.638</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.jenkins-ci.main

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.jenkins-ci.main

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

Note: The mvn dependency:tree -Dincludes=org.jenkins-ci.main 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 Cli, 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 Jenkins CLI subsystem in Jenkins before 1.638 and LTS before 1.625.2 allows remote attackers to execute arbitrary code via a crafted serialized Java object, related to a problematic `webapps/ROOT/WEB-INF/lib/commons-collections-*.jar` file and the "Groovy variant in `ysoserial`".

CVE-2015-8103 Affected Cli Versions

2 component(s)
Fixed Versions:
1.625.21.638
Product / Package Ecosystem Affected Versions Fixed Version
org.jenkins-ci.main:cli
Maven
< 1.625.2
1.625.2
org.jenkins-ci.main:cli
Maven
≥ 1.626
< 1.638
1.638

References

NVD — CVE-2015-8103 NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-8103
Security Fix Commit FIX COMMIT
https://github.com/jenkinsci/jenkins/commit/5bd9b55a2a3249939fd78c501b8959a804c1164b
Security Fix Commit FIX COMMIT
https://github.com/jenkinsci/jenkins/commit/b4193d1132089286ebeaf9d8872c839ad473329c
access.redhat.com/errata/rhsa-2016:00... WEB
https://access.redhat.com/errata/RHSA-2016:0070
Cli Source Repository REPOSITORY
https://github.com/jenkinsci/jenkins
jenkins-ci.org/content/mitigating-... WEB
https://jenkins-ci.org/content/mitigating-unauthenticated-remote-code-execution-0-day-jenkins-cli
Cli Security Information SECURITY
https://web.archive.org/web/20151225025917/http://www.securityfocus.com/bid/77636
Cli Security Information SECURITY
https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2015-11-11
www.exploit-db.com/exploits/38983 WEB
https://www.exploit-db.com/exploits/38983
Cli Security Information SECURITY
http://foxglovesecurity.com/2015/11/06/what-do-weblogic-websphere-jboss-jenkins-opennms-and-your-application-have-in-common-this-vulnerability/#jenkins
Cli Security Information SECURITY
http://packetstormsecurity.com/files/134805/Jenkins-CLI-RMI-Java-Deserialization.html
rhn.redhat.com/errata/rhsa-2016-04... WEB
http://rhn.redhat.com/errata/RHSA-2016-0489.html
Cli Security Information SECURITY
http://www.openwall.com/lists/oss-security/2015/11/09/5
Cli Security Information SECURITY
http://www.openwall.com/lists/oss-security/2015/11/18/11
Cli Security Information SECURITY
http://www.openwall.com/lists/oss-security/2015/11/18/13
Cli Security Information SECURITY
http://www.openwall.com/lists/oss-security/2015/11/18/2

Frequently Asked Questions

What is CVE-2015-8103?
CVE-2015-8103 is a security vulnerability in Cli involving Jenkins CLI Deserialization of Untrusted Data vulnerability under CWE-502: Deserialization of Untrusted Data.
Which Cli versions are affected?
Affected versions include releases prior to 1.625.2, 1.638 across affected packages: org.jenkins-ci.main:cli.
What version fixes CVE-2015-8103?
Upgrading to 1.625.2, 1.638 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cli affected?
Yes, org.jenkins-ci.main:cli is affected in releases prior to 1.625.2, 1.638. Upgrade your dependency to 1.625.2, 1.638 or later.
What is the CVSS score of CVE-2015-8103?
CVE-2015-8103 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2015-8103?
CVE-2015-8103 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-2015-8103?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jenkins-ci.main'. 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-wfw7-6632-xcv2",
  "modified" : "2024-03-04T21:59:33Z",
  "published" : "2022-05-13T01:30:07Z",
  "aliases" : [ "CVE-2015-8103" ],
  "summary" : "Jenkins CLI Deserialization of Untrusted Data vulnerability",
  "details" : "The Jenkins CLI subsystem in Jenkins before 1.638 and LTS before 1.625.2 allows remote attackers to execute arbitrary code via a crafted serialized Java object, related to a problematic `webapps/ROOT/WEB-INF/lib/commons-collections-*.jar` file and the \"Groovy variant in `ysoserial`\".",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jenkins-ci.main:cli"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.625.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jenkins-ci.main:cli"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.626"
      }, {
        "fixed" : "1.638"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-8103"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/jenkins/commit/5bd9b55a2a3249939fd78c501b8959a804c1164b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/jenkins/commit/b4193d1132089286ebeaf9d8872c839ad473329c"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:0070"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jenkinsci/jenkins"
  }, {
    "type" : "WEB",
    "url" : "https://jenkins-ci.org/content/mitigating-unauthenticated-remote-code-execution-0-day-jenkins-cli"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20151225025917/http://www.securityfocus.com/bid/77636"
  }, {
    "type" : "WEB",
    "url" : "https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2015-11-11"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/38983"
  }, {
    "type" : "WEB",
    "url" : "http://foxglovesecurity.com/2015/11/06/what-do-weblogic-websphere-jboss-jenkins-opennms-and-your-application-have-in-common-this-vulnerability/#jenkins"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/134805/Jenkins-CLI-RMI-Java-Deserialization.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-0489.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2015/11/09/5"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2015/11/18/11"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2015/11/18/13"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2015/11/18/2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-09T16:32:01Z",
    "nvd_published_at" : "2015-11-25T20:59:00Z"
  }
}