GHSA-c57f-4vp2-jqhm: Flow server Insecure Temporary Directory Usage Vulnerability
MODERATEGHSA-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
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).
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.
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>flow-server</artifactId>
<version>2.5.3</version>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>flow-server</artifactId>
<version>6.0.6</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.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
GHSA-c57f-4vp2-jqhm Affected Flow server Versions
2 component(s)| 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?
Which Flow server versions are affected?
What version fixes GHSA-c57f-4vp2-jqhm?
Is flow-server affected?
What is the CVSS score of GHSA-c57f-4vp2-jqhm?
What CWE is associated with GHSA-c57f-4vp2-jqhm?
How can I check Maven dependencies for GHSA-c57f-4vp2-jqhm?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}