SCA: security update for io.swagger:swagger-codegen (GHSA-hpv8-9rq5-hq7w)

medium Tenable Cloud Security Plugin ID 415878

Description

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

- swagger-codegen is an open-source project which contains a template-driven engine to generate
documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger
definition. In swagger-codegen before version 2.4.19, on Unix-Like systems, the system temporary directory
is shared between all local users. When files/directories are created, 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. Because this vulnerability impacts generated code, the generated code will remain
vulnerable until fixed manually! This vulnerability is fixed in version 2.4.19. Note this is a distinct
vulnerability from CVE-2021-21363. (CVE-2021-21364)

See Also

https://github.com/advisories/GHSA-hpv8-9rq5-hq7w

Plugin Details

Severity: Medium

ID: 415878

Version: Revision 1.5

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-21364

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 4.8

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:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 3/11/2021

Vulnerability Publication Date: 3/11/2021

Reference Information

CVE: CVE-2021-21364