Miggo Logo

CVE-2022-25197: Agent-to-controller security bypass in Jenkins HashiCorp Vault Plugin allows reading arbitrary files

5.3

CVSS Score
3.1

Basic Information

EPSS Score
0.69182%
Published
2/16/2022
Updated
12/28/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
com.datapipe.jenkins.plugins:hashicorp-vault-pluginmaven<= 336.v182c0fbaaeb7351.vdb_f83a_1c6a_9d

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The pre-patch implementation of getToken() used Jenkins' FilePath.act() method to read token files. FilePath operations are designed to bridge agent/controller boundaries, but in this context allowed agent-initiated file reads on the controller. The vulnerability was fixed by removing the FilePath usage and performing direct file access (which implicitly restricts execution to the controller). The commit message and CVE description both confirm this was an agent-to-controller security bypass via file read functionality.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

J*nkins **s*i*orp V*ult Plu*in ***.v************ *n* **rli*r impl*m*nts *un*tion*lity t**t *llows ***nt pro**ss*s to r*** *r*itr*ry *il*s on t** J*nkins *ontroll*r *il* syst*m. T*is *llows *tt**k*rs **l* to *ontrol ***nt pro**ss*s to r*** *r*itr*ry

Reasoning

T** pr*-p*t** impl*m*nt*tion o* `**tTok*n()` us** J*nkins' `*il*P*t*.**t()` m*t*o* to r*** tok*n *il*s. `*il*P*t*` op*r*tions *r* **si*n** to *ri*** ***nt/*ontroll*r *oun**ri*s, *ut in t*is *ont*xt *llow** ***nt-initi*t** *il* r***s on t** *ontroll*r