Vulnerabilities in pkg:maven/com.github.fracpete/vfsjfilechooser2

PACKAGE
Advisory Identifier: GHSA-c7fh-chf7-jr5x
Advisory Summary

CVE-2021-29061 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Vfsjfilechooser2 libraries in the Maven ecosystem. The issue involves redos in vfsjfilechooser2. Remediation is available by upgrading affected packages to version 0.2.9.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.github.fracpete/vfsjfilechooser2

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.github.fracpete/vfsjfilechooser2. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-c7fh-chf7-jr5x CVE-2021-29061 HIGH ReDOS in Vfsjfilechooser2

CVE-2021-29061 at a Glance

CVE Identifier CVE-2021-29061
GHSA Identifier GHSA-c7fh-chf7-jr5x
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Vfsjfilechooser2
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:N/A:H).

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 None (I:N)
Availability High (A:H)

How to Fix CVE-2021-29061

To remediate this vulnerability, upgrade all affected Vfsjfilechooser2 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.github.fracpete:vfsjfilechooser2 fixed: 0.2.9
<dependency>
    <groupId>com.github.fracpete</groupId>
    <artifactId>vfsjfilechooser2</artifactId>
    <version>0.2.9</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.github.fracpete

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2021-29061, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.github.fracpete

Analyze the terminal output to locate any version of Vfsjfilechooser2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.9), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.github.fracpete 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-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Vfsjfilechooser2, 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

A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Vfsjfilechooser2 which occurs when the application attempts to validate crafted URIs.

CVE-2021-29061 Affected Vfsjfilechooser2 Versions

1 component(s)
Fixed Versions:
0.2.9
Product / Package Ecosystem Affected Versions Fixed Version
com.github.fracpete:vfsjfilechooser2
Maven
< 0.2.9
0.2.9

References

Frequently Asked Questions

What is CVE-2021-29061?
CVE-2021-29061 is a security vulnerability in Vfsjfilechooser2 involving ReDOS in Vfsjfilechooser2 under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Vfsjfilechooser2 versions are affected?
Affected versions include releases prior to 0.2.9 across affected packages: com.github.fracpete:vfsjfilechooser2.
What version fixes CVE-2021-29061?
Upgrading to 0.2.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is vfsjfilechooser2 affected?
Yes, com.github.fracpete:vfsjfilechooser2 is affected in releases prior to 0.2.9. Upgrade your dependency to 0.2.9 or later.
What is the CVSS score of CVE-2021-29061?
CVE-2021-29061 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:N/A:H.
What CWE is associated with CVE-2021-29061?
CVE-2021-29061 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Maven dependencies for CVE-2021-29061?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.github.fracpete'. 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-c7fh-chf7-jr5x",
  "modified" : "2022-01-06T18:36:46Z",
  "published" : "2022-01-06T18:44:27Z",
  "aliases" : [ "CVE-2021-29061" ],
  "summary" : "ReDOS in Vfsjfilechooser2",
  "details" : "A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Vfsjfilechooser2 which occurs when the application attempts to validate crafted URIs.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.github.fracpete:vfsjfilechooser2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.2.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-29061"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fracpete/vfsjfilechooser2/issues/7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fracpete/vfsjfilechooser2/commit/9c9f2c317f3de5ece60a3ae28c371e9796e3909b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fracpete/vfsjfilechooser2/releases/tag/vfsjfilechooser2-0.2.9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/yetingli/PoCs/blob/main/CVE-2021-29061/Vfsjfilechooser2.md"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/yetingli/SaveResults/blob/main/md/vfsjfilechooser2.md"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-06-22T16:02:32Z",
    "nvd_published_at" : "2021-06-21T20:15:00Z"
  }
}