Miggo Logo

CVE-2023-46655:
Jenkins CloudBees CD Plugin vulnerable to arbitrary file read

6.5

CVSS Score
3.1

Basic Information

EPSS Score
0.50908%
Published
10/25/2023
Updated
11/11/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.jenkins-ci.plugins:electricflowmaven< 1.1.331.1.33

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from improper symlink handling during file collection for publishing. The removed getFilesFromDirectory() lacked symlink checks, while the original getFilesFromDirectoryWildcardDirScanner() lacked the toRealPath() containment check added in the patch. Both allowed resolving symlinks outside the temp directory. The ElectricFlowClient.uploadArtifact()'s file processing was modified to use the safer endpoint-specific logic, but the root vulnerability resided in FileHelper's file collection methods.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

J*nkins *lou****s ** Plu*in t*mpor*rily *opi*s *il*s *rom *n ***nt worksp*** to t** *ontroll*r in pr*p*r*tion *or pu*lis*in* t**m in t** '*lou****s ** - Pu*lis* *rti***t' post-*uil* st*p. *lou****s ** Plu*in *.*.** *n* **rli*r *ollows sym*oli* links

Reasoning

T** vuln*r**ility st*ms *rom improp*r symlink **n*lin* *urin* *il* *oll**tion *or pu*lis*in*. T** r*mov** `**t*il*s*rom*ir**tory()` l**k** symlink ****ks, w*il* t** ori*in*l `**t*il*s*rom*ir**toryWil***r**irS**nn*r()` l**k** t** `toR**lP*t*()` *ont*i