CVE-2021-21429

CVE-2021-21429 is a medium-severity vulnerability in Openapi-generator Openapi Generator with a CVSS 3.x base score of 4.0. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-552.

Key facts

Description

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.

Frequently asked questions

What is CVE-2021-21429?
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.
How severe is CVE-2021-21429?
CVE-2021-21429 has a CVSS 3.x base score of 4.0, rated medium severity. It is exploitable over local access with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is low, integrity none, and availability none.
Is CVE-2021-21429 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (21st percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2021-21429?
CVE-2021-21429 affects Openapi-generator Openapi Generator. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2021-21429?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2021-21429 published?
CVE-2021-21429 was published on 2021-04-27 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Openapi-generator Openapi Generator

All CVEs affecting Openapi-generator Openapi Generator →

Other CWE-552 (Files or Directories Accessible to External Parties) vulnerabilities

Browse all CWE-552 (Files or Directories Accessible to External Parties) vulnerabilities →