{"cve":"CVE-2021-21429","nvd":{"published":"2021-04-27T20:15:08.763","modified":"2026-06-17T03:35:33.533","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":3.3},"cwes":["CWE-552"],"references":["https://github.com/OpenAPITools/openapi-generator/pull/8795","https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-867q-77cc-98mv","https://github.com/OpenAPITools/openapi-generator/pull/8795","https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-867q-77cc-98mv"],"products":["openapi-generator:openapi_generator"],"source":"nvd","synced_at":"2026-10-19T21:18:09.669877188+00:00"},"epss":{"cve":"CVE-2021-21429","score":0.00296,"percentile":0.22262,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-867q-77cc-98mv","url":"https://osv.dev/vulnerability/GHSA-867q-77cc-98mv","summary":"Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI Generator Maven plugin","modified":"2026-07-08T06:29:36.205204700Z","packages":[{"ecosystem":"Maven","name":"org.openapitools:openapi-generator-maven-plugin","purl":"pkg:maven/org.openapitools/openapi-generator-maven-plugin","ranges":["<5.1.0"],"fixed":["5.1.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}