Lucene search

K
githubGitHub Advisory DatabaseGHSA-867Q-77CC-98MV
HistoryApr 29, 2021 - 9:51 p.m.

Creation of Temporary File in Directory with Insecure Permissions in the OpenAPI Generator Maven plugin

2021-04-2921:51:37
CWE-377
CWE-378
CWE-379
CWE-552
GitHub Advisory Database
github.com
48
file.createtempfile
jdk
insecure permissions
openapi generator maven plugin
unix-like systems
information disclosure
vulnerability
patch
files.createtempfile
v5.1.0
openapi generator
github
security advisory

CVSS2

2.1

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:L/AC:L/Au:N/C:P/I:N/A:N

CVSS3

4

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

EPSS

0

Percentile

12.6%

Impact

Using File.createTempFile in JDK will result in creating and using insecure temporary files that can leave application and system data vulnerable to attacks. This vulnerability only impacts unix-like systems where the local system temporary directory is shared between all users. This vulnerability does not impact Windows or modern versions of MacOS.

OpenAPI Generator Maven plug-in creates insecure temporary files during the code generation process. It creates insecure temporary files to store the OpenAPI specification files provided by the users and these temporary files can be read by any users in the system.

The impact of this vulnerability is information disclosure of the contents of the specification file to other local users.

Patches

The issue has been patched with Files.createTempFile and released in the v5.1.0 stable version.

For more information

If you have any questions or comments about this advisory:

Affected configurations

Vulners
Node
org.openapitoolsopenapi-generator-maven-pluginRange<5.1.0
VendorProductVersionCPE
org.openapitoolsopenapi-generator-maven-plugin*cpe:2.3:a:org.openapitools:openapi-generator-maven-plugin:*:*:*:*:*:*:*:*

CVSS2

2.1

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:L/AC:L/Au:N/C:P/I:N/A:N

CVSS3

4

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

EPSS

0

Percentile

12.6%

Related for GHSA-867Q-77CC-98MV