Arbitrary shell command execution in Jenkins EC2 Plugin
Date: 2022-05
Affected: maven/org.jenkins-ci.plugins:ec2
Attack vector: command-injection
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2017-1000502
CWE: CWE-78
CVSS: 8.8 (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)

Users with permission to create or configure agents in Jenkins 1.37 and earlier could configure an EC2 agent to run arbitrary shell commands on the master node whenever the agent was supposed to be launched. Configuration of these agents now requires the 'Run Scripts' permission typically only granted to administrators.


Mitigations:

Architectural layers (MAESTRO):