製品・ソフトウェアに関する情報
swagger-codegen におけるアクセスパーミションでの一時ファイル作成に関する脆弱性
Title swagger-codegen におけるアクセスパーミションでの一時ファイル作成に関する脆弱性
Summary

swagger-codegen には、アクセスパーミションでの一時ファイル作成に関する脆弱性、およびアクセスパーミションのディレクトリに一時ファイル作成に関する脆弱性が存在します。 本脆弱性は、CVE-2021-21364 とは異なる脆弱性です。

Possible impacts 情報を取得される、情報を改ざんされる、およびサービス運用妨害 (DoS) 状態にされる可能性があります。
Solution

ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date March 2, 2021, midnight
Registration Date Nov. 24, 2021, 12:05 p.m.
Last Update Nov. 24, 2021, 12:05 p.m.
CVSS3.0 : 重要
Score 7
Vector CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS2.0 : 警告
Score 4.4
Vector AV:L/AC:M/Au:N/C:P/I:P/A:P
Affected System
SmartBear Software
Swagger Codegen 2.4.19 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2021年11月24日]
  掲載
Nov. 24, 2021, 12:05 p.m.

NVD Vulnerability Information
CVE-2021-21363
Summary

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's temporary directory is shared between all users on that system. A collocated user can observe the process of creating a temporary sub directory in the shared temporary directory and race to complete the creation of the temporary subdirectory. This vulnerability is local privilege escalation because the contents of the `outputFolder` can be appended to by an attacker. As such, code written to this directory, when executed can be attacker controlled. For more details refer to the referenced GitHub Security Advisory. This vulnerability is fixed in version 2.4.19. Note this is a distinct vulnerability from CVE-2021-21364.

Publication Date March 11, 2021, 12:15 p.m.
Registration Date March 11, 2021, 4:02 p.m.
Last Update Nov. 21, 2024, 2:48 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:smartbear:swagger-codegen:*:*:*:*:*:*:*:* 2.4.19
Related information, measures and tools
Common Vulnerabilities List