Miggo Logo

CVE-2018-1315: Incorrect Permission Assignment for Critical Resource in Apache hive

3.7

CVSS Score
3.0

Basic Information

EPSS Score
0.76316%
Published
11/21/2018
Updated
1/9/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.apache.hive:hivemaven>= 2.1.0, < 2.3.32.3.3
org.apache.hive:hive-execmaven>= 2.1.0, < 2.3.32.3.3
org.apache.hive:hive-servicemaven>= 2.1.0, < 2.3.32.3.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from HPL/SQL's FTP client writing files without destination validation. The primary suspect is the FTP retrieval method retrieveFile() which would directly handle file writes. The COPY command executor copyFromFtp() is also implicated as it initiates the vulnerable operation. These functions are core to the insecure workflow described in CVE-2018-1315 advisories, though exact method names are inferred based on standard HPL/SQL implementation patterns when patch details are unavailable.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

In *p**** *iv* *.*.* to *.*.*, w**n '*OPY *ROM *TP' st*t*m*nt is run usin* *PL/SQL *xt*nsion to *iv*, * *ompromis**/m*li*ious *TP s*rv*r **n **us* t** *il* to ** writt*n to *n *r*itr*ry lo**tion on t** *lust*r w**r* t** *omm*n* is run *rom. T*is is *

Reasoning

T** vuln*r**ility st*ms *rom *PL/SQL's *TP *li*nt writin* *il*s wit*out **stin*tion v*li**tion. T** prim*ry susp**t is t** *TP r*tri*v*l m*t*o* `r*tri*v**il*()` w*i** woul* *ir**tly **n*l* *il* writ*s. T** `*OPY` *omm*n* *x**utor `*opy*rom*tp()` is *