CVE-2020-2185: Missing SSH Host Key Validation in Amazon EC2 Plugin

org.jenkins-ci.plugins:ec2 Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Moderate
5.6

CVE-2020-2185: Missing SSH host key validation in Jenkins Amazon EC2 Plugin. Affects org.jenkins-ci.plugins:ec2 versions < 1.50.2. Fixed in 1.50.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Amazon EC2 Plugin is a Maven package that provides integration between Jenkins and Amazon EC2, allowing users to dynamically provision EC2 instances as Jenkins agents. It enables users to scale their Jenkins build environment by automatically launching and terminating EC2 instances as needed. The plugin utilizes SSH for communication between the Jenkins master and the EC2 instances.

Vulnerability Detail

The Amazon EC2 Plugin version 1.50.1 and earlier does not perform SSH host key validation when establishing connections to agents. This lack of validation opens up the possibility of a man-in-the-middle attack, where an attacker can intercept the connection and impersonate the agent. By doing so, the attacker can gain unauthorized access to sensitive information or perform malicious actions on the Jenkins master. The vulnerability has a CVSS score of 5.6, indicating a moderate severity level.

How To Fix

Minimum fixed version

1.50.2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended solution is to upgrade to the fixed version of the Amazon EC2 Plugin.

Conclusion

The Amazon EC2 Plugin version 1.50.1 and earlier is vulnerable to a missing SSH host key validation issue, which could be exploited through a man-in-the-middle attack. Upgrading to version 1.50.2 or later and implementing SSH host key validation strategies is crucial to mitigate this vulnerability. It is recommended to check your Jenkins instance using the Vulert Playground and apply the necessary fixes. For additional support, reach out to DevNack.com.

See every vulnerability recorded for org.jenkins-ci.plugins:ec2 →

Share this vulnerability

FAQ

This vulnerability allows an attacker to intercept connections between the Jenkins master and EC2 agents, potentially leading to unauthorized access and malicious activities.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your Jenkins instance is affected by this vulnerability. Simply provide your pom.xml file, and Vulert will analyze it for open-source vulnerabilities in real-time.

There are no known public exploits for this vulnerability at the time of this advisory. However, it is important to apply the recommended fix to mitigate the risk of potential attacks.

Yes, starting from version 1.50.2, the Amazon EC2 Plugin provides strategies for performing SSH host key validation. Administrators can choose the appropriate validation method based on their security requirements.

For further support and assistance with vulnerability remediation, you can contact info@devnack.com. The Devnack team specializes in helping organizations address security vulnerabilities in their software.

Related vulnerabilities

Recent vulnerabilities recorded for org.jenkins-ci.plugins:ec2.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

1.50.2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback