{"cve":"CVE-2021-21428","nvd":{"published":"2021-05-10T19:15:08.060","modified":"2026-06-17T03:35:33.417","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.0},"cwes":["CWE-668","CWE-269"],"references":["https://github.com/OpenAPITools/openapi-generator/pull/8788","https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-23x4-m842-fmwf","https://github.com/OpenAPITools/openapi-generator/pull/8788","https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-23x4-m842-fmwf"],"products":["openapi-generator:openapi_generator"],"source":"nvd","synced_at":"2026-10-19T21:18:09.669877188+00:00"},"epss":{"cve":"CVE-2021-21428","score":0.00351,"percentile":0.28815,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-23x4-m842-fmwf","url":"https://osv.dev/vulnerability/GHSA-23x4-m842-fmwf","summary":"Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI-Generator online generator","modified":"2026-07-08T06:27:42.053457365Z","packages":[{"ecosystem":"Maven","name":"org.openapitools:openapi-generator-online","purl":"pkg:maven/org.openapitools/openapi-generator-online","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."]}