CVE-2022-25209: Vulnerability in org.jenkins-ci.plugins:sinatra-chef-builder

Summary

16/02/2022
No i
High
7.1

CVE-2022-25209: Improper Restriction of XML External Entity Reference in Jenkins Chef Sinatra. Affects org.jenkins-ci.plugins:sinatra-chef-builder versions < 1.20. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The org.jenkins-ci.plugins:sinatra-chef-builder package is a Maven ecosystem plugin for Jenkins that integrates with Chef Sinatra. It allows users to build and deploy Chef Sinatra applications directly from Jenkins. The plugin provides functionality for form validation, but it lacks proper permission checks and XML parser configuration, making it vulnerable to XML external entity (XXE) attacks.

Vulnerability Detail

The vulnerability (CVE-2022-25209) in org.jenkins-ci.plugins:sinatra-chef-builder arises from the plugin's failure to perform a permission check in a method implementing form validation. Additionally, the plugin does not configure its XML parser to prevent XXE attacks. This allows attackers to exploit the vulnerability by crafting a malicious XML response that includes external entities. By doing so, attackers can extract sensitive information from the Jenkins controller or perform server-side request forgery.

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 a temporary workaround, users can disable or restrict access to the affected plugin until it can be updated to a secure version. This can be done by disabling the plugin in the Jenkins configuration or by restricting access to the plugin through Jenkins' security settings.

Conclusion

The vulnerability in org.jenkins-ci.plugins:sinatra-chef-builder exposes Jenkins instances to potential XXE attacks and server-side request forgery. It is crucial to upgrade to a secure version of the Chef Sinatra Plugin (1.21 or later) to mitigate the risk. Disabling or restricting access to the affected plugin can serve as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.jenkins-ci.plugins:sinatra-chef-builder →

Share this vulnerability

FAQ

The vulnerability allows attackers to extract sensitive information from the Jenkins controller or perform server-side request forgery. This can lead to unauthorized access, data leakage, and potential further compromise of the Jenkins environment.

No, versions 1.20 and earlier of the plugin are affected. The vulnerability has been addressed in version 1.21 or later.

While there is no known public exploit at the time of this report, it is important to address the vulnerability promptly to mitigate the risk of exploitation.

A temporary workaround is to disable or restrict access to the affected plugin until it can be updated to a secure version. However, upgrading to the latest version is the recommended long-term solution.

Related vulnerabilities

Recent vulnerabilities recorded for org.jenkins-ci.plugins:sinatra-chef-builder.

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