CVE-2021-21685

Jenkins 2.318 and earlier, LTS 2.303.2 and earlier does not check agent-to-controller access to create parent directories in FilePath#mkdirs

published November 4, 2021

CVSS
โ€”
EPSS
2%
Percentile
75.0
In the wild
Unconfirmed
What it is

โš ๏ธ A little oversight can cause big headaches! Jenkins agents can create directories without checking if they should โ€” like letting anyone into a secure room to add their own filing cabinets. ๐Ÿ—„๏ธ Think of this as a library that allows any visitor to create and label their own sections without a librarian's approval. While it seems convenient, it opens the door for disorganization and chaos! This oversight means that an attacker could potentially create unauthorized directories, leading to cluttered file management and possible data exposure. It's not an instant catastrophe, but it leaves you vulnerable to confusion and mismanagement.

Put simply

Think of this as a library that allows any visitor to create and label their own sections without a librarian's approval. While it seems convenient, it opens the door for disorganization and chaos! The flaw in Jenkins versions 2.318 and earlier (including LTS 2.303.2) allows agents to bypass controls on parent directory creation in the FilePath#mkdirs method, which can lead to unintended directory structures being created.

What to do

This oversight means that an attacker could potentially create unauthorized directories, leading to cluttered file management and possible data exposure. It's not an instant catastrophe, but it leaves you vulnerable to confusion and mismanagement. To secure your Jenkins instance, update to version 2.319 or LTS 2.303.3 or later. Additionally, review your access policies for Jenkins agents to ensure they align with your security requirements. ๐Ÿ›ก๏ธ You can totally tackle this! Update your Jenkins and tighten up those access controls โ€” you've got this! โœจ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01560 ยท 75.0th percentile
Published
2021-11-04T16:30Z
EPSS history
Timeline
  • 04 NOV 16:30Z
    Jenkins 2.318 and earlier, LTS 2.303.2 and earlier does not check agent-to-controller access to create parent directories in FilePath#mkdirs
    cvelistv5