{"affected":[{"affectedData":[{"product":"openapi-generator","vendor":"OpenAPITools","versions":[{"status":"affected","version":"< 5.1.0"}]}],"source":"security-advisories@github.com"}],"configurations":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:openapi-generator:openapi_generator:*:*:*:*:*:*:*:*","matchCriteriaId":"E271BD89-5082-49B0-85BB-39B7AE2792BB","versionEndExcluding":"5.1.0","vulnerable":true}],"negate":false,"operator":"OR"}]}],"cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"Openapi generator es una herramienta de Java que permite la generación de bibliotecas cliente de API (generación SDK), stubs de servidor, documentación y configuración de forma automática dada una especificación de OpenAPI. openapi-generator-online crea carpetas temporales no seguras con File.createTempFile durante el proceso de generación de código. Las carpetas temporales no seguras almacenan los archivos generados automáticamente que pueden ser leídos y adjuntados por cualquier usuario del sistema. El problema se corrigió con \"Files.createTempFile\" y se lanzó en la versión estable v5.1.0"}],"id":"CVE-2021-21428","lastModified":"2026-06-17T03:35:33.417","metrics":{"cvssMetricV2":[{"acInsufInfo":false,"baseSeverity":"MEDIUM","cvssData":{"accessComplexity":"MEDIUM","accessVector":"LOCAL","authentication":"NONE","availabilityImpact":"PARTIAL","baseScore":4.4,"confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","vectorString":"AV:L/AC:M/Au:N/C:P/I:P/A:P","version":"2.0"},"exploitabilityScore":3.4,"impactScore":6.4,"obtainAllPrivilege":false,"obtainOtherPrivilege":false,"obtainUserPrivilege":false,"source":"nvd@nist.gov","type":"Primary","userInteractionRequired":false}],"cvssMetricV31":[{"cvssData":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":9.3,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"exploitabilityScore":2.5,"impactScore":6.0,"source":"security-advisories@github.com","type":"Secondary"},{"cvssData":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.0,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"exploitabilityScore":1.0,"impactScore":5.9,"source":"nvd@nist.gov","type":"Primary"}]},"published":"2021-05-10T19:15:08.060","references":[{"source":"security-advisories@github.com","tags":["Patch","Third Party Advisory"],"url":"https://github.com/OpenAPITools/openapi-generator/pull/8788"},{"source":"security-advisories@github.com","tags":["Exploit","Third Party Advisory"],"url":"https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-23x4-m842-fmwf"},{"source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Third Party Advisory"],"url":"https://github.com/OpenAPITools/openapi-generator/pull/8788"},{"source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Third Party Advisory"],"url":"https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-23x4-m842-fmwf"}],"sourceIdentifier":"security-advisories@github.com","vulnStatus":"Modified","weaknesses":[{"description":[{"lang":"en","value":"CWE-269"}],"source":"security-advisories@github.com","type":"Secondary"},{"description":[{"lang":"en","value":"CWE-668"}],"source":"nvd@nist.gov","type":"Primary"}]}