CVE-2021-21694

FilePath#toURI, FilePath#hasSymlink, FilePath#absolutize, FilePath#isDescendant, and FilePath#get*DiskSpace do not check any permissions in Jenkins 2.318 and…

published November 4, 2021

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

⚠️ Surprisingly simple permission oversight! Certain Jenkins methods bypass security checks in versions 2.318 and earlier, allowing unexpected access. 🔓 Think of it like a hotel that lets any guest wander into the staff-only areas without a room key — suddenly, your private data is just a stroll away for anyone who's clever enough to find those unlocked doors. An attacker could exploit these methods to access sensitive filesystem information or even manipulate Jenkins in unauthorized ways. While this isn't a catastrophic breach, it opens a backdoor for potential data leaks or unauthorized actions that could disrupt your CI/CD pipelines.

Put simply

Think of it like a hotel that lets any guest wander into the staff-only areas without a room key — suddenly, your private data is just a stroll away for anyone who's clever enough to find those unlocked doors. This vulnerability arises because several file-related methods, including FilePath#toURI and FilePath#hasSymlink, do not perform any permission checks, allowing unauthorized users to interact with the filesystem through Jenkins.

What to do

An attacker could exploit these methods to access sensitive filesystem information or even manipulate Jenkins in unauthorized ways. While this isn't a catastrophic breach, it opens a backdoor for potential data leaks or unauthorized actions that could disrupt your CI/CD pipelines. To safeguard your Jenkins instance, consider updating to a secure version that addresses these permission checks. If an upgrade isn’t immediately feasible, review access permissions for users and limit their capabilities until a patch is applied. Always keep an eye on Jenkins updates! You've got this! With a little diligence, you can lock down your Jenkins and ensure it remains reliable and secure. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01555 · 75.0th percentile
Published
2021-11-04T16:30Z
EPSS history
Timeline
  • 04 NOV 16:30Z
    FilePath#toURI, FilePath#hasSymlink, FilePath#absolutize, FilePath#isDescendant, and FilePath#get*DiskSpace do not check any permissions in Jenkins 2.318 and…
    cvelistv5