{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-21430","published":"2021-05-10T20:15:07.840000Z","last_modified":"2026-06-17T03:35:33.643000Z","status":"Modified","cvss":{"version":"3.1","score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-269","CWE-668"],"cpes":[{"criteria":"cpe:2.3:a:openapi-generator:openapi_generator:*:*:*:*:*:*:*:*","part":"a","vendor":"openapi-generator","product":"openapi_generator","version_end_excluding":"5.1.1"}],"cpes_truncated":false,"vendors":["openapi-generator"],"products":["openapi-generator/openapi_generator"],"epss":{"score":0.00404,"percentile":0.36763,"date":"2026-12-01","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-cqxr-xf2w-943w","ecosystem":"Maven","name":"org.openapitools:openapi-generator","purl":"pkg:maven/org.openapitools/openapi-generator","ranges":[{"introduced":"0","fixed":"5.1.0"}],"versions":["3.0.0","3.0.1","3.0.2","3.0.3","3.1.0","3.1.1","3.1.2","3.2.0","3.2.1","3.2.2","3.2.3","3.3.0","3.3.1","3.3.2","3.3.3","3.3.4","4.0.0","4.0.0-beta","4.0.0-beta2","4.0.0-beta3","4.0.1","4.0.2","4.0.3","4.1.0","4.1.1","4.1.2","4.1.3","4.2.0","4.2.1","4.2.2","4.2.3","4.3.0","4.3.1","5.0.0","5.0.0-beta","5.0.0-beta2","5.0.0-beta3","5.0.1"],"versions_truncated":false}],"severity":"medium","priority_score":33,"links":{"html_es":"/es/cve/CVE-2021-21430/","html_en":"/en/cve/CVE-2021-21430/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21430","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21430"},"untrusted":{"vendor_name":"Openapi-generator","product_name":"Openapi Generator","desc_en":"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.","affected":[{"untrusted_vendor":"OpenAPITools","untrusted_product":"openapi-generator","versions":[]}],"references":[{"url":"https://github.com/OpenAPITools/openapi-generator/pull/8787","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/OpenAPITools/openapi-generator/pull/8791","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-cqxr-xf2w-943w","tags":["Exploit","Third Party Advisory"]}]}}