VDB

CVE-2021-21696

CVE-2021-21696 PUBLISHED

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.

PackageEcosystemFixed in
org.jenkins-ci.main:jenkins-coreMaven Central2.319, 2.318, 2.303.3
jenkinsBitnami2.318.1
jenkinsArch Linux2.319-1
jenkinsjenkins2.318, 2.303.2
jenkinsBitnami2.318.1
JenkinsJenkins projectLTS 2.303.2, 2.318

Affected products

VendorProductVersions
Jenkins projectJenkinsunspecified, unspecified
Jenkins projectJenkins*, *

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›