python-poetry poetry 对生成代码的控制不恰当(代码注入)

admin 2023-11-30 06:07:44 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 python-poetry poetry 对生成代码的控制不恰当(代码注入)

CVE编号

CVE-2022-36069

利用情况

暂无

补丁情况

官方补丁

披露时间

2022-09-08
漏洞描述
Poetry is a dependency manager for Python. When handling dependencies that come from a Git repository instead of a registry, Poetry uses various commands, such as `git clone`. These commands are constructed using user input (e.g. the repository URL). When building the commands, Poetry correctly avoids Command Injection vulnerabilities by passing an array of arguments instead of a command string. However, there is the possibility that a user input starts with a dash (`-`) and is therefore treated as an optional argument instead of a positional one. This can lead to Code Execution because some of the commands have options that can be leveraged to run arbitrary executables. If a developer is exploited, the attacker could steal credentials or persist their access. If the exploit happens on a server, the attackers could use their access to attack other internal systems. Since this vulnerability requires a fair amount of user interaction, it is not as dangerous as a remotely exploitable one. However, it still puts developers at risk when dealing with untrusted files in a way they think is safe, because the exploit still works when the victim tries to make sure nothing can happen, e.g. by vetting any Git or Poetry config files that might be present in the directory. Versions 1.1.9 and 1.2.0b1 contain patches for this issue.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://github.com/python-poetry/poetry/releases/tag/1.1.9
https://github.com/python-poetry/poetry/releases/tag/1.2.0b1
https://github.com/python-poetry/poetry/security/advisories/GHSA-9xgj-fcgf-x6mw
https://www.sonarsource.com/blog/securing-developer-tools-package-managers/
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 python-poetry poetry * Up to (excluding) 1.1.9
运行在以下环境
应用 python-poetry poetry 1.2.0 -
运行在以下环境
系统 debian_12 poetry-core * Up to (excluding) 1.0.7-1
运行在以下环境
系统 debian_sid poetry-core * Up to (excluding) 1.0.7-1
阿里云评分 6.0
  • 攻击路径 本地
  • 攻击复杂度 复杂
  • 权限要求 普通权限
  • 影响范围 越权影响
  • EXP成熟度 未验证
  • 补丁情况 官方补丁
  • 数据保密性 无影响
  • 数据完整性 无影响
  • 服务器危害 无影响
  • 全网数量 N/A
CWE-ID 漏洞类型
CWE-88 参数注入或修改
CWE-94 对生成代码的控制不恰当(代码注入)
- avd.aliyun.com
weinxin
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
N/A Ali_nvd

N/A

N/ACVE编号 CVE-2024-9120利用情况 暂无补丁情况 N/A披露时间 2024-09-23漏洞描述Use after free in Dawn
评论:0   参与:  0