CVE-2019-17352: Jfinal JFinal File Validation Vulnerability Vulnerability
HIGHCVE-2019-17352 is a HIGH (CVSS 7.5) jfinal file validation vulnerability vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Jfinal libraries in the Maven ecosystem. The issue involves jfinal file validation vulnerability. Remediation is available by upgrading affected packages to version 4.5.
CVE-2019-17352 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2019-17352
To remediate this vulnerability, upgrade all affected Jfinal dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.jfinal</groupId>
<artifactId>jfinal</artifactId>
<version>4.5</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.jfinal
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2019-17352, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.jfinal
Analyze the terminal output to locate any version of Jfinal in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.5), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.jfinal command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Jfinal, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-17352 Affected Jfinal Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.jfinal:jfinal
|
Maven |
< 4.5
|
4.5
|
References
Frequently Asked Questions
What is CVE-2019-17352?
Which Jfinal versions are affected?
What version fixes CVE-2019-17352?
Is jfinal affected?
What is the CVSS score of CVE-2019-17352?
What CWE is associated with CVE-2019-17352?
How can I check Maven dependencies for CVE-2019-17352?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-279p-pc38-xx4p",
"modified" : "2022-05-25T19:21:15Z",
"published" : "2022-05-25T19:21:15Z",
"aliases" : [ "CVE-2019-17352" ],
"summary" : "JFinal file validation vulnerability",
"details" : "In JFinal cos before 2019-08-13, as used in JFinal 4.4, there is a vulnerability that can bypass the isSafeFile() function: one can upload any type of file. For example, a .jsp file may be stored and almost immediately deleted, but this deletion step does not occur for certain exceptions.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.jfinal:jfinal"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-17352"
}, {
"type" : "WEB",
"url" : "https://github.com/jfinal/jfinal/issues/171"
}, {
"type" : "PACKAGE",
"url" : "https://gitee.com/jfinal/cos"
}, {
"type" : "WEB",
"url" : "https://gitee.com/jfinal/cos/commit/5eb23d6e384abaad19faa7600d14c9a2f525946a"
}, {
"type" : "WEB",
"url" : "https://gitee.com/jfinal/cos/commit/8d26eec61f0d072a68bf7393cf3a8544a1112130"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-434" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-05-25T19:21:15Z",
"nvd_published_at" : "2019-10-08T13:15:00Z"
}
}