CVE-2020-2179: RCE vulnerability in Jenkins Yaml Axis Plugin

Summary

24/05/2022
Yes i
High
8.8

CVE-2020-2179: RCE vulnerability in Jenkins Yaml Axis Plugin. Affects org.jenkins-ci.plugins:yaml-axis versions < 0.2.1. Fixed in 0.2.1. 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 Yaml Axis Plugin is a Maven package that provides functionality for configuring multi-configuration (Matrix) jobs in Jenkins. It allows users to define different axes for a job, enabling the execution of multiple configurations in parallel. The plugin utilizes YAML parsing to process the configuration data. However, versions 0.2.0 and earlier of the plugin do not properly configure the YAML parser, making it susceptible to a remote code execution (RCE) vulnerability. This vulnerability can be exploited by users who can configure a Matrix job or control the contents of a previously configured job's SCM repository.

Vulnerability Detail

The vulnerability in the Yaml Axis Plugin arises from the lack of proper configuration of the YAML parser. This allows for the instantiation of arbitrary types, leading to the potential execution of remote code. An attacker with the ability to configure a Matrix job or manipulate the contents of a job's SCM repository can exploit this vulnerability. The impact of a successful exploit can be severe, as it grants the attacker the ability to execute arbitrary code within the Jenkins environment, potentially compromising the entire system.

How To Fix

Minimum fixed version

0.2.1

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

If upgrading to the latest version of the Yaml Axis Plugin is not immediately feasible, users can apply a workaround by disabling or removing the Yaml Axis Plugin from their Jenkins installation. This can be done by navigating to the Jenkins plugin management interface and deactivating or uninstalling the Yaml Axis Plugin. However, it is important to note that this workaround may impact the functionality of Matrix jobs that rely on the Yaml Axis Plugin.

Conclusion

The RCE vulnerability in the Jenkins Yaml Axis Plugin (CVE-2020-2179) poses a significant risk to Jenkins installations. It allows for remote code execution, potentially leading to a complete compromise of the system. Users are strongly advised to upgrade to Yaml Axis Plugin version 0.2.1 or later to mitigate this vulnerability. Alternatively, the plugin can be disabled or removed as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

The vulnerability allows for remote code execution, enabling an attacker to execute arbitrary code within the Jenkins environment. This can lead to a complete compromise of the system.

Users who have the ability to configure a Matrix job or control the contents of a job's SCM repository can exploit this vulnerability.

There are no known instances of this vulnerability being exploited in the wild at this time.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities in software, using just the pom.xml file.

Yes, the CVSS score for this vulnerability is 8.8, indicating a high severity level.

How To Fix

Minimum fixed version

0.2.1

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