CVE-2021-43576: XXE vulnerability in Jenkins pom2config Plugin

Summary

24/05/2022
No i
Moderate
6.5

CVE-2021-43576: XXE vulnerability in Jenkins pom2config Plugin. Affects org.jenkins-ci.plugins:pom2config versions < 1.2. No fix is published. 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 pom2config Plugin is a Maven plugin that allows users to generate a configuration file from a Maven pom.xml file. It is commonly used in Jenkins pipelines to automate the configuration process. The plugin parses the XML file and extracts relevant information to generate the configuration. However, versions 1.2 and earlier of the plugin do not properly configure the XML parser, making it vulnerable to XML external entity (XXE) attacks. This vulnerability allows attackers with certain permissions to exploit the plugin and potentially extract sensitive information from the Jenkins controller or perform server-side request forgery.

Vulnerability Detail

The XXE vulnerability in the Jenkins pom2config Plugin arises from the plugin's failure to configure its XML parser to prevent XXE attacks. This allows attackers with Overall/Read and Item/Read permissions to manipulate the plugin into parsing a specially crafted XML file that contains external entities. By leveraging these entities, an attacker can extract secrets from the Jenkins controller or perform server-side request forgery. The impact of this vulnerability is significant, as it can lead to unauthorized access to sensitive information and potential compromise of the Jenkins environment.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As there is no fix currently available, users are advised to consider the following workaround:

  1. Temporarily disable or remove the pom2config Plugin from the Jenkins environment.
  2. Implement alternative methods for generating configuration files, such as manually creating them or using other plugins that are not affected by the XXE vulnerability.

Please note that this workaround may impact the automation and functionality of Jenkins pipelines that rely on the pom2config Plugin.

Conclusion

The XXE vulnerability in the Jenkins pom2config Plugin poses a significant risk to Jenkins environments using affected versions of the plugin. As there is currently no fix available, it is important to stay informed about official Jenkins security advisories and apply a fixed version as soon as it becomes available. In the meantime, consider implementing the provided workaround and following security best practices to mitigate the risk. For further support and assistance with vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

The XXE vulnerability in the Jenkins pom2config Plugin can allow attackers to extract sensitive information from the Jenkins controller or perform server-side request forgery. This can lead to unauthorized access to confidential data and potential compromise of the Jenkins environment.

Users of Jenkins who have installed and are using versions 1.2 and earlier of the pom2config Plugin are affected by this vulnerability. Specifically, attackers with Overall/Read and Item/Read permissions can exploit this vulnerability.

At the time of this advisory's publication, there is no fix available for the XXE vulnerability in the Jenkins pom2config Plugin. It is recommended to monitor official Jenkins security advisories for updates and apply a fixed version as soon as it becomes available.

Yes, users can temporarily disable or remove the pom2config Plugin from their Jenkins environment. They can also explore alternative methods for generating configuration files that are not affected by the XXE vulnerability.

To protect your Jenkins environment, it is recommended to follow security best practices, such as restricting permissions, implementing proper input validation, and staying updated with the latest security patches and fixes. Regularly monitoring official Jenkins security advisories is also crucial.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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