CVE-2020-2187: Lack of SSL/TLS certificate and hostname validation in Amazon EC2 Plugin
5.6
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.10079%
CWE
Published
5/24/2022
Updated
12/20/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.jenkins-ci.plugins:ec2 | maven | <= 1.50.1 | 1.50.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key issues: 1) The WinRM client's SSL configuration lacked proper certificate validation, using TrustSelfSignedStrategy
and disabling hostname verification. 2) The WindowsData
class enforced acceptance of self-signed certificates by default through its constructor. The commit diff shows these were addressed by introducing a configuration flag and secure defaults in WinRMClient.java
(using system trust store when allowSelfSignedCertificate=false
) and WindowsData.java
(requiring explicit opt-in for insecure behavior). The functions handling SSL configuration and certificate policy enforcement are clearly identified as the vulnerable points through code analysis of the security patch.