CVE-2021-21429
published 2021-04-27CVE-2021-21429: OpenAPI Generator allows generation of API client libraries, server stubs, documentation and configuration automatically given an OpenAPI Spec. Using…
PriorityP412low3.3CVSS 3.1
AVLACLPRLUINSUCLINAN
EPSS
0.30%
21.2th percentile
OpenAPI Generator allows generation of API client libraries, server stubs, documentation and configuration automatically given an OpenAPI Spec. Using `File.createTempFile` in JDK will result in creating and using insecure temporary files that can leave application and system data vulnerable to attacks. OpenAPI Generator maven plug-in creates insecure temporary files during the process. The issue has been patched with `Files.createTempFile` and released in the v5.1.0 stable version.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| openapi-generator | openapi_generator | < 5.1.0 | 5.1.0 |
| openapitools | openapi-generator | < 5.1.0 | 5.1.0 |
CVSS provenance
nvdv3.13.3LOWCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
nvdv2.02.1LOWAV:L/AC:L/Au:N/C:P/I:N/A:N
vendor_redhat4.0MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
openapi-generator: Using File.createTempFile in JDK results in creating insecure temporary files
vendor_redhat·2021-04-27·CVSS 4.0
CVE-2021-21429 [MEDIUM] CWE-552 openapi-generator: Using File.createTempFile in JDK results in creating insecure temporary files
openapi-generator: Using File.createTempFile in JDK results in creating insecure temporary files
OpenAPI Generator allows generation of API client libraries, server stubs, documentation and configuration automatically given an OpenAPI Spec. Using `File.createTempFile` in JDK will result in creating and using insecure temporary files that can leave application and system data vulnerable to attacks. OpenAPI Generator maven plug-in creates insecure temporary files during the process. The issue has been patched with `Files.createTempFile` and released in the v5.1.0 stable version.
Package: openapi-generator (Red Hat Advanced Cluster Management for Kubernetes 2) - Not affected
GHSA
Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI Generator Maven plugin
ghsa·2021-04-29
CVE-2021-21429 [MEDIUM] CWE-377 Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI Generator Maven plugin
Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI Generator Maven plugin
### 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
OSV
Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI Generator Maven plugin
osv·2021-04-29
CVE-2021-21429 [MEDIUM] Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI Generator Maven plugin
Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI Generator Maven plugin
### 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
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2021-04-27
Published