CVE-2022-27216: Passwords stored in plain text by Jenkins dbCharts Plugin

Summary

16/03/2022
No i
Moderate
6.5

CVE-2022-27216: Passwords stored in plain text by Jenkins dbCharts Plugin. Affects org.jenkins-ci.plugins:dbCharts versions < 0.5.2. No fix is published. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Jenkins dbCharts Plugin is a Maven package that provides functionality for generating charts and graphs based on data stored in a database. It is commonly used in Jenkins CI/CD pipelines to visualize data from various sources. The plugin allows users to configure JDBC connections to connect to databases and retrieve data for chart generation. However, versions 0.5.2 and earlier of the plugin store JDBC connection passwords in plain text in the global configuration file hudson.plugins.dbcharts.DbChartPublisher.xml on the Jenkins controller. This vulnerability exposes sensitive information and puts the security of the database at risk.

Vulnerability Detail

The vulnerability in the Jenkins dbCharts Plugin arises from the insecure storage of JDBC connection passwords. These passwords are stored unencrypted in the global configuration file, which can be accessed by users with file system access to the Jenkins controller. This means that any user with such access can view the passwords and potentially gain unauthorized access to the associated databases. The impact of this vulnerability depends on the sensitivity of the data stored in the databases and the level of access granted to the compromised accounts.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can manually encrypt the passwords stored in the global configuration file. This can be done by using a secure encryption algorithm and updating the file with the encrypted passwords. However, this workaround is not recommended as it requires manual intervention and may introduce additional security risks if not implemented correctly. It is strongly advised to apply the official fix provided by the plugin maintainers.

Conclusion

The Jenkins dbCharts Plugin versions 0.5.2 and earlier suffer from a vulnerability that exposes JDBC connection passwords stored in plain text. This can lead to unauthorized access to associated databases and potential data breaches. To mitigate this risk, it is crucial to upgrade to a fixed version of the plugin, such as version 0.5.3 or later, which encrypts the stored passwords. It is also recommended to review and update any stored passwords in the global configuration file to ensure they are properly encrypted and protected. For further assistance with vulnerability remediation, you can reach out to DevNack.com.

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

Share this vulnerability

FAQ

This vulnerability exposes JDBC connection passwords stored in plain text, allowing unauthorized users with file system access to potentially gain access to the associated databases. The impact depends on the sensitivity of the data stored in the databases and the level of access granted to the compromised accounts.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your Jenkins installation is affected by this vulnerability. Simply provide the pom.xml file of your Jenkins project, and Vulert will analyze it for any known vulnerabilities, including CVE-2022-27216.

At the time of this report, there are no known public exploits specifically targeting this vulnerability. However, it is important to promptly apply the recommended fix to mitigate the risk of unauthorized access to the associated databases.

Yes, it is possible to manually encrypt the passwords stored in the global configuration file. However, this workaround is not recommended as it requires manual intervention and may introduce additional security risks if not implemented correctly. It is strongly advised to apply the official fix provided by the plugin maintainers.

Related vulnerabilities

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

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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