Jenkins CloudBees CD Plugin vulnerable to arbitrary file read
Date: 2023-10
Affected: maven/org.jenkins-ci.plugins:electricflow
Attack vector: path-traversal
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2023-46654
CVE-2023-46655
CWE: CWE-22
CWE-59
CVSS: 6.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N)

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.


Mitigations:

Architectural layers (MAESTRO):