CVE-2021-21429

Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI Generator Maven plugin

Published Apr 27, 2021 CVSS 3.1 · 4 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-0794 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.
Github GHSA Github GHSA GHSA-867q-77cc-98mv Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI Generator Maven plugin
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 3, 2024, 6:09 PM
Reserved
Dec 22, 2020, 12:00 AM
Status
Modified
Published
Apr 27, 2021, 8:15 PM
Modified
Jun 17, 2026, 3:35 AM
Severity
Moderate
Public date
Apr 27, 2021, 12:00 AM