CVE-2021-21696: Jenkins - Insecure Deserialization
- Cve: CVE-2021-21696
- Name: Jenkins - Insecure Deserialization
- Description: 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.
- Impact: Attackers can replace trusted libraries, leading to arbitrary code execution on the Jenkins controller, potentially compromising the entire system.
- Remediation: Update Jenkins to version 2.319 or later, where the issue is fixed.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.02397
- Epss percentile: 0.84317
- Assignee: [email protected]
- Published at: 2021-11-04T17:15:08Z
- Age in days: 1846
- Modified at: 2026-06-17T03:36:00Z
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-21696
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| NVD-CWE-Other | — |
Hackerone
- Reports: 4
- Rank: 2839
References
| Url | Source | Tags |
|---|---|---|
| https://www.jenkins.io/security/advisory/2021-11-04/#SECURITY-2423 | nvd | Mitigation, Vendor Advisory |
| http://www.openwall.com/lists/oss-security/2021/11/04/3 | nvd | Mailing List, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| jenkins:jenkins | <= 2.318, <= 2.303.2 | no | nvd | /v1/products/jenkins/jenkins |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| jenkinsci/jenkins | commit, package | yes | /v1/repositories/jenkinsci/jenkins |
Index
- Repositories: 10
- Repositories high signal: 6
- Packages: 1
Exploitation
- Remote: yes
- Hackerone reports: 4
- Exposed hosts: 1270874
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since