Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-21430

published medium CVSS 3.1 · 6.2

Creation of Temporary File in Directory with Insecure Permissions in auto-generated Java, Scala code

Published
10 May 2021, 19:25:12 UTC
Updated
03 Aug 2024, 18:09:16 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
OpenAPITools — openapi-generator< 5.1.0 Affected Not stated GitHub_M

Description

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
6.2 / 10
Severity
medium
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
OpenAPITools openapi-generator < 5.1.0 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-269 CWE-269: Improper Privilege Management (GitHub_M · cna)

References

3

Provider assertions

2

GitHub_M · cna

Creation of Temporary File in Directory with Insecure Permissions in auto-generated Java, Scala code

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
9098f2c927f53bec68c735a03dda3ba24a44eac273606f80928dd9bff2488ca1
Ingested
23 Sep 2026, 07:52:31 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected