CVE-2021-21429Openapi-generator Openapi Generator
Low 3.3
Follow: this CVE · Openapi-generator · Openapi-generator Openapi Generator We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Openapi Generator.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| openapi-generator | openapi_generator | < 5.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory