CVE-2020-2309: Missing authorization in Jenkins Kubernetes Plugin
Summary
CVE-2020-2309: Missing authorization in Jenkins Kubernetes Plugin. Affects org.csanchez.jenkins.plugins:kubernetes across 4 version ranges.
< 1.21.6
>= 1.22.0, < 1.25.4.1
>= 1.26.0, < 1.26.5
>= 1.27.0, < 1.27.4
Fixed in 4 releases; the minimum fixed version depends on the release line you run. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The Jenkins Kubernetes Plugin is a Maven package (org.csanchez.jenkins.plugins:kubernetes) that integrates Jenkins with Kubernetes, allowing users to dynamically provision Jenkins agents on Kubernetes clusters. It provides a scalable and efficient way to run Jenkins builds and deployments. However, versions prior to 1.27.4, 1.26.5, 1.25.4.1, and 1.21.6 of the plugin have a vulnerability that allows attackers with Overall/Read permission to enumerate credentials IDs stored in Jenkins. This enumeration can be used as part of an attack to capture the credentials using another vulnerability.
Vulnerability Detail
The vulnerability in the Jenkins Kubernetes Plugin arises from a missing authorization check in an HTTP endpoint. This means that an attacker with Overall/Read permission can exploit this vulnerability to enumerate credentials IDs of credentials stored in Jenkins. By obtaining these credentials IDs, an attacker can potentially gain unauthorized access to sensitive information or perform malicious actions. The vulnerability has a CVSS score of 4.3, indicating a moderate severity level.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
< 1.21.61.21.6 -
>= 1.22.0, < 1.25.4.11.25.4.1 -
>= 1.26.0, < 1.26.51.26.5 -
>= 1.27.0, < 1.27.41.27.4
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no specific workaround provided for this vulnerability. However, users can mitigate the risk by ensuring that only trusted users have Overall/Read permission in Jenkins. Additionally, it is crucial to keep the Jenkins Kubernetes Plugin up to date with the latest security patches.
Conclusion
The Jenkins Kubernetes Plugin prior to versions 1.27.4, 1.26.5, 1.25.4.1, and 1.21.6 has a vulnerability that allows attackers with Overall/Read permission to enumerate credentials IDs stored in Jenkins. This can lead to unauthorized access to sensitive information or malicious actions. It is crucial to upgrade to the fixed versions of the plugin and ensure that only trusted users have the necessary permissions in Jenkins. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for org.csanchez.jenkins.plugins:kubernetes →
FAQ
The vulnerability allows attackers with Overall/Read permission to enumerate credentials IDs stored in Jenkins, potentially leading to unauthorized access to sensitive information or malicious actions.
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 in real-time and alert you if any open-source vulnerabilities, including this one, are detected.
There are currently no known exploits for this vulnerability. However, it is essential to apply the recommended fix to prevent potential exploitation.
While upgrading to the fixed versions of the Jenkins Kubernetes Plugin is the recommended approach, you can mitigate the risk by ensuring that only trusted users have Overall/Read permission in Jenkins and regularly monitoring for any unauthorized activities.
You can find more information about this vulnerability, including its technical details and the fixed versions of the Jenkins Kubernetes Plugin, in the advisory on the GitHub Advisory Database: [link to advisory]
References
Related vulnerabilities
Recent vulnerabilities recorded for org.csanchez.jenkins.plugins:kubernetes.