{"id":"CVE-2021-21671","aliases":["BIT-jenkins-2021-21671","GHSA-4wr9-2xc6-jmg5"],"url":"https://o3.security/vulnerability/CVE-2021-21671","summary":"Session fixation vulnerability in Jenkins","details":"Jenkins 2.299 and earlier, LTS 2.289.1 and earlier does not invalidate the previous session on login. This allows attackers to use social engineering techniques to gain administrator access to Jenkins.\n\nThis vulnerability was introduced in Jenkins 2.266 and LTS 2.277.1.\n\nJenkins 2.300, LTS 2.289.2 invalidates the previous session on login.\n\nIn case of problems, administrators can choose a different implementation by setting the [Java system property `hudson.security.SecurityRealm.sessionFixationProtectionMode`](https://www.jenkins.io/doc/book/managing/system-properties/#hudson-security-securityrealm-sessionfixationprotectionmode) to `2`, or disable the fix entirely by setting that system property to `0`.","published":"2021-06-30T17:15:08.987Z","modified":"2026-07-08T22:15:01.269429Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"},"epss":{"score":0.01706,"percentile":0.7552,"asOf":"2026-08-22"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.jenkins-ci.main:jenkins-core","fixedVersion":"2.300"},{"ecosystem":"Maven","name":"org.jenkins-ci.main:jenkins-core","fixedVersion":"2.289.2"}],"fix":{"url":"https://github.com/jenkinsci/jenkins/commit/25a42f3942fd9f8bd768c887c679dbc796b4fcd5","label":"jenkinsci/jenkins@25a42f3"},"references":[{"type":"ADVISORY","url":"http://www.openwall.com/lists/oss-security/2021/06/30/1"},{"type":"ADVISORY","url":"https://www.jenkins.io/security/advisory/2021-06-30/#SECURITY-2371"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21671"},{"type":"WEB","url":"https://github.com/jenkinsci/jenkins/commit/25a42f3942fd9f8bd768c887c679dbc796b4fcd5"},{"type":"PACKAGE","url":"https://github.com/jenkinsci/jenkins"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T22:15:01.269429Z"}}