CVE-2021-21696
Reported by jenkins · Published November 4, 2021
jenkins-core is fixed in 2.319, 2.318 and 2.303.3 (Maven Central)
Jenkins 2.318 and earlier, LTS 2.303.2 and earlier does not limit agent read/write access to the libs/ directory inside build directories when using the FilePath APIs, allowing attackers in control of agent processes to replace the code of a trusted library with a modified variant. This results in unsandboxed code execution in the Jenkins controller process.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.jenkins-ci.main:jenkins-core | Maven Central | 2.319, 2.318, 2.303.3 |
| jenkins | Bitnami | 2.318.1 |
| jenkins | Arch Linux | 2.319-1 |
| jenkins | jenkins | 2.318, 2.303.2 |
| jenkins | Bitnami | 2.318.1 |
| Jenkins | Jenkins project | LTS 2.303.2, 2.318 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Jenkins project | Jenkins | unspecified, unspecified |
| Jenkins project | Jenkins | *, * |
Timeline
- Nov 4, 2021 CVE Published
- Nov 4, 2021 PoC Published
- Nov 5, 2021 EPSS Score (30 in total, the first dated here)
- Dec 16, 2022 CVE Updated
- Mar 17, 2026 Security Advisory
- Aug 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-21696
vulnetix vdb fixes CVE-2021-21696
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-21696/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- [oss-security] 20211104 Multiple vulnerabilities in Jenkins and Jenkins plugins mailing-listx_refsource_MLIST