CVE-2021-21430 Details
Description
OpenAPI Generator allows generation of API client libraries (SDK generation), 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. Auto-generated code (Java, Scala) that deals with uploading or downloading binary data through API endpoints will create insecure temporary files during the process. Affected generators: `java` (jersey2, okhttp-gson (default library)), `scala-finch`. The issue has been patched with `Files.createTempFile` and released in the v5.1.0 stable version.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/OpenAPITools/openapi-generator/pull/8787 | CVE | PatchThird Party Advisory |
| https://github.com/OpenAPITools/openapi-generator/pull/8791 | CVE | PatchThird Party Advisory |
| https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-cqxr-xf2w-943w | CVE | ExploitThird Party Advisory |
| https://github.com/OpenAPITools/openapi-generator/pull/8787 | [email protected] | PatchThird Party Advisory |
| https://github.com/OpenAPITools/openapi-generator/pull/8791 | [email protected] | PatchThird Party Advisory |
| https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-cqxr-xf2w-943w | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-668 | Exposure of Resource to Wrong Sphere | [email protected] |
| CWE-269 | Improper Privilege Management | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| openapi-generator openapi generator | < 5.1.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Oct 24, 2022 | Reanalysis | [email protected] |
| May 19, 2021 | Initial Analysis | [email protected] |