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


0.0
medium

Snyk CVSS

    Attack Complexity Low
Expand this section
NVD
5.5 medium

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 ID SNYK-JAVA-IOSWAGGER-1085071
  • published 11 Mar 2021
  • disclosed 11 Mar 2021
  • credit Jonathan Leitschuh

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