CVE-2022-46688: Jenkins Sonar Gerrit Plugin Cross-Site Request Forgery

Summary

12/12/2022
Yes i
Moderate
5.4

CVE-2022-46688: Jenkins Sonar Gerrit Plugin vulnerable to Cross-Site Request Forgery. Affects org.jenkins-ci.plugins:sonar-gerrit versions < 378.vf4646d4df087. Fixed in 378.vf4646d4df087. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Jenkins Sonar Gerrit Plugin is a Maven package that integrates Jenkins, Sonar, and Gerrit for code review and analysis. It allows Jenkins to connect to Gerrit servers using configured credentials. This plugin is widely used in software development pipelines to automate code quality checks and review processes.

Vulnerability Detail

A Cross-Site Request Forgery (CSRF) vulnerability has been identified in the Jenkins Sonar Gerrit Plugin version 377.v8f3808963dc5 and earlier. This vulnerability enables attackers to exploit Jenkins by connecting it to Gerrit servers using attacker-specified credentials IDs obtained through another method. By doing so, attackers can potentially capture credentials stored in Jenkins, compromising the security of the system.

How To Fix

Latest published version: 474.v8b_9ea_76d7b_a_a_ as of 22 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

378.vf4646d4df087

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 crucial to apply the recommended fix by upgrading the Jenkins Sonar Gerrit Plugin to a secure version.

Conclusion

The Jenkins Sonar Gerrit Plugin is vulnerable to a Cross-Site Request Forgery (CSRF) attack, allowing attackers to connect Jenkins to Gerrit servers using unauthorized credentials. It is crucial to upgrade the plugin to a secure version to mitigate this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

This vulnerability allows attackers to connect Jenkins to Gerrit servers using unauthorized credentials, potentially compromising the security of the system and exposing sensitive information stored in Jenkins.

You can use the Vulert Playground at Vulert Scanner to check if your Jenkins instance is affected by this vulnerability. Simply provide your pom.xml file, and Vulert will analyze it in real-time to identify any open-source vulnerabilities, including this one.

At the time of this advisory, there are no known public exploits targeting this specific vulnerability. However, it is crucial to apply the recommended fix as soon as possible to mitigate any potential risks.

Yes, this vulnerability can be exploited remotely. Attackers can send crafted requests to the Jenkins instance, tricking it into connecting to Gerrit servers using unauthorized credentials.

There is no evidence of active exploitation of this vulnerability at the time of this advisory. However, it is always recommended to apply security patches and updates promptly to prevent any potential exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for org.jenkins-ci.plugins:sonar-gerrit.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 474.v8b_9ea_76d7b_a_a_ as of 22 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

378.vf4646d4df087

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