Vulnerability

CVE-2021-21430

mediumCVSS 3.1 5.5Published 10 May 2021

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Openapi Generator openapi generator

Weakness type

References

  • github.com /OpenAPITools/openapi-generator/pull/8787
  • github.com /OpenAPITools/openapi-generator/pull/8791
  • github.com /OpenAPITools/openapi-generator/security/advisories/GHSA-cq…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning