Arbitrary Code Injection Affecting jenkins-2-plugins package, versions *


Severity

Recommended
medium

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
97.33% (100th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL7-JENKINS2PLUGINS-5272537
  • published26 Mar 2023
  • disclosed13 Oct 2022

Introduced: 13 Oct 2022

CVE-2022-42889  (opens in a new tab)
CWE-94  (opens in a new tab)
CWE-1188  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:7 jenkins-2-plugins.

NVD Description

Note: Versions mentioned in the description apply only to the upstream jenkins-2-plugins package and not the jenkins-2-plugins package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

Apache Commons Text performs variable interpolation, allowing properties to be dynamically evaluated and expanded. The standard format for interpolation is "${prefix:name}", where "prefix" is used to locate an instance of org.apache.commons.text.lookup.StringLookup that performs the interpolation. Starting with version 1.5 and continuing through 1.9, the set of default Lookup instances included interpolators that could result in arbitrary code execution or contact with remote servers. These lookups are: - "script" - execute expressions using the JVM script execution engine (javax.script) - "dns" - resolve dns records - "url" - load values from urls, including from remote servers Applications using the interpolation defaults in the affected versions may be vulnerable to remote code execution or unintentional contact with remote servers if untrusted configuration values are used. Users are recommended to upgrade to Apache Commons Text 1.10.0, which disables the problematic interpolators by default.

CVSS Scores

version 3.1