CVE-2021-21692

FilePath#renameTo and FilePath#moveAllChildrenTo in Jenkins 2.318 and earlier, LTS 2.303.2 and earlier only check 'read' agent-to-controller access permission…

published November 4, 2021

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

⚠️ A surprisingly simple oversight in Jenkins could let someone rename and move files without proper permissions! Imagine a sneaky file thief lurking around! 🔍 It's like a library allowing patrons to take books home simply because they can read the title, without ever checking if they can return them! Just because you can look at something doesn't mean you should take it away. If an attacker exploits this flaw, they could potentially rename or move files they shouldn't have access to, leading to data manipulation or loss. While it's not a catastrophe, the implications of unauthorized file changes could disrupt workflows and lead to confusion.

Put simply

It's like a library allowing patrons to take books home simply because they can read the title, without ever checking if they can return them! Just because you can look at something doesn't mean you should take it away. This vulnerability in Jenkins allows 'renameTo' and 'moveAllChildrenTo' functions to check only for read permissions on the source path, ignoring whether the user has delete permissions, potentially allowing unauthorized file actions.

What to do

If an attacker exploits this flaw, they could potentially rename or move files they shouldn't have access to, leading to data manipulation or loss. While it's not a catastrophe, the implications of unauthorized file changes could disrupt workflows and lead to confusion. Upgrade Jenkins to version 2.319 or later, or LTS 2.303.3 for a secure environment. Regularly audit permissions and ensure users have the necessary rights for file operations. Don't forget to review your configurations! You've got this! A quick update and you'll be back on track, keeping your system secure! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02101 · 81.6th percentile
Published
2021-11-04T16:30Z
EPSS history
Timeline
  • 04 NOV 16:30Z
    FilePath#renameTo and FilePath#moveAllChildrenTo in Jenkins 2.318 and earlier, LTS 2.303.2 and earlier only check 'read' agent-to-controller access permission…
    cvelistv5