Information Disclosure Affecting org.openapitools:openapi-generator-project package, versions [,5.1.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (32nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Information Disclosure vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGOPENAPITOOLS-1290613
  • published11 May 2021
  • disclosed11 May 2021
  • creditJonathan Leitschuh

Introduced: 11 May 2021

CVE-2021-21430  (opens in a new tab)
CWE-269  (opens in a new tab)
CWE-377  (opens in a new tab)
CWE-378  (opens in a new tab)
CWE-379  (opens in a new tab)

How to fix?

Upgrade org.openapitools:openapi-generator-project to version 5.1.0 or higher.

Overview

org.openapitools:openapi-generator-project is an is a package that allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3).

Affected versions of this package are vulnerable to Information Disclosure. This vulnerability impacts generated code. If this code is generated as a one-off occasion, not as a part of an automated CI/CD process, it will remain vulnerable until fixed manually.

The use of the JDK method File.createTempFile creates an insecure temporary file that can leave application and system data vulnerable to exposure. Auto-generated code that deals with uploading or downloading binary data through API endpoints will create insecure temporary files during the process.

CVSS Scores

version 3.1