Jenkins SSH Agent Plugin exposes SSH private key password to users with permission to read the build log
Date: 2022-05
Affected: maven/org.jenkins-ci.plugins:ssh-agent
Attack vector: info-disclosure
Category: vulnerability-disclosure
Severity: Low
CVE: CVE-2018-1999036
CWE: CWE-532
CVSS: 3.1 (CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N)

An exposure of sensitive information vulnerability exists in Jenkins SSH Agent Plugin 1.15 and earlier in SSHAgentStepExecution.java that exposes the SSH private key password to users with permission to read the build log. As of version 1.16, the plugin no longer logs the ssh-add invocation that would reveal the passphrase.


Mitigations:

Architectural layers (MAESTRO):