GHSA-c57f-4vp2-jqhm: Flow server Insecure Temporary Directory Usage Vulnerability

MODERATE
CVSS 6.3
CWE-379
Published
Advisory Summary

GHSA-c57f-4vp2-jqhm is a MODERATE (CVSS 6.3) insecure temporary directory usage vulnerability (CWE-379: Creation of Temporary File in Directory with Insecure Permissions) affecting Flow server libraries in the Maven ecosystem. The issue involves insecure temporary directory usage in frontend build functionality of vaadin 14 and 15-19. Remediation is available by upgrading affected packages to version 2.5.3, 6.0.6.

GHSA-c57f-4vp2-jqhm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-c57f-4vp2-jqhm
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-379: Creation of Temporary File in Directory with Insecure Permissions
Affected Product Flow server
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-c57f-4vp2-jqhm

To remediate this vulnerability, upgrade all affected Flow server 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.vaadin:flow-server fixed: 2.5.3
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>flow-server</artifactId>
    <version>2.5.3</version>
</dependency>
com.vaadin:flow-server fixed: 6.0.6
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>flow-server</artifactId>
    <version>6.0.6</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.vaadin

How to Check if You Are Affected

To determine whether your Java application is affected by GHSA-c57f-4vp2-jqhm, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.vaadin

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

Note: The mvn dependency:tree -Dincludes=com.vaadin 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-379: Creation of Temporary File in Directory with Insecure Permissions, where the product creates a temporary file in a directory whose permissions allow unintended actors to determine the file's existence or otherwise access that file. In Flow server, 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

Insecure temporary directory usage in frontend build functionality of `com.vaadin:flow-server` versions 2.0.9 through 2.5.2 (Vaadin 14.0.3 through Vaadin 14.5.2), 3.0 prior to 6.0 (Vaadin 15 prior to 19), and 6.0.0 through 6.0.5 (Vaadin 19.0.0 through 19.0.4) allows local users to inject malicious code into frontend resources during application rebuilds. - https://vaadin.com/security/cve-2021-31411

GHSA-c57f-4vp2-jqhm Affected Flow server Versions

2 component(s)
Fixed Versions:
2.5.36.0.6
Product / Package Ecosystem Affected Versions Fixed Version
com.vaadin:flow-server
Maven
≥ 2.0.9
< 2.5.3
2.5.3
com.vaadin:flow-server
Maven
≥ 3.0.0
< 6.0.6
6.0.6

References

Frequently Asked Questions

What is GHSA-c57f-4vp2-jqhm?
GHSA-c57f-4vp2-jqhm is a security vulnerability in Flow server involving Insecure temporary directory usage in frontend build functionality of Vaadin 14 and 15-19 under CWE-379: Creation of Temporary File in Directory with Insecure Permissions.
Which Flow server versions are affected?
Affected versions include releases prior to 2.5.3, 6.0.6 across affected packages: com.vaadin:flow-server.
What version fixes GHSA-c57f-4vp2-jqhm?
Upgrading to 2.5.3, 6.0.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is flow-server affected?
Yes, com.vaadin:flow-server is affected in releases prior to 2.5.3, 6.0.6. Upgrade your dependency to 2.5.3, 6.0.6 or later.
What is the CVSS score of GHSA-c57f-4vp2-jqhm?
GHSA-c57f-4vp2-jqhm has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with GHSA-c57f-4vp2-jqhm?
GHSA-c57f-4vp2-jqhm is classified under CWE-379: Creation of Temporary File in Directory with Insecure Permissions (The product creates a temporary file in a directory whose permissions allow unintended actors to determine the file's existence or otherwise access that file.).
How can I check Maven dependencies for GHSA-c57f-4vp2-jqhm?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.vaadin'. 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-c57f-4vp2-jqhm",
  "modified" : "2021-10-05T16:29:35Z",
  "published" : "2021-05-06T15:27:04Z",
  "aliases" : [ ],
  "summary" : "Insecure temporary directory usage in frontend build functionality of Vaadin 14 and 15-19",
  "details" : "Insecure temporary directory usage in frontend build functionality of `com.vaadin:flow-server` versions 2.0.9 through 2.5.2 (Vaadin 14.0.3 through Vaadin 14.5.2), 3.0 prior to 6.0 (Vaadin 15 prior to 19), and 6.0.0 through 6.0.5 (Vaadin 19.0.0 through 19.0.4) allows local users to inject malicious code into frontend resources during application rebuilds.\n\n- https://vaadin.com/security/cve-2021-31411",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.vaadin:flow-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.9"
      }, {
        "fixed" : "2.5.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.5.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.vaadin:flow-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "6.0.6"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.0.5"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vaadin/flow/security/advisories/GHSA-c57f-4vp2-jqhm"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vaadin/flow"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-379" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-04T17:54:26Z",
    "nvd_published_at" : null
  }
}