CVE-2019-17352: Jfinal JFinal File Validation Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-279p-pc38-xx4p
CVSS 7.5
CWE-434
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2019-17352
GHSA Identifier GHSA-279p-pc38-xx4p
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Jfinal
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

com.jfinal:jfinal fixed: 4.5
<dependency>
    <groupId>com.jfinal</groupId>
    <artifactId>jfinal</artifactId>
    <version>4.5</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2019-17352 Affected Jfinal Versions

1 component(s)
Fixed Versions:
4.5
Product / Package Ecosystem Affected Versions Fixed Version
com.jfinal:jfinal
Maven
< 4.5
4.5

References

Frequently Asked Questions

What is CVE-2019-17352?
CVE-2019-17352 is a security vulnerability in Jfinal involving JFinal file validation vulnerability under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Jfinal versions are affected?
Affected versions include releases prior to 4.5 across affected packages: com.jfinal:jfinal.
What version fixes CVE-2019-17352?
Upgrading to 4.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jfinal affected?
Yes, com.jfinal:jfinal is affected in releases prior to 4.5. Upgrade your dependency to 4.5 or later.
What is the CVSS score of CVE-2019-17352?
CVE-2019-17352 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2019-17352?
CVE-2019-17352 is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check Maven dependencies for CVE-2019-17352?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.jfinal'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}