Information Exposure Affecting io.swagger:swagger-codegen package, versions [,2.4.19)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.05% (19th 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 IDSNYK-JAVA-IOSWAGGER-1085071
  • published11 Mar 2021
  • disclosed11 Mar 2021
  • creditJonathan Leitschuh

Introduced: 11 Mar 2021

CVE-2021-21364  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade io.swagger:swagger-codegen to version 2.4.19 or higher.

Overview

Affected versions of this package are vulnerable to Information Exposure. On unix-like systems, the temporary directory is shared between all users. As such, writing to this directory using API's that do not explicitly set the file/directory permissions can lead to information disclosure. When files/directories are created using the File.createTempFile method, the default umask settings for the process are respected. As a result, by default, most processes/apis will create files/directories with the permissions -rw-r--r-- and drwxr-xr-x respectively, unless an API that explicitly sets safe file permissions is used.

References

CVSS Scores

version 3.1