CVE-2022-23107: Path Traversal in Jenkins Warnings Next Generation Plugin

Summary

21/01/2022
Yes i
High
8.1

CVE-2022-23107: Path Traversal in Jenkins Warnings Next Generation Plugin. Affects io.jenkins.plugins:warnings-ng across 4 version ranges.

< 9.0.2 >= 9.1.0, < 9.5.2 >= 9.6.0, < 9.7.1 >= 9.8.0, < 9.10.3

Fixed in 4 releases; the minimum fixed version depends on the release line you run. 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 Jenkins Warnings Next Generation Plugin is a Maven-based package that provides functionality for managing warnings in Jenkins. It allows users to configure custom IDs for files, which can be used to write and read specific files on the Jenkins controller file system. This plugin is vulnerable to a path traversal attack, where an attacker with Item/Configure permission can manipulate the file name and access unauthorized files on the system.

Vulnerability Detail

The vulnerability in the Jenkins Warnings Next Generation Plugin arises from the lack of restrictions on the file name when configuring a custom ID. This allows an attacker to traverse the file system and access sensitive files on the Jenkins controller. By exploiting this vulnerability, an attacker can potentially read or modify files that they should not have access to, leading to unauthorized disclosure of information or unauthorized modifications to the system. The plugin has been fixed in versions 9.10.3, 9.7.1, 9.5.2, and 9.0.2 by implementing checks for prohibited directory separator characters in the custom ID.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 9.0.2 9.0.2
  • >= 9.1.0, < 9.5.2 9.5.2
  • >= 9.6.0, < 9.7.1 9.7.1
  • >= 9.8.0, < 9.10.3 9.10.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to update the plugin to the fixed versions as soon as possible.

Conclusion

The Jenkins Warnings Next Generation Plugin is vulnerable to a path traversal attack that allows unauthorized access to sensitive files on the Jenkins controller. It is crucial to update the plugin to the fixed versions to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for io.jenkins.plugins:warnings-ng →

Share this vulnerability

FAQ

This vulnerability allows an attacker to read or modify sensitive files on the Jenkins controller. The impact can range from unauthorized disclosure of information to unauthorized modifications to the system.

Users of the Jenkins Warnings Next Generation Plugin prior to versions 9.10.3, 9.7.1, 9.5.2, and 9.0.2 are affected by this vulnerability.

There are no known public exploits for this vulnerability at the moment.

No, this vulnerability requires an attacker to have Item/Configure permission on the Jenkins instance.

Yes, the CVSS score for this vulnerability is 8.1 (High).

Related vulnerabilities

Recent vulnerabilities recorded for io.jenkins.plugins:warnings-ng.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 9.0.2 9.0.2
  • >= 9.1.0, < 9.5.2 9.5.2
  • >= 9.6.0, < 9.7.1 9.7.1
  • >= 9.8.0, < 9.10.3 9.10.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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