{"id":"CVE-2021-21429","details":"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.","aliases":["GHSA-867q-77cc-98mv"],"modified":"2026-04-10T04:30:00.489854Z","published":"2021-04-27T20:15:08.763Z","related":["GHSA-867q-77cc-98mv"],"references":[{"type":"FIX","url":"https://github.com/OpenAPITools/openapi-generator/pull/8795"},{"type":"FIX","url":"https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-867q-77cc-98mv"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openapitools/openapi-generator","events":[{"introduced":"0"},{"fixed":"e023eaa8218da996140148161978953cc698d014"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"5.1.0"}]}}],"versions":["2.0.17","swagger-codegen_2.9.1-1.1","swagger-codegen_2.9.1-2.0.0","swagger-codegen_2.9.1-2.0.1","v2.0.18","v2.1.0-M1","v2.1.0-M2","v2.1.1-M1","v2.1.2","v2.1.2-M1","v2.1.3","v2.1.4","v2.1.5","v2.1.6","v2.2.0","v2.2.1","v2.2.2","v2.2.3","v2.3.0","v2.3.1","v3.0.0","v3.0.1","v4.0.0","v4.0.0-beta2","v4.0.0-beta3","v4.0.1","v4.0.2","v4.0.3","v4.1.0","v4.2.0","v4.2.1","v4.2.2","v4.2.3","v4.3.0","v4.3.1","v5.0.0","v5.0.0-beta","v5.0.0-beta2","v5.0.0-beta3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21429.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"}]}