WaratekVRT Sign in

CVE-2021-21430 OpenAPI Generator

Affected softwareOpenAPI Generator
Severity6.2 Medium CVSS 3.1 3 scores
Fixed in5.1.0
WeaknessImproper privilege management (CWE-269)
Published10 May 2021
Updated17 Jun 2026

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.

CWE-668CWE-377CWE-378CWE-379

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 5 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 0.40% chance in 30 days

Waratek protection

No exploit published

Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.

A public code fix exists: OpenAPITools/openapi-generator #8787.

  • Protection none
  • Action unverified
  • Review automated Upstream data
  • Record active
Decided by Medium or Low severity, no CISA or VulnCheck KEV listing, no PoC clearing the evidence bar, no CISA verdict, no Oracle advisory
Finding This CVE is MEDIUM severity, is not listed in CISA KEV or VulnCheck KEV, has no public exploit or PoC in any indexed source, carries no CISA Vulnrichment finding of a demonstrated exploit, and is not part of an Oracle Critical Patch Update. None of the signals that would put it in front of an engineer is present, and the volume of CVEs below that bar is too great to take one at a time, so no rule is written for it. This is a decision about what we act on, not a finding that the CVE is harmless — a patch may well be derivable, and a low-severity defect can still be one link in a longer chain.
Candidate fix https://github.com/OpenAPITools/openapi-generator/pull/8787 : a pull request: the change under review

CVSS

6.2 MEDIUM v3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 3 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 6.2 MEDIUM CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N security-advisories@github.com Secondary published
CVSS 3.1 5.5 MEDIUM CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N NVD Primary
CVSS 2.0 2.1 none AV:L/AC:L/Au:N/C:P/I:N/A:N NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.openapitools:openapi-generator 0 5.1.0 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
nvd openapi-generator openapi generator generic < 5.1.1
osv org.openapitools openapi-generator generic < 5.1.0

References

URLTags
https://github.com/OpenAPITools/openapi-generator/pull/8787 pr
https://github.com/OpenAPITools/openapi-generator/security/advisories/GHSA-cqxr-xf2w-943w WEB
https://github.com/OpenAPITools/openapi-generator/pull/8791 WEB
https://github.com/OpenAPITools/openapi-generator/pull/9348 WEB
https://github.com/OpenAPITools/openapi-generator PACKAGE

Timeline

Published2021-05-10By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.