CVE-2021-21428
published critical CVSS 3.1 · 9.3Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI-Generator online generator
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OpenAPITools | — | openapi-generator< 5.1.0 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenAPITools | openapi-generator | < 5.1.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-269 CWE-269: Improper Privilege Management
References
2Provider assertions
2GitHub_M · cna
Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI-Generator online generator
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 97c6e2eff0e3072666f79e01cbe9dda6033e5fafed314c2347f3609c9d081a3f
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record