CVE-2022-38663: Improper masking of credentials in Jenkins Git Plugin

org.jenkins-ci.plugins:git Updated 02 Oct 2025

Summary

24/08/2022
Yes i
Moderate
4.3

CVE-2022-38663: Improper masking of credentials Jenkins in Git Plugin. Affects org.jenkins-ci.plugins:git versions < 4.11.5. Fixed in 4.11.5. 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 Git Plugin is a plugin for the Jenkins automation server that allows users to integrate Git repositories into their build processes. It provides functionality for cloning Git repositories, checking out specific branches or commits, and performing other Git-related operations. The plugin is widely used in software development and continuous integration workflows.

Vulnerability Detail

The Jenkins Git Plugin version 4.11.4 and earlier suffer from an improper masking of credentials vulnerability. This vulnerability occurs when the plugin fails to properly mask sensitive information, such as usernames and passwords, in the build log provided by the Git Username and Password (gitUsernamePassword) credentials binding. As a result, these credentials may be exposed in plain text in the build log, potentially leading to unauthorized access to sensitive resources or accounts.

How To Fix

Latest published version: 5.11.0 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.11.5

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 manually modify their Jenkins configuration to prevent the exposure of credentials in the build log. This can be achieved by disabling the Git Username and Password (gitUsernamePassword) credentials binding or using alternative methods for managing Git credentials, such as SSH keys or token-based authentication. Here's an example of how to disable the credentials binding in the Jenkinsfile:

pipeline {
  agent any
  stages {
    stage('Build') {
      steps {
        // Disable Git credentials binding
        git credentialsId: '', url: 'https://github.com/example/repo.git'
      }
    }
  }
}

Conclusion

In conclusion, the Jenkins Git Plugin version 4.11.4 and earlier suffer from an improper masking of credentials vulnerability. This vulnerability can potentially expose sensitive credentials in the build log, leading to unauthorized access to resources or accounts. Users are advised to upgrade to version 4.11.5 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

This vulnerability can potentially expose sensitive credentials, such as usernames and passwords, in the build log. Attackers with access to the build log may be able to use these credentials to gain unauthorized access to resources or accounts.

If you are using Jenkins Git Plugin version 4.11.4 or earlier, your instance is affected by this vulnerability. It is recommended to upgrade to version 4.11.5 or later to mitigate the risk.

No, manual masking of credentials in the build log is not recommended as it may introduce human error and is not a reliable solution. It is best to upgrade to the fixed version of the Jenkins Git Plugin.

At the time of this advisory, there are no known public exploits specifically targeting this vulnerability. However, it is always recommended to promptly apply security updates to mitigate the risk of potential exploits.

You can find more information about this vulnerability in the GitHub Security Advisory database. The advisory for this vulnerability can be accessed at: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-jxmw-3gxf-fprh/GHSA-jxmw-3gxf-fprh.json

Related vulnerabilities

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

How To Fix

Latest published version: 5.11.0 as of 23 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.11.5

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