CVE-2023-46655: Electricflow Jenkins CloudBees CD Plugin Vulnerable Vulnerability

MODERATE
Advisory Identifier: GHSA-9ggw-h9mf-4jh7
CVSS 6.5
CWE-59 CWE-22
Published
Advisory Summary

CVE-2023-46655 is a MODERATE (CVSS 6.5) jenkins cloudbees cd plugin vulnerable vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Electricflow libraries in the Maven ecosystem. The issue involves jenkins cloudbees cd plugin vulnerable to arbitrary file read. Remediation is available by upgrading affected packages to version 1.1.33.

CVE-2023-46655 at a Glance

CVE Identifier CVE-2023-46655
GHSA Identifier GHSA-9ggw-h9mf-4jh7
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-59: Improper Link Resolution Before File Access ('Link Following')
Affected Product Electricflow
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-46655

To remediate this vulnerability, upgrade all affected Electricflow dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.jenkins-ci.plugins:electricflow fixed: 1.1.33
<dependency>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>electricflow</artifactId>
    <version>1.1.33</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.jenkins-ci.plugins

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-46655, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.jenkins-ci.plugins

Analyze the terminal output to locate any version of Electricflow in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.33), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.jenkins-ci.plugins command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. In Electricflow, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Jenkins CloudBees CD Plugin temporarily copies files from an agent workspace to the controller in preparation for publishing them in the 'CloudBees CD - Publish Artifact' post-build step. CloudBees CD Plugin 1.1.32 and earlier follows symbolic links to locations outside of the temporary directory on the controller when collecting the list of files to publish. This allows attackers able to configure jobs to publish arbitrary files from the Jenkins controller file system to the previously configured CloudBees CD server. CloudBees CD Plugin 1.1.33 ensures that only files located within the expected directory are published.

CVE-2023-46655 Affected Electricflow Versions

1 component(s)
Fixed Versions:
1.1.33
Product / Package Ecosystem Affected Versions Fixed Version
org.jenkins-ci.plugins:electricflow
Maven
< 1.1.33
1.1.33

References

Frequently Asked Questions

What is CVE-2023-46655?
CVE-2023-46655 is a security vulnerability in Electricflow involving Jenkins CloudBees CD Plugin vulnerable to arbitrary file read under CWE-59: Improper Link Resolution Before File Access ('Link Following').
Which Electricflow versions are affected?
Affected versions include releases prior to 1.1.33 across affected packages: org.jenkins-ci.plugins:electricflow.
What version fixes CVE-2023-46655?
Upgrading to 1.1.33 (or the latest patched release for your respective branch) resolves the vulnerability.
Is electricflow affected?
Yes, org.jenkins-ci.plugins:electricflow is affected in releases prior to 1.1.33. Upgrade your dependency to 1.1.33 or later.
What is the CVSS score of CVE-2023-46655?
CVE-2023-46655 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-46655?
CVE-2023-46655 is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following') (The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.).
How can I check Maven dependencies for CVE-2023-46655?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jenkins-ci.plugins'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9ggw-h9mf-4jh7",
  "modified" : "2023-11-02T16:50:54Z",
  "published" : "2023-10-25T18:32:25Z",
  "aliases" : [ "CVE-2023-46655" ],
  "summary" : "Jenkins CloudBees CD Plugin vulnerable to arbitrary file read",
  "details" : "Jenkins CloudBees CD Plugin temporarily copies files from an agent workspace to the controller in preparation for publishing them in the 'CloudBees CD - Publish Artifact' post-build step.\n\nCloudBees CD Plugin 1.1.32 and earlier follows symbolic links to locations outside of the temporary directory on the controller when collecting the list of files to publish.\n\nThis allows attackers able to configure jobs to publish arbitrary files from the Jenkins controller file system to the previously configured CloudBees CD server.\n\nCloudBees CD Plugin 1.1.33 ensures that only files located within the expected directory are published.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jenkins-ci.plugins:electricflow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.33"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-46655"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jenkinsci/electricflow-plugin/commit/e45ca8428ae45f45ca07611e802eaa0f1484ab50"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jenkinsci/electricflow-plugin"
  }, {
    "type" : "WEB",
    "url" : "https://www.jenkins.io/security/advisory/2023-10-25/#SECURITY-3238"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2023/10/25/2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22", "CWE-59" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-30T15:02:06Z",
    "nvd_published_at" : "2023-10-25T18:17:40Z"
  }
}