Miggo Logo

CVE-2023-23939:
Azure/setup-kubectl: Escalation of privilege vulnerability for v3 and lower

3

CVSS Score
3.1

Basic Information

EPSS Score
0.53194%
Published
3/7/2023
Updated
3/7/2023
KEV Status
No
Technology
TechnologyGitHub Actions

Technical Details

CVSS Vector
CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
Azure/setup-kubectlactions< 33

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems directly from the fs.chmodSync call with 777 permissions in the downloadKubectl function. The commit diff shows this was changed to 775 in the patch, and all vulnerability descriptions explicitly reference this insecure permission assignment as the root cause. The function's role in setting executable permissions makes it the clear vulnerable component.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

### Imp**t T*is vuln*r**ility only imp**ts v*rsions `v*` *n* low*r. *n ins**ur* t*mpor*ry *r**tion o* * *il* *llows ot**r **tors on t** **tions runn*r to r*pl*** t** Ku***tl *in*ry *r**t** *y t*is **tion ****us* it is worl* writ**l*. T*is Ku***tl to

Reasoning

T** vuln*r**ility st*ms *ir**tly *rom t** `*s.**mo*Syn*` **ll wit* *** p*rmissions in t** `*ownlo**Ku***tl` *un*tion. T** *ommit *i** s*ows t*is w*s ***n*** to *** in t** p*t**, *n* *ll vuln*r**ility **s*riptions *xpli*itly r***r*n** t*is ins**ur* p*