Miggo Logo

CVE-2022-23118: Agent-to-controller security bypass in Jenkins Debian Package Builder Plugin

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.89716%
Published
1/13/2022
Updated
6/27/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:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
ru.yandex.jenkins.plugins.debuilder:debian-package-buildermaven<= 1.6.11

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the plugin allowing agent-specified paths to the 'git' executable on the controller. Functions responsible for git command execution (common in package builder workflows) would naturally accept path parameters. Without validation() or sandboxing, these functions would execute arbitrary commands when the path points to a malicious binary. The high confidence comes from the direct match between the vulnerability description (agent-controlled git path leading to RCE) and typical Jenkins plugin patterns for external command execution.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

J*nkins ***i*n P**k*** *uil**r Plu*in *.*.** *n* **rli*r impl*m*nts *un*tion*lity t**t *llows ***nt pro**ss*s to invok* *omm*n*-lin* *it *t *n *tt**k*r-sp**i*i** p*t* on t** *ontroll*r. T*is *llows *tt**k*rs **l* to *ontrol ***nt pro**ss*s to invok*

Reasoning

T** vuln*r**ility st*ms *rom t** plu*in *llowin* ***nt-sp**i*i** p*t*s to t** '*it' *x**ut**l* on t** *ontroll*r. *un*tions r*sponsi*l* *or *it *omm*n* *x**ution (*ommon in p**k*** *uil**r work*lows) woul* n*tur*lly ****pt p*t* p*r*m*t*rs. Wit*out `v