CVE-2021-21428

Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI-Generator online generator

HIGH
7
CVSS Score
Published: May 10, 2021 at 06:50 PM UTC
Updated: June 17, 2026 at 03:35 AM UTC
2 products affected across 2 vendorsOpenapi GeneratorGenerator Openapi Generator

Using openapi-generator by OpenAPITools?

Get instant alerts when new vulnerabilities affect openapi-generator - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7
Exploit prediction
EPSS 0.4%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.1.0
Affected range stops below 5.1.0, so it looks safe — our inference, not a vendor statement
v < 5.1.0
Affected range stops below 5.1.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-269CWE-668

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card