目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2021-21363— HugoMario swagger-codegen 安全漏洞

一分钟漏洞结论

影响对象
swagger-api swagger-codegen
利用判断
存在公开或 AI PoC,应优先验证
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

HugoMario swagger-codegen是 (HugoMario) 的一个应用软件。用于在给定OpenAPI Spec的情况下自动生成API客户端库(生成SDK),服务器存根和文档。 swagger-codegen 存在安全漏洞,攻击者可利用该漏洞将outputFolder的内容附加到其后。写入该目录的代码在执行时受到攻击者的控制。

CVSS 5.3 · Medium EPSS 0.41% · P35
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2021-21363 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Generator Web Application: Local Privilege Escalation Vulnerability via System Temp Directory
来源: CVE Program / CVE List V5
Vulnerability Description
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.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
在具有不安全权限的目录中创建临时文件
来源: CVE Program / CVE List V5
Vulnerability Title
HugoMario swagger-codegen 安全漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
HugoMario swagger-codegen是 (HugoMario) 的一个应用软件。用于在给定OpenAPI Spec的情况下自动生成API客户端库(生成SDK),服务器存根和文档。 swagger-codegen 存在安全漏洞,攻击者可利用该漏洞将outputFolder的内容附加到其后。写入该目录的代码在执行时受到攻击者的控制。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
swagger-api swagger-codegen < 2.4.19 -

二、漏洞 CVE-2021-21363 的公开POC

# POC 描述 源链接 神龙链接
1 None https://github.com/andikahilmy/CVE-2021-21363-swagger-codegen-vulnerable POC详情
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2021-21363 的情报信息

登录查看更多情报信息。

CVE-2021-21363 补丁与修复 (1)

CVE-2021-21363 厂商安全公告 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2021-21363

暂无评论


发表评论