CVE-2021-21428
published 2021-05-10CVE-2021-21428: Openapi generator is a java tool which allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically…
PriorityP431high7CVSS 3.1
AVLACHPRLUINSUCHIHAH
EPSS
0.35%
27.0th percentile
Openapi generator is a java tool which allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec. openapi-generator-online creates insecure temporary folders with File.createTempFile during the code generation process. The insecure temporary folders store the auto-generated files which can be read and appended to by any users on the system. 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.17.0HIGHCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.04.4MEDIUMAV:L/AC:M/Au:N/C:P/I:P/A:P
ghsa7.0HIGH
osv7.0HIGH
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.
GHSA
Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI-Generator online generator
ghsa·2021-05-11·CVSS 7.0
CVE-2021-21428 [HIGH] CWE-269 Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI-Generator online generator
Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI-Generator online generator
### Impact
On Unix like systems, the system's temporary directory is shared between all users on that system. A collocated user can observe the process of creating a temporary sub directory in the shared temporary directory and race to complete the creation of the temporary subdirectory.
This vulnerability is local privilege escalation because the contents of the outputFolder can be appended to by an attacker. As such, code written to this directory, when executed can be attacker controlled.
openapi-generator-online creates insecure temporary folders with `File.createTempFile` during the code generation process. The insecure temporary folders store the auto-generated files which
OSV
Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI-Generator online generator
osv·2021-05-11·CVSS 7.0
CVE-2021-21428 [HIGH] Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI-Generator online generator
Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI-Generator online generator
### Impact
On Unix like systems, the system's temporary directory is shared between all users on that system. A collocated user can observe the process of creating a temporary sub directory in the shared temporary directory and race to complete the creation of the temporary subdirectory.
This vulnerability is local privilege escalation because the contents of the outputFolder can be appended to by an attacker. As such, code written to this directory, when executed can be attacker controlled.
openapi-generator-online creates insecure temporary folders with `File.createTempFile` during the code generation process. The insecure temporary folders store the auto-generated files which
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2021-05-10
Published