CVE-2021-21686
jenkins: File path filters do not canonicalize paths, allowing operations to follow symbolic links to outside allowed directories
Overview
Description
File path filters in the agent-to-controller security subsystem of Jenkins 2.318 and earlier, LTS 2.303.2 and earlier do not canonicalize paths, allowing operations to follow symbolic links to outside allowed directories.
Source: OX vulnerability database
Severity
8.1 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Weakness: CWE-59
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | jenkins | <2.319.0 | 2.319.0 |
| Maven | org.jenkins-ci.main:jenkins-core | <2.303.3>=2.304, <2.319 | 2.303.32.319 |
Open a package to see all its vulnerabilities.
Operating systems · 20 fixes
Red Hat 2 releases · 6 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | cri-o | 0:1.23.0-92.rhaos4.10.gitdaab4d1.el7 | RHSA-2022:0055 |
| 7 | jenkins | 0:2.303.3.1637698110-1.el7 | RHSA-2021:4827 |
| 7 | jenkins-2-plugins | 0:3.11.1637699107-1.el7 | RHSA-2021:4827 |
| 7 | openshift-clients +1 | 0:4.10.0-202202160023.p0.gf93da17.assembly.stream.el7 | RHSA-2022:0055 |
| 7 | openshift-hyperkube | 0:4.10.0-202202250816.p0.ge419edf.assembly.stream.el7 | RHSA-2022:0055 |
| 8 | coreos-installer +1 | 0:0.12.0-1.rhaos4.10.el8 | RHSA-2022:0055 |
14 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-21686
- github.com https://github.com/jenkinsci/jenkins
- github.com https://github.com/jenkinsci/jenkins/commit/104c751d907919dd53f5090f84d53c671a66457b
- github.com https://github.com/jenkinsci/jenkins/commit/5a245e42979abe4a26d41727c839521e36cedd74
- github.com https://github.com/jenkinsci/jenkins/commit/63cde2daadc705edf086f2213b48c8c547f98358
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-21686
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-21686
- www.jenkins.io https://www.jenkins.io/security/advisory/2021-11-04/#SECURITY-2455
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.