Security mailing lists by PureSourceCode

CVE-2021-21696

CRITICAL 9.8CVSS 3.1

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

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.

Published
4 Nov 2021
Last modified
17 Jun 2026
Assigned by
jenkinsci-cert@googlegroups.com
NVD status
Modified
Weakness
CWE-693
Also known as
BIT-jenkins-2021-21696GHSA-c5r9-rx53-q3gf
Sources
NVDJSONOSV GHSA-c5r9-rx53-q3gfJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD jenkins jenkins
cpe:2.3:a:jenkins:jenkins:*:*:*:*:lts:*:*:*
<= 2.303.2
NVD jenkins jenkins
cpe:2.3:a:jenkins:jenkins:*:*:*:*:-:*:*:*
<= 2.318
OSV Maven org.jenkins-ci.main:jenkins-core < 2.303.3 2.303.3
OSV Maven org.jenkins-ci.main:jenkins-core >= 2.304, < 2.319 2.319

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 4 Nov 2021)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.