Insecure Temporary File Affecting org.openapitools:openapi-generator-maven-plugin 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.04% (15th 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 Insecure Temporary File vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGOPENAPITOOLS-1277191
  • published28 Apr 2021
  • disclosed28 Apr 2021
  • creditJonathan Leitschuh

Introduced: 28 Apr 2021

CVE-2021-21429  (opens in a new tab)
CWE-377  (opens in a new tab)
CWE-552  (opens in a new tab)

How to fix?

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

Overview

org.openapitools:openapi-generator-maven-plugin is an It 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 Insecure Temporary File. Using File.createTempFile in JDK results in creating and using insecure temporary files that can leave application and system data vulnerable to attacks.

Note: Only impacts unix-like systems where the local system temporary directory is shared between all users. Does not impact Windows or modern versions of MacOS.

CVSS Scores

version 3.1