SCA: security update for org.openapitools:openapi-generator (GHSA-cqxr-xf2w-943w)

medium Tenable Self-Hosted Container Security Plugin ID 414047

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- OpenAPI Generator allows generation of API client libraries (SDK generation), 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. Auto-generated code (Java, Scala) that deals with uploading or downloading binary data through
API endpoints will create insecure temporary files during the process. Affected generators: `java`
(jersey2, okhttp-gson (default library)), `scala-finch`. The issue has been patched with
`Files.createTempFile` and released in the v5.1.0 stable version. (CVE-2021-21430)

See Also

https://github.com/advisories/GHSA-cqxr-xf2w-943w

Plugin Details

Severity: Medium

ID: 414047

Version: Revision 1.4

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.18

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Low

Base Score: 2.1

Temporal Score: 1.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:N/A:N

CVSS Score Source: CVE-2021-21430

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 5

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/11/2021

Vulnerability Publication Date: 5/10/2021

Reference Information

CVE: CVE-2021-21430