Improper Control of Generation of Code ('Code Injection') Affecting org.jenkins-ci.main:jenkins-core package, versions [,2.414.2)[2.415,2.424)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (44th 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 Improper Control of Generation of Code ('Code Injection') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGJENKINSCIMAIN-5913349
  • published21 Sept 2023
  • disclosed20 Sept 2023
  • creditDaniel Beck

Introduced: 20 Sep 2023

CVE-2023-43496  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade org.jenkins-ci.main:jenkins-core to version 2.414.2, 2.424 or higher.

Overview

org.jenkins-ci.main:jenkins-core is an open source automation server.

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') when the temporary file creation process is initiated during plugin installation from a URL. An attacker can replace the file before it is installed, potentially leading to arbitrary code execution.

Note: This is only exploitable if the attacker has access to the system temporary directory.

Workaround

Users unable to upgrade to the fixed version can change the default temporary-file directory using the Java system property java.io.tmpdir .

CVSS Scores

version 3.1