CVE-2019-10436: Improper Limitation of a Pathname to a Restricted Directory in Jenkins Google OAuth Credentials Plugin
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.35925%
CWE
Published
5/24/2022
Updated
1/27/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:google-oauth-plugin | maven | <= 0.9 | 0.10 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from deprecated getSecretBytesFromFile
methods in both JsonServiceAccountConfig
and P12ServiceAccountConfig
classes. These functions used FileUtils.readFileToByteArray
to read arbitrary files based on user-controlled filenames without validating path restrictions or checking RUN_SCRIPTS
permissions. The patch removed these methods and centralized the logic in ServiceAccountConfig
with an added permission check. The lack of path validation and permission enforcement in the original implementations directly enabled attackers to read any file on the Jenkins
master by providing crafted paths.