logo

CVE-2021-21429 org.openapitools:openapi-generator-maven-plugin

Package

Manager: maven
Name: org.openapitools:openapi-generator-maven-plugin
Vulnerable Version: >=0 <5.1.0

Severity

Level: Medium

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

CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00053 pctl0.16103

Details

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: * Open an issue in [OpenAPI Generator Github repo](https://github.com/openAPITools/openapi-generator/) * Email us at [security@openapitools.org](mailto:security@openapitools.org)

Metadata

Created: 2021-04-29T21:51:37Z
Modified: 2021-05-10T19:29:52Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-867q-77cc-98mv/GHSA-867q-77cc-98mv.json
CWE IDs: ["CWE-377", "CWE-378", "CWE-379", "CWE-552"]
Alternative ID: GHSA-867q-77cc-98mv
Finding: F028
Auto approve: 1