CVE-2020-2247: XXE vulnerability in Jenkins Klocwork Analysis Plugin
Summary
CVE-2020-2247: XXE vulnerability in Jenkins Klocwork Analysis Plugin. Affects org.jenkins-ci.plugins:klocwork versions < 2020.3.1. Fixed in 2020.3.1. 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 Klocwork Analysis Plugin is a Maven package that provides integration with Klocwork, a static code analysis tool. It allows users to analyze their code for potential defects and vulnerabilities. The plugin parses XML files generated by Klocwork to extract analysis results and display them in the Jenkins interface. However, versions 2020.2.1 and earlier of the plugin do not properly configure their XML parser, making them vulnerable to XML external entity (XXE) attacks.
Vulnerability Detail
The XXE vulnerability in the Jenkins Klocwork Analysis Plugin allows an attacker who can control the input files for the plugin's parser to exploit the XML parsing functionality. By crafting a malicious XML file with external entities, an attacker can extract sensitive information from the Jenkins controller or perform server-side request forgery. This can lead to unauthorized access to sensitive data or further attacks on the Jenkins infrastructure.
How To Fix
Minimum fixed version
2020.3.1
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 known workaround for this vulnerability. It is essential to apply the fix by upgrading to the latest version of the Klocwork Analysis Plugin.
Conclusion
The XXE vulnerability in the Jenkins Klocwork Analysis Plugin can be exploited to extract sensitive information or perform server-side request forgery. It is crucial for users to upgrade to the latest version of the plugin (2020.3.1 or later) to mitigate the risk. For further assistance or support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for org.jenkins-ci.plugins:klocwork →
FAQ
This vulnerability allows an attacker to extract sensitive information from the Jenkins controller or perform server-side request forgery, potentially leading to unauthorized access or further attacks.
No, only versions 2020.2.1 and earlier are vulnerable. Users should upgrade to version 2020.3.1 or later to mitigate the risk.
There is no known public exploit for this vulnerability at the time of this advisory. However, it is essential to apply the fix as soon as possible to prevent potential attacks.
Yes, this vulnerability can be exploited remotely if the attacker can control the input files for the Klocwork plugin parser.
Yes, the CVSS score for this vulnerability is 7.1, indicating a high severity level.