CVE-2021-21698: Path traversal vulnerability in Jenkins Subversion Plugin allows reading arbitrary files
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.75653%
CWE
Published
5/24/2022
Updated
12/18/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.jenkins-ci.plugins:subversion | maven | <= 2.15.0 | 2.15.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the lack of path validation in the getKeyFile method before version 2.15.1. The commit diff shows a security check was added to this method to prohibit directory separator characters in the 'id' parameter. Since this method constructs the key file path using Jenkins' root directory + 'subversion-credentials' + untrusted 'id' input, the absence of validation in vulnerable versions allowed path traversal attacks. The direct correlation between the patch location and vulnerability description confirms this function's role in the security flaw.