CVE-2021-21686: 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...
High CVSS 8.1
- CVE id
- CVE-2021-21686
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Jenkins Runtimes and servers |
< 2.319 | 2.319 |
| Jenkins LTS Runtimes and servers |
< 2.303.3 | 2.303.3 |
How to fix it
Jenkins (Runtimes and servers)
Upgrade Jenkins to 2.319 or later.
curl -sI $JENKINS_URL | grep X-Jenkins
- Upgrade Jenkins to the patched weekly release (the jenkins/jenkins image tag or your packages) and restart it.
Jenkins LTS (Runtimes and servers)
Upgrade Jenkins LTS to 2.303.3 or later.
curl -sI $JENKINS_URL | grep X-Jenkins
- Upgrade Jenkins to the patched LTS release (the jenkins/jenkins:lts image tag or your packages) and restart it.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.