CVE-2022-25186: Agent-to-controller security bypass in Jenkins HashiCorp Vault Plugin

Summary

16/02/2022
Yes i
Low
3.1

CVE-2022-25186: Agent-to-controller security bypass in Jenkins HashiCorp Vault Plugin. Affects com.datapipe.jenkins.plugins:hashicorp-vault-plugin versions < 336.v182c0fbaaeb7. Fixed in 336.v182c0fbaaeb7. 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 Your last release was probably never penetration tested 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 HashiCorp Vault Plugin is a Maven package (com.datapipe.jenkins.plugins:hashicorp-vault-plugin) that provides functionality for integrating Jenkins with HashiCorp Vault. This plugin allows users to securely retrieve and manage secrets stored in Vault from within Jenkins. It is commonly used in CI/CD pipelines to access sensitive information such as API keys, passwords, and certificates. However, versions 3.8.0 and earlier of the plugin contain a security vulnerability that enables agent processes to bypass the controller's security measures and retrieve any Vault secrets. This means that attackers who can control agent processes can obtain Vault secrets for a specified path and key, potentially leading to unauthorized access and misuse of sensitive information.

Vulnerability Detail

The vulnerability (CVE-2022-25186) in the Jenkins HashiCorp Vault Plugin allows agent processes to retrieve any Vault secrets for use on the agent. This security bypass occurs due to a flaw in the plugin's implementation, which does not properly enforce access controls for agent processes. As a result, attackers who can control agent processes can exploit this vulnerability to obtain Vault secrets for an attacker-specified path and key. The impact of this vulnerability is significant as it allows unauthorized access to sensitive information stored in Vault, potentially leading to data breaches, privilege escalation, and other malicious activities.

How To Fix

Minimum fixed version

336.v182c0fbaaeb7

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 recommended fix by upgrading to a secure version of the Jenkins HashiCorp Vault Plugin.

Conclusion

The Jenkins HashiCorp Vault Plugin versions 3.8.0 and earlier are vulnerable to a security bypass that allows agent processes to retrieve any Vault secrets. This can lead to unauthorized access and misuse of sensitive information stored in Vault. To mitigate this vulnerability, it is crucial to upgrade to version 3.8.1 or later of the plugin and follow the provided upgrade instructions. For further assistance and support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for com.datapipe.jenkins.plugins:hashicorp-vault-plugin →

Share this vulnerability

FAQ

The Jenkins HashiCorp Vault Plugin is a Maven package that integrates Jenkins with HashiCorp Vault, allowing users to securely retrieve and manage secrets stored in Vault from within Jenkins.

This vulnerability allows attackers who can control agent processes to retrieve any Vault secrets, potentially leading to unauthorized access and misuse of sensitive information stored in Vault.

To fix this vulnerability, it is recommended to upgrade to version 3.8.1 or later of the Jenkins HashiCorp Vault Plugin. Follow the upgrade instructions provided by the Jenkins community.

No, there is no known workaround for this vulnerability. It is crucial to apply the recommended fix by upgrading to a secure version of the Jenkins HashiCorp Vault Plugin.

For more information about this vulnerability, refer to the CVE-2022-25186 advisory and the Jenkins HashiCorp Vault Plugin documentation.

Related vulnerabilities

Recent vulnerabilities recorded for com.datapipe.jenkins.plugins:hashicorp-vault-plugin.

How To Fix

Minimum fixed version

336.v182c0fbaaeb7

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