CVE-2021-21689

FilePath#unzip and FilePath#untar were not subject to any agent-to-controller access control in Jenkins 2.318 and earlier, LTS 2.303.2 and earlier

published November 4, 2021

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

⚠️ An unchecked access control loophole lurks in Jenkins! The methods FilePath#unzip and FilePath#untar don’t verify who’s using them — like a bouncer letting anyone into the VIP section without checking IDs! Think of it like a concert where anyone can walk backstage without a pass — musicians and crew could be at risk if unauthorized fans wander into restricted areas. Access control is crucial for keeping sensitive operations secure. An attacker could exploit this weakness to perform unauthorized file operations, potentially leading to data leaks or corruption. Imagine if someone could open up confidential files or deploy malicious scripts just because they gained a foothold where they shouldn’t!

Put simply

Think of it like a concert where anyone can walk backstage without a pass — musicians and crew could be at risk if unauthorized fans wander into restricted areas. Access control is crucial for keeping sensitive operations secure. In Jenkins versions 2.318 and earlier, the unzip and untar functions lack proper access control, allowing any agent to interact with the controller without authorization. This could lead to unauthorized file manipulations and security breaches.

What to do

An attacker could exploit this weakness to perform unauthorized file operations, potentially leading to data leaks or corruption. Imagine if someone could open up confidential files or deploy malicious scripts just because they gained a foothold where they shouldn’t! Upgrade Jenkins to at least version 2.319 or 2.303.3 to secure the FilePath methods. Additionally, review your access control policies to ensure they’re properly enforced and audit your current Jenkins setup for any potential exposures. You've got this! With these steps, you’ll tighten up your Jenkins security and keep your environment safe! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01503 · 74.1th percentile
Published
2021-11-04T16:30Z
EPSS history
Timeline
  • 04 NOV 16:30Z
    FilePath#unzip and FilePath#untar were not subject to any agent-to-controller access control in Jenkins 2.318 and earlier, LTS 2.303.2 and earlier
    cvelistv5