CVE-2021-21696

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

Published Nov 4, 2021 CVSS 3.1 · 9.8 Critical EPSS 2.4% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-3513 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.
Github GHSA Github GHSA GHSA-c5r9-rx53-q3gf Agent-to-controller access control allowed writing to sensitive directory used by Jenkins Pipeline: Shared Groovy Libraries Plugin
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
jenkins
Published
Updated
Aug 3, 2024, 6:23 PM
Reserved
Jan 4, 2021, 12:00 AM
Status
Modified
Published
Nov 4, 2021, 5:15 PM
Modified
Jun 17, 2026, 3:36 AM
Severity
Important
Public date
Nov 4, 2021, 2:20 PM