GHSA-cqxr-xf2w-943w · Severity: medium · Ecosystem: maven — Creation of Temporary File in Directory with Insecure Permissions in auto-generated Java, Scala code
OpenAPI Generator allows generation of API client libraries (SDK generation), 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. Auto-generated code (Java, Scala) that deals with uploading or downloading binary data through API endpoints will create insecure temporary files during the process. Affected generators: `java` (jersey2, okhttp-gson (default library)), `scala-finch`. The issue has been patched with `Files.createTempFile` and released in the v5.1.0 stable version.
Conclusion & alert: CVE-2021-21430 is rated Exploit Available (51.3/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.40%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.07% | 0.40% | +0.34% |
| 2 | 2025-10-25 | 0.16% | 0.07% | -0.09% |
| 3 | 2025-03-30 | — | 0.16% | — |
Full EPSS history (10 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 6.2 | 3.1 | MEDIUM |
|
2.5 | 3.6 | [email protected] |
| 5.5 | 3.1 | MEDIUM |
|
1.8 | 3.6 | [email protected] |
| 2.1 | 2.0 | LOW |
|
3.9 | 2.9 | [email protected] |
GHSA-cqxr-xf2w-943w · Severity: medium · Ecosystem: maven — Creation of Temporary File in Directory with Insecure Permissions in auto-generated Java, Scala code
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| openapi-generator | openapi_generator | < 5.1.1 | cpe:2.3:a:openapi-generator:openapi_generator:*:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/OpenAPITools/openapi-generator/pull/8787 | Patch Third Party Advisory |
| https://github.com/OpenAPITools/openapi-generator/pull/8791 | Patch Third Party Advisory |
| https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-cqxr-xf2w-943w | Exploit Third Party Advisory |