# CVE-2021-21696: Agent-to-controller access control allowed writing to sensitive directory used by Jenkins Pipeline: Shared Groovy Libraries Plugin

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.40%, higher than 84% of CVEs (2026-12-01)
- Published: 2021-11-04T16:30:41.000Z
- Modified: 2026-09-08T08:47:57.696Z
- Also known as: GHSA-c5r9-rx53-q3gf, BIT-JENKINS-2021-21696
- Weaknesses: CWE-693
- Assigned by: jenkins

## 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.

(As written by CVE List.)

## Affected

- Jenkins project Jenkins: from unspecified up to 2.318; from unspecified up to LTS 2.303.2
- org.jenkins-ci.main:jenkins-core (Maven): before 2.303.3; from 2.304 before 2.319
- jenkins jenkins: up to 2.303.2; up to 2.318
- jenkins (Bitnami): before 2.318.1

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://www.jenkins.io/security/advisory/2021-11-04/#SECURITY-2423> (advisory, mitigation, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2021/11/04/3> (advisory, mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21696> (advisory, web)
- <https://github.com/jenkinsci/jenkins/commit/93451e20c20cfd84badeb0f37c38d4c0c7a5dad3> (web)
- <https://github.com/jenkinsci/jenkins> (package)

## Sources

- CVE List: [CVE-2021-21696](https://www.cve.org/CVERecord?id=CVE-2021-21696), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-c5r9-rx53-q3gf](https://github.com/advisories/GHSA-c5r9-rx53-q3gf), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2021-21696](https://nvd.nist.gov/vuln/detail/CVE-2021-21696), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-JENKINS-2021-21696](https://osv.dev/vulnerability/BIT-JENKINS-2021-21696), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-21696 · Whole record: https://cve.day/CVE-2021-21696.json · Rebuilt by cve.day 2026-11-25T22:58:05.355Z
