[MAVEN:GHSA-867Q-77CC-98MV] Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI Generator Maven plugin

Severity Moderate
Affected Packages 1
Fixed Packages 1
CVEs 1

Impact

Using File.createTempFile in JDK will result in creating and using insecure temporary files that can leave application and system data vulnerable to attacks. This vulnerability only impacts unix-like systems where the local system temporary directory is shared between all users. This vulnerability does not impact Windows or modern versions of MacOS.

OpenAPI Generator Maven plug-in creates insecure temporary files during the code generation process. It creates insecure temporary files to store the OpenAPI specification files provided by the users and these temporary files can be read by any users in the system.

The impact of this vulnerability is information disclosure of the contents of the specification file to other local users.

Patches

The issue has been patched with Files.createTempFile and released in the v5.1.0 stable version.

For more information

If you have any questions or comments about this advisory:
* Open an issue in OpenAPI Generator Github repo
* Email us at security@openapitools.org

ID
MAVEN:GHSA-867Q-77CC-98MV
Severity
moderate
URL
https://github.com/advisories/GHSA-867q-77cc-98mv
Published
2021-04-29T21:51:37
(3 years ago)
Modified
2023-02-01T05:05:33
(19 months ago)
Rights
Maven Security Team
Type Package URL Namespace Name / Product Version Distribution / Platform Arch Patch / Fix
Affected pkg:maven/org.openapitools/openapi-generator-maven-plugin org.openapitools openapi-generator-maven-plugin < 5.1.0
Fixed pkg:maven/org.openapitools/openapi-generator-maven-plugin org.openapitools openapi-generator-maven-plugin = 5.1.0
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories Exploits PoC Pubblication Date Modification Date
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories PoC Pubblication Date Modification Date
Loading...