CVE-2021-21693

When creating temporary files, agent-to-controller access to create those files is only checked after they've been created in Jenkins 2.318 and earlier, LTS…

published November 4, 2021

CVSS
—
EPSS
2%
Percentile
75.0
In the wild
Unconfirmed
What it is

⚠️ A sneaky detail during temporary file creation in Jenkins could lead to unexpected access! It only checks agent-to-controller permissions AFTER the files are made. 🚨 Think of it like a restaurant where the chef prepares meals without checking the customer's order first. If a rogue employee steps in, they could add any dish they want to the menu — and it may not be what the customer ordered! An attacker could exploit this by creating unwanted temporary files, potentially leading to unauthorized access or manipulation of important data. While this may not be exploited frequently, it's a vulnerability that could undermine your Jenkins environment's integrity.

Put simply

Think of it like a restaurant where the chef prepares meals without checking the customer's order first. If a rogue employee steps in, they could add any dish they want to the menu — and it may not be what the customer ordered! In Jenkins versions 2.318 and earlier (including LTS 2.303.2), the system only verifies agent-to-controller access after temporary files have been created. This means an attacker could bypass initial checks, resulting in unauthorized file creation.

What to do

An attacker could exploit this by creating unwanted temporary files, potentially leading to unauthorized access or manipulation of important data. While this may not be exploited frequently, it's a vulnerability that could undermine your Jenkins environment's integrity. To mitigate this, upgrade Jenkins to the latest version immediately. Ensure file permissions are strictly enforced and that robust access controls are in place. Regularly review your Jenkins configurations to catch any potential issues early. You've got this! With these steps, you're on your way to securing your Jenkins environment like a pro! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01555 · 75.0th percentile
Published
2021-11-04T00:00Z
EPSS history
Timeline
  • 04 NOV 00:00Z
    When creating temporary files, agent-to-controller access to create those files is only checked after they've been created in Jenkins 2.318 and earlier, LTS…
    cvelistv5