Live threats

All CVEs / Jenkins

CVE-2021-21696Jenkins

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.4%
probability of exploitation in 30 days · percentile 85
Auth required
No
Published
Nov 4, 2021
Updated
Jun 17, 2026
Category
Server · Cross-platform
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Jenkins.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.jenkins-ci.main:jenkins-core < 2.303.3 2.303.3 —
Maven org.jenkins-ci.main:jenkins-core ≥ 2.304 < 2.319 2.319 —

Per OSV / GitHub Advisories (GHSA-c5r9-rx53-q3gf). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
jenkinsjenkins≤ 2.303.2
jenkinsjenkins≤ 2.318

Official sources

References

Links published by the sources. Open them with care.