Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-867q-77cc-98mv

Опубликовано: 29 апр. 2021
Источник: github
Github: Прошло ревью
CVSS3: 4

Описание

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

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:

Пакеты

Наименование

org.openapitools:openapi-generator-maven-plugin

maven
Затронутые версииВерсия исправления

< 5.1.0

5.1.0

EPSS

Процентиль: 16%
0.00053
Низкий

4 Medium

CVSS3

Дефекты

CWE-377
CWE-378
CWE-379
CWE-552

Связанные уязвимости

CVSS3: 6.2
redhat
почти 5 лет назад

OpenAPI Generator allows generation of API client libraries, server stubs, documentation and configuration automatically given an OpenAPI Spec. Using `File.createTempFile` in JDK will result in creating and using insecure temporary files that can leave application and system data vulnerable to attacks. OpenAPI Generator maven plug-in creates insecure temporary files during the process. The issue has been patched with `Files.createTempFile` and released in the v5.1.0 stable version.

CVSS3: 4
nvd
почти 5 лет назад

OpenAPI Generator allows generation of API client libraries, server stubs, documentation and configuration automatically given an OpenAPI Spec. Using `File.createTempFile` in JDK will result in creating and using insecure temporary files that can leave application and system data vulnerable to attacks. OpenAPI Generator maven plug-in creates insecure temporary files during the process. The issue has been patched with `Files.createTempFile` and released in the v5.1.0 stable version.

EPSS

Процентиль: 16%
0.00053
Низкий

4 Medium

CVSS3

Дефекты

CWE-377
CWE-378
CWE-379
CWE-552