CVE-2021-21428Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI-Generator online generator
- 9.3CriticalCVSS base score
- 0.35%Exploitation in 30 daysEPSS · top 71% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 5 months later
· 5 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Critical9.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.35% · top 71% of all CVEs (18 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.3.
Affected products
OpenAPITools · openapi-generator
- affected < 5.1.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.openapitools:openapi-generator-onlineGHSA-23x4-m842-fmwf (opens in a new tab)
References
References2
- https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-23x4-m842-fmwf (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/OpenAPITools/openapi-generator/pull/8788 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-0893 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-23x4-m842-fmwf (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-21428)Record last updated .