Vulnerabilities in pkg:maven/org.jenkins-ci.plugins/ec2
PACKAGECVE-2017-1000502 is a HIGH (CVSS 8.8) arbitrary shell command execution vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Ec2 libraries in the Maven ecosystem. The issue involves arbitrary shell command execution in jenkins ec2 plugin. Remediation is available by upgrading affected packages to version 1.38.
pkg:maven/org.jenkins-ci.plugins/ec2
Vulnerability advisories affecting package pkg:maven/org.jenkins-ci.plugins/ec2. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-wp79-cpv2-9g7m | CVE-2017-1000502 | HIGH | Arbitrary shell command execution in Jenkins EC2 Plugin |
| GHSA-q8qq-2p5p-rg44 | CVE-2020-2185 | MODERATE | Missing SSH host key validation in Jenkins Amazon EC2 Plugin |
| GHSA-w7fv-7j46-wwrv | CVE-2019-10364 | MODERATE | Jenkins Amazon EC2 Plugin leaked beginning of private key in system log |
| GHSA-6hmm-77r2-h6hr | CVE-2020-2091 | MODERATE | Missing permission checks in Jenkins Amazon EC2 Plugin |
| GHSA-9hvf-pfq3-7pp6 | CVE-2020-2090 | LOW | CSRF vulnerability in Jenkins Amazon EC2 Plugin |
| GHSA-w6hw-57jq-h7f5 | CVE-2020-2186 | LOW | CSRF vulnerability in Amazon EC2 Plugin |
| GHSA-c89c-pvm7-33wj | CVE-2020-2187 | MODERATE | Lack of SSL/TLS certificate and hostname validation in Amazon EC2 Plugin |
| GHSA-rmp9-mc8w-mqf3 | CVE-2020-2188 | MODERATE | Users with Overall/Read access can enumerate credentials IDs in Amazon EC2 Plugin |
CVE-2017-1000502 at a Glance
Security Impact
CVSS: 8.8
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:H/A:H).
How to Fix CVE-2017-1000502
To remediate this vulnerability, upgrade all affected Ec2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>ec2</artifactId>
<version>1.38</version>
</dependency>
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-2017-1000502, 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 Ec2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.38), 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-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Ec2, 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
CVE-2017-1000502 Affected Ec2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.jenkins-ci.plugins:ec2
|
Maven |
< 1.38
|
1.38
|
References
Frequently Asked Questions
What is CVE-2017-1000502?
Which Ec2 versions are affected?
What version fixes CVE-2017-1000502?
Is ec2 affected?
What is the CVSS score of CVE-2017-1000502?
What CWE is associated with CVE-2017-1000502?
How can I check Maven dependencies for CVE-2017-1000502?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wp79-cpv2-9g7m",
"modified" : "2024-01-30T22:38:21Z",
"published" : "2022-05-14T03:45:21Z",
"aliases" : [ "CVE-2017-1000502" ],
"summary" : "Arbitrary shell command execution in Jenkins EC2 Plugin",
"details" : "Users with permission to create or configure agents in Jenkins 1.37 and earlier could configure an EC2 agent to run arbitrary shell commands on the master node whenever the agent was supposed to be launched. Configuration of these agents now requires the 'Run Scripts' permission typically only granted to administrators.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.jenkins-ci.plugins:ec2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.38"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.37"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-1000502"
}, {
"type" : "WEB",
"url" : "https://jenkins.io/security/advisory/2017-12-06"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-30T22:38:21Z",
"nvd_published_at" : "2018-01-24T23:29:00Z"
}
}