Miggo Logo

CVE-2023-43496:
Jenkins temporary plugin file created with insecure permissions

7

CVSS Score
3.1

Basic Information

EPSS Score
0.35039%
Published
9/20/2023
Updated
1/4/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.jenkins-ci.main:jenkins-coremaven>= 2.50, < 2.414.22.414.2
org.jenkins-ci.main:jenkins-coremaven>= 2.415, < 2.4242.424

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from insecure temporary file handling in plugin installation. The commit diff shows the patched version adds a secure subdirectory (tmpDir) parameter to File.createTempFile(), while the original vulnerable code used the system temp directory. The doUploadPlugin method is directly responsible for this file creation operation. The security advisory specifically mentions this code path as the source of insecure file permissions when deploying plugins from URLs, and the test cases added in PluginManagerSecurity3072Test.java validate the permission changes.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

J*nkins *r**t*s * t*mpor*ry *il* w**n * plu*in is **ploy** *ir**tly *rom * URL. J*nkins *.*** *n* **rli*r, LTS *.***.* *n* **rli*r *r**t*s t*is t*mpor*ry *il* in t** syst*m t*mpor*ry *ir**tory wit* t** ****ult p*rmissions *or n*wly *r**t** *il*s. I

Reasoning

T** vuln*r**ility st*ms *rom ins**ur* t*mpor*ry *il* **n*lin* in plu*in inst*ll*tion. T** *ommit *i** s*ows t** p*t**** v*rsion ***s * s**ur* su**ir**tory (tmp*ir) p*r*m*t*r to `*il*.*r**t*T*mp*il*()`, w*il* t** ori*in*l vuln*r**l* *o** us** t** syst