All vulnerabilities

Servers and applications

CVE-2021-21696

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.

Severity
Critical 9.8
Published
4 Nov 2021
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Sources
NVD

Affected software

SoftwareAffected versions
JenkinsServers and applications · cpe:a:jenkins:jenkins
  • Every version up to 2.303.2
  • Every version up to 2.318

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2021-21696
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2021-21696