Jenkins Security Advisory 2021-02-19
Privilege escalation vulnerability in bundled Spring Security librarySECURITY-2195
CVE-2021-22112Spring Security 5.4.3 and earlier has a vulnerability that unintentionally persisted temporarily elevated privileges in some circumstances in a user’s session.
This issue, CVE-2021-22112, is resolved in Spring Security 5.4.4.Jenkins 2.266 through 2.279 (inclusive) included releases of Spring Security with this vulnerability.We are aware of a sequence of operations in Jenkins 2.275 through 2.278 (inclusive) that allows attackers with Job/Workspace permission to exploit this to switch their identity to SYSTEM, an internal user with all permissions.Jenkins 2.280 integrates Spring Security 5.4.4, which includes a fix for CVE-2021-22112.We recommend that all Jenkins instances running Jenkins releases 2.266 through 2.279 (inclusive) are upgraded to 2.280.
Administrators of instances running Jenkins releases 2.275 through 2.278 (inclusive) who cannot upgrade to a fixed version are advised to apply the short-term workaround of removing Job/Workspace permission from all non-admin users.SeveritySECURITY-2195:HighAffected VersionsJenkins weekly up to and including
2.279FixJenkins weekly should be updated to version
2.280These versions include fixes to the vulnerabilities described above. All prior versions are considered to be affected by these vulnerabilities unless otherwise indicated.