CVE-2021-21430
MEDIUMOpenapi-generator Openapi Generator < 5.1.1 - Exposure to Wrong Actor
Title source: ruleDescription
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.
References (3)
Scores
CVSS v3
6.2
EPSS
0.0007
EPSS Percentile
20.7%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Classification
CWE
CWE-269
CWE-668
Status
published
Affected Products (2)
openapi-generator/openapi_generator
< 5.1.1
org.openapitools/openapi-generator
< 5.1.0Maven
Timeline
Published
May 10, 2021
Tracked Since
Feb 18, 2026