CVE-2021-21692
jenkins: The operations FilePath#renameTo and FilePath#moveAllChildrenTo only check read permission on the source path
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Bitnami. Rated lower by Red Hat (high).
Description
FilePath#renameTo and FilePath#moveAllChildrenTo in Jenkins 2.318 and earlier, LTS 2.303.2 and earlier only check 'read' agent-to-controller access permission on the source path, instead of 'delete'.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | jenkins | 2.319.0 |
| maven::GitHub Security Advisory Maven | org.jenkins-ci.main:jenkins-core | 2.303.3, 2.319 |
References
- https://access.redhat.com/security/cve/CVE-2021-21692
- https://github.com/jenkinsci/jenkins
- https://github.com/jenkinsci/jenkins/commit/104c751d907919dd53f5090f84d53c671a66457b
- https://github.com/jenkinsci/jenkins/commit/5a245e42979abe4a26d41727c839521e36cedd74
- https://github.com/jenkinsci/jenkins/commit/63cde2daadc705edf086f2213b48c8c547f98358
- https://nvd.nist.gov/vuln/detail/CVE-2021-21692
- https://www.cve.org/CVERecord?id=CVE-2021-21692
- https://www.jenkins.io/security/advisory/2021-11-04/#SECURITY-2455