Vulnerabilities in pkg:maven/org.jenkins-ci.plugins/ssh-credentials

PACKAGE
Advisory Identifier: GHSA-cwcf-5m5w-mq2w
Advisory Summary

CVE-2018-1000601 is a MODERATE (CVSS 6.5) exposure of sensitive information to vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Ssh credentials libraries in the Maven ecosystem. The issue involves exposure of sensitive information to an unauthorized actor in jenkins ssh credentials plugin. Remediation is available by upgrading affected packages to version 1.14, 2.1.17.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.jenkins-ci.plugins/ssh-credentials

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.jenkins-ci.plugins/ssh-credentials. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-cwcf-5m5w-mq2w CVE-2018-1000601 MODERATE Exposure of Sensitive Information to an Unauthorized Actor in Jenkins SSH Credentials Plugin

CVE-2018-1000601 at a Glance

CVE Identifier CVE-2018-1000601
GHSA Identifier GHSA-cwcf-5m5w-mq2w
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Ssh credentials
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2018-1000601

To remediate this vulnerability, upgrade all affected Ssh credentials 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.plugins:ssh-credentials fixed: 1.14
<dependency>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>ssh-credentials</artifactId>
    <version>1.14</version>
</dependency>
org.jenkins-ci.plugins:credentials fixed: 2.1.17
<dependency>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>credentials</artifactId>
    <version>2.1.17</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.plugins

How to Check if You Are Affected

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

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

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

Note: The mvn dependency:tree -Dincludes=org.jenkins-ci.plugins 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Ssh credentials, 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

A arbitrary file read vulnerability exists in Jenkins SSH Credentials Plugin 1.13 and earlier in BasicSSHUserPrivateKey.java that allows attackers with a Jenkins account and the permission to configure credential bindings to read arbitrary files from the Jenkins master file system.

CVE-2018-1000601 Affected Ssh credentials Versions

2 component(s)
Fixed Versions:
1.142.1.17
Product / Package Ecosystem Affected Versions Fixed Version
org.jenkins-ci.plugins:ssh-credentials
Maven
< 1.14
1.14
org.jenkins-ci.plugins:credentials
Maven
< 2.1.17
2.1.17

References

Frequently Asked Questions

What is CVE-2018-1000601?
CVE-2018-1000601 is a security vulnerability in Ssh credentials involving Exposure of Sensitive Information to an Unauthorized Actor in Jenkins SSH Credentials Plugin under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Ssh credentials versions are affected?
Affected versions include releases prior to 1.14, 2.1.17 across affected packages: org.jenkins-ci.plugins:ssh-credentials, org.jenkins-ci.plugins:credentials.
What version fixes CVE-2018-1000601?
Upgrading to 1.14, 2.1.17 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ssh-credentials affected?
Yes, org.jenkins-ci.plugins:ssh-credentials is affected in releases prior to 1.14. Upgrade your dependency to 1.14 or later.
Is credentials affected?
Yes, org.jenkins-ci.plugins:credentials is affected in releases prior to 2.1.17. Upgrade your dependency to 2.1.17 or later.
What is the CVSS score of CVE-2018-1000601?
CVE-2018-1000601 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2018-1000601?
CVE-2018-1000601 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Maven dependencies for CVE-2018-1000601?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jenkins-ci.plugins'. 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-cwcf-5m5w-mq2w",
  "modified" : "2022-06-30T16:23:28Z",
  "published" : "2022-05-14T03:07:03Z",
  "aliases" : [ "CVE-2018-1000601" ],
  "summary" : "Exposure of Sensitive Information to an Unauthorized Actor in Jenkins SSH Credentials Plugin",
  "details" : "A arbitrary file read vulnerability exists in Jenkins SSH Credentials Plugin 1.13 and earlier in BasicSSHUserPrivateKey.java that allows attackers with a Jenkins account and the permission to configure credential bindings to read arbitrary files from the Jenkins master file system.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jenkins-ci.plugins:ssh-credentials"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.14"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.13"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jenkins-ci.plugins:credentials"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.1.17"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1000601"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/credentials-plugin/commit/23fbd6de33cc3cb74eafd44e7b27dd87b52c8904"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/ssh-credentials-plugin/commit/18b3121fa94a174064447d637dc11539e33b3a76"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jenkinsci/ssh-credentials-plugin"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/ssh-credentials-plugin/commits/ssh-credentials-1.14"
  }, {
    "type" : "WEB",
    "url" : "https://jenkins.io/security/advisory/2018-06-25/#SECURITY-440"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-30T16:23:28Z",
    "nvd_published_at" : "2018-06-26T17:29:00Z"
  }
}