Miggo Logo

CVE-2014-2058:
Jenkins allows attackers to execute arbitrary jobs

6.5

CVSS Score

Basic Information

EPSS Score
-
CWE
-
Published
5/17/2022
Updated
3/5/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
AV:N/AC:L/Au:S/C:P/I:P/A:P
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.jenkins-ci.main:jenkins-coremaven>= 1.533, < 1.5511.551
org.jenkins-ci.main:jenkins-coremaven< 1.532.21.532.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the pre-patch code in AbstractProject.java where BuildTrigger's getChildProjects() was called without SYSTEM impersonation. This allowed attackers to manipulate job configurations to reference downstream projects they couldn't see (due to ACLs), as the project resolution used the attacker's permissions. The subsequent BUILD permission check was ineffective because the visibility check had already failed. The fix (adding SYSTEM impersonation during project resolution) confirms this was the root cause, as it ensures downstream project existence is verified with full privileges before checking user-specific BUILD permissions.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*uil*Tri***r in J*nkins ***or* *.*** *n* LTS ***or* *.***.* *llows r*mot* *ut**nti**t** us*rs to *yp*ss ****ss r*stri*tions *n* *x**ut* *r*itr*ry jo*s *y *on*i*urin* * jo* to tri***r *not**r jo*. NOT*: t*is vuln*r**ility *xists ****us* o* *n in*ompl*

Reasoning

T** vuln*r**ility st*ms *rom t** pr*-p*t** *o** in **str**tProj**t.j*v* w**r* *uil*Tri***r's **t**il*Proj**ts() w*s **ll** wit*out SYST*M imp*rson*tion. T*is *llow** *tt**k*rs to m*nipul*t* jo* *on*i*ur*tions to r***r*n** *ownstr**m proj**ts t**y *ou