Live threats

All CVEs / Openapi-generator

CVE-2021-21429Openapi-generator Openapi Generator

Low 3.3

Priority
20
CVSS 3.1
3.3
EPSS
0.3%
probability of exploitation in 30 days · percentile 24
Auth required
Yes
Published
Apr 27, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-552
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Openapi Generator.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.openapitools:openapi-generator-maven-plugin < 5.1.0 5.1.0 —

Per OSV / GitHub Advisories (GHSA-867q-77cc-98mv). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
openapi-generatoropenapi_generator< 5.1.0

Official sources

References

Links published by the sources. Open them with care.