GitHub Advisory Database
GHSA-r57f-7xw3-q2r9
Improper Authentication in Jenkins
Details
Jenkins versions 2.56 and earlier as well as 2.46.1 LTS and earlier are vulnerable to a login command which allowed impersonating any Jenkins user. The login command available in the remoting-based CLI stored the encrypted user name of the successfully authenticated user in a cache file used to authenticate further commands. Users with sufficient permission to create secrets in Jenkins, and download their encrypted values (e.g. with Job/Configure permission), were able to impersonate any other Jenkins user on the same instance.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | org.jenkins-ci.main:jenkins-core | From 2.50 before 2.57 (fixed in 2.57) |
| Maven | org.jenkins-ci.main:jenkins-core | All versions before 2.46.2 (fixed in 2.46.2) |