CVE-2020-2247: XXE vulnerability in Jenkins Klocwork Analysis Plugin

Summary

24/05/2022
Yes i
High
7.1

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 ↓

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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

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