CVE-2021-21687

Jenkins 2.318 and earlier, LTS 2.303.2 and earlier does not check agent-to-controller access to create symbolic links when unarchiving a symbolic link in…

published November 4, 2021

CVSS
—
EPSS
1%
Percentile
72.7
In the wild
Unconfirmed
What it is

⚠️ A simple oversight in Jenkins can lead to unauthorized access—it's like letting a guest into your house without checking their invitation! Imagine a hotel that allows anyone to walk into any room just because they checked in. This flaw lets agents create symbolic links without proper checks when unarchiving files, potentially letting unwanted access slip through. An attacker could take advantage of this vulnerability to manipulate files or access sensitive data on the Jenkins controller, which could lead to further exploitation down the line. While currently not known to be exploited, the risk should not be underestimated!

Put simply

Imagine a hotel that allows anyone to walk into any room just because they checked in. This flaw lets agents create symbolic links without proper checks when unarchiving files, potentially letting unwanted access slip through. This vulnerability in Jenkins versions 2.318 and earlier, as well as LTS 2.303.2 and earlier, arises because the system fails to verify access permissions for agents creating symbolic links during the untar operation in FilePath.

What to do

An attacker could take advantage of this vulnerability to manipulate files or access sensitive data on the Jenkins controller, which could lead to further exploitation down the line. While currently not known to be exploited, the risk should not be underestimated! To mitigate this vulnerability, upgrade Jenkins to version 2.319 or LTS version 2.303.3 or later. Additionally, review agent permissions to ensure they align with your security policies and restrict access where necessary. You've got this! With a quick upgrade, you'll have your Jenkins secure and running smoothly in no time. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01425 · 72.7th 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 symbolic links when unarchiving a symbolic link in…
    cvelistv5