CVE-2020-2242: Missing permission checks in Jenkins Database Plugin

Summary

24/05/2022
Yes i
Moderate
5.4

CVE-2020-2242: Missing permission checks in Jenkins Database Plugin. Affects org.jenkins-ci.plugins:database versions < 1.7. Fixed in 1.7. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Jenkins Database Plugin is a Maven-based package that provides functionality for connecting to and interacting with databases within the Jenkins automation server. It allows users to configure database connections and execute SQL queries. This plugin is widely used in Jenkins installations for various purposes, including data storage and retrieval. However, versions 1.6 and earlier of the plugin suffer from a vulnerability that allows attackers with Overall/Read access to Jenkins to connect to a specified database server using attacker-specified credentials.

Vulnerability Detail

The vulnerability in the Jenkins Database Plugin arises from a missing permission check in versions 1.6 and earlier. Attackers with Overall/Read access to Jenkins can exploit this flaw to connect to a database server of their choice using their own credentials. This can lead to unauthorized access, data manipulation, or even a complete compromise of the database. The vulnerability has a CVSS score of 5.4, indicating a moderate severity level. It is categorized under CWE-862 (Missing Authorization).

How To Fix

Minimum fixed version

1.7

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

As a temporary workaround, users can restrict access to the Jenkins server by limiting Overall/Read permissions to trusted individuals or groups. This can be done through the Jenkins security settings. However, this workaround is not a permanent solution and should be followed by upgrading to a fixed version of the plugin.

Conclusion

The Jenkins Database Plugin versions 1.6 and earlier suffer from a vulnerability that allows attackers with Overall/Read access to Jenkins to connect to a specified database server using their own credentials. To mitigate this risk, it is crucial to upgrade to version 1.7 or later of the plugin, which introduces the necessary permission checks. Additionally, restricting access to trusted individuals or groups can serve as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

The vulnerability allows attackers with Overall/Read access to Jenkins to connect to a specified database server using their own credentials. This can result in unauthorized access, data manipulation, or a complete compromise of the database.

Versions 1.6 and earlier of the Jenkins Database Plugin are affected by this vulnerability.

Attackers need Overall/Read access to Jenkins in order to exploit this vulnerability.

Yes, upgrading to version 1.7 or later of the Jenkins Database Plugin fixes this vulnerability.

As a temporary workaround, restricting Overall/Read access to trusted individuals or groups can help mitigate the risk. However, upgrading to a fixed version of the plugin is the recommended solution.

Related vulnerabilities

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

How To Fix

Minimum fixed version

1.7

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