PT-2021-14501 · Unknown+1 · Openapi Generator+1

Wing328

·

Published

2021-04-27

·

Updated

2021-05-07

·

CVE-2021-21429

CVSS v3.1

4.0

Medium

VectorAV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Name of the Vulnerable Software and Affected Versions OpenAPI Generator versions prior to 5.1.0
Description The issue arises from using File.createTempFile in JDK, resulting in the creation of insecure temporary files. This can leave application and system data vulnerable to attacks, specifically impacting unix-like systems where the local system temporary directory is shared between all users. The OpenAPI Generator Maven plug-in creates these insecure temporary files during the code generation process to store OpenAPI specification files, potentially disclosing the contents of the specification file to other local users.
Recommendations For versions prior to 5.1.0, update to the v5.1.0 stable version, which patches the issue with Files.createTempFile.

Fix

Files Accessible to External Parties

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2021-21429
GHSA-867Q-77CC-98MV

Affected Products

Jdk
Openapi Generator