Vulnerabilities in pkg:maven/org.jvnet.hudson.plugins/ssh

PACKAGE
Advisory Identifier: GHSA-5gmf-8gh2-hhfp
Advisory Summary

CVE-2017-1000245 is a CRITICAL (CVSS 9.8) jenkins ssh plugin user passwords vulnerability (CWE-522: Insufficiently Protected Credentials) affecting Ssh libraries in the Maven ecosystem. The issue involves jenkins ssh plugin user passwords for encrypted ssh keys stored in plaintext. Remediation is available by upgrading affected packages to version 2.5.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.jvnet.hudson.plugins/ssh

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.jvnet.hudson.plugins/ssh. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-5gmf-8gh2-hhfp CVE-2017-1000245 CRITICAL Jenkins SSH Plugin user passwords for encrypted SSH keys stored in plaintext

CVE-2017-1000245 at a Glance

CVE Identifier CVE-2017-1000245
GHSA Identifier GHSA-5gmf-8gh2-hhfp
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-522: Insufficiently Protected Credentials
Affected Product Ssh
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.0/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-2017-1000245

To remediate this vulnerability, upgrade all affected Ssh 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.jvnet.hudson.plugins:ssh fixed: Latest secure release
<dependency>
    <groupId>org.jvnet.hudson.plugins</groupId>
    <artifactId>ssh</artifactId>
    <version>Latest secure release</version>
</dependency>
org.jenkins-ci.plugins:ssh fixed: 2.5
<dependency>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>ssh</artifactId>
    <version>2.5</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.jvnet.hudson.plugins

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.jvnet.hudson.plugins

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

Note: The mvn dependency:tree -Dincludes=org.jvnet.hudson.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-522: Insufficiently Protected Credentials, where the product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval. In Ssh, 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 SSH Plugin stores credentials which allow jobs to access remote servers via the SSH protocol. User passwords and passphrases for encrypted SSH keys are stored in plaintext in a configuration file.

CVE-2017-1000245 Affected Ssh Versions

2 component(s)
Fixed Versions:
2.5
Product / Package Ecosystem Affected Versions Fixed Version
org.jvnet.hudson.plugins:ssh
Maven
≤ 2.3
org.jenkins-ci.plugins:ssh
Maven
< 2.5
2.5

References

Frequently Asked Questions

What is CVE-2017-1000245?
CVE-2017-1000245 is a security vulnerability in Ssh involving Jenkins SSH Plugin user passwords for encrypted SSH keys stored in plaintext under CWE-522: Insufficiently Protected Credentials.
Which Ssh versions are affected?
Affected versions include releases prior to 2.5 across affected packages: org.jvnet.hudson.plugins:ssh, org.jenkins-ci.plugins:ssh.
What version fixes CVE-2017-1000245?
Upgrading to 2.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ssh affected?
Yes, org.jvnet.hudson.plugins:ssh is affected in releases prior to Latest secure release, 2.5. Upgrade your dependency to Latest secure release, 2.5 or later.
What is the CVSS score of CVE-2017-1000245?
CVE-2017-1000245 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2017-1000245?
CVE-2017-1000245 is classified under CWE-522: Insufficiently Protected Credentials (The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.).
How can I check Maven dependencies for CVE-2017-1000245?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jvnet.hudson.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-5gmf-8gh2-hhfp",
  "modified" : "2022-11-22T19:47:38Z",
  "published" : "2022-05-13T01:41:00Z",
  "aliases" : [ "CVE-2017-1000245" ],
  "summary" : "Jenkins SSH Plugin user passwords for encrypted SSH keys stored in plaintext",
  "details" : "The SSH Plugin stores credentials which allow jobs to access remote servers via the SSH protocol. User passwords and passphrases for encrypted SSH keys are stored in plaintext in a configuration file.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jvnet.hudson.plugins:ssh"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "2.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jenkins-ci.plugins:ssh"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-1000245"
  }, {
    "type" : "WEB",
    "url" : "https://jenkins.io/security/advisory/2017-07-10"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-522" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-22T19:47:38Z",
    "nvd_published_at" : "2017-11-01T13:29:00Z"
  }
}