{"id":"CVE-2021-21682","aliases":["CVE-2021-21682","GHSA-6q4g-84f3-mw74","BIT-JENKINS-2021-21682"],"related":[],"kind":"vulnerability","state":"published","title":"Improper handling of equivalent directory names on Windows in Jenkins","summary":"Jenkins 2.314 and earlier, LTS 2.303.1 and earlier accepts names of jobs and other entities with a trailing dot character, potentially replacing the configuration and data of other entities on Windows.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Jenkins 2.314 and earlier, LTS 2.303.1 and earlier accepts names of jobs and other entities with a trailing dot character, potentially replacing the configuration and data of other entities on Windows.","source":"cvelist"},{"lang":"en","text":"Jenkins stores jobs and other entities on disk using their name shown on the UI as file and folder names.\n\nOn Windows, when specifying a file or folder with a trailing dot character (`example.`), the file or folder will be treated as if that character was not present (`example`). As both are legal names for jobs and other entities in Jenkins 2.314 and earlier, LTS 2.303.1 and earlier, this could allow users with the appropriate permissions to change or replace configurations of jobs and other entities.\n\nJenkins 2.315, LTS 2.303.2 does not allow names of jobs and other entities to end with a dot character.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Jenkins versiones 2.314 y anteriores, LTS versiones 2.303.1 y anteriores, aceptan nombres de trabajos y otras entidades con un carácter de punto al final, reemplazando potencialmente la configuración y los datos de otras entidades en Windows","source":"nvd"}],"published":"2021-10-06T22:10:11.000Z","modified":"2026-09-08T08:47:57.747Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:N/I:P/A:N","score":4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-42"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"2.314","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"LTS 2.303.1","status":"affected"}],"vendor":"Jenkins project","product":"Jenkins","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.304","status":"affected","fixed":"2.315"}],"ecosystem":"Maven","package":"org.jenkins-ci.main:jenkins-core","purl":"pkg:maven/org.jenkins-ci.main/jenkins-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.303.2"}],"ecosystem":"Maven","package":"org.jenkins-ci.main:jenkins-core","purl":"pkg:maven/org.jenkins-ci.main/jenkins-core","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"2.303.1"},{"status":"affected","lastAffected":"2.314"}],"vendor":"jenkins","product":"jenkins","cpe":"cpe:2.3:a:jenkins:jenkins:*:*:*:*:lts:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.314.1"}],"ecosystem":"Bitnami","package":"jenkins","purl":"pkg:bitnami/jenkins","source":"bitnami"}],"references":[{"url":"https://www.jenkins.io/security/advisory/2021-10-06/#SECURITY-2424","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2021/10/06/1","tags":["advisory","mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21682","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/jenkinsci/jenkins/commit/c2c2b59071265aea07f88d5e95297c0a433921c3","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"jenkins","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21682","url":"https://www.cve.org/CVERecord?id=CVE-2021-21682","licence":"CVE Terms of Use","modified":"2024-08-03T18:23:28.256Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6q4g-84f3-mw74","url":"https://github.com/advisories/GHSA-6q4g-84f3-mw74","licence":"CC-BY-4.0","modified":"2024-02-16T08:13:07.680Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21682","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21682","licence":"Public domain","modified":"2026-06-17T03:35:59.373Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-JENKINS-2021-21682","url":"https://osv.dev/vulnerability/BIT-JENKINS-2021-21682","licence":"Apache-2.0","modified":"2026-09-08T08:47:57.747Z"}],"updatedAt":"2026-11-25T22:58:04.357Z","epss":{"score":0.00999,"percentile":0.6374,"date":"2026-12-01T12:00:22.000Z"}}