Pyramid 路径遍历漏洞(CVE-2023-40587)

admin 2023-11-29 21:15:56 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 Pyramid 路径遍历漏洞(CVE-2023-40587)

CVE编号

CVE-2023-40587

利用情况

暂无

补丁情况

官方补丁

披露时间

2023-08-26
漏洞描述
Pyramid是一个开源的Python Web框架。Pyramid 2.0.0和2.0.1版本中存在一种路径遍历漏洞,影响使用Python 3.11版本的用户。当使用Pyramid静态视图时,如果视图的文件系统路径中的`index.html`文件位于静态视图路径的上一级目录,就会触发漏洞。没有进一步的路径遍历,唯一可能泄露的文件是`index.html`。为了安全起见,Pyramid 2.0.2版本拒绝包含空字节的路径。虽然在目录/文件名中有效,但我们强烈建议不要在命名文件/目录时使用空字节。其次,Python 3.11和3.12修复了`os.path.normpath`中的根本问题,不再截断第一个发现的`0x00`,恢复到3.11之前Python的行为,这是尚未发布的版本。修复将在Python 3.12.0rc2和3.11.5中提供。可以采取一些解决方法:使用未受影响的Python 3版本,暂时降级到Python 3.10系列,或等待Python 3.11.5的发布并升级到最新版本的Python 3.11系列。
解决建议
"将组件 pyramid 升级至 2.0.2 及以上版本"
参考链接
https://github.com/Pylons/pyramid/commit/347d7750da6f45c7436dd0c31468885cc9343c85
https://github.com/Pylons/pyramid/security/advisories/GHSA-j8g2-6fc7-q8f8
https://github.com/python/cpython/issues/106242
https://github.com/python/cpython/pull/106816
https://lists.fedoraproject.org/archives/list/[email protected]...
https://lists.fedoraproject.org/archives/list/[email protected]...
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 agendaless pyramid * From (including) 2.0 Up to (excluding) 2.0.2
运行在以下环境
系统 debian_10 python-pyramid * Up to (excluding) 1.10.2+dfsg-2
运行在以下环境
系统 debian_11 python-pyramid * Up to (excluding) 1.10.4+dfsg-2
运行在以下环境
系统 debian_12 python-pyramid * Up to (including) 2.0+dfsg-2
运行在以下环境
系统 debian_sid python-pyramid * Up to (including) 2.0+dfsg-2
运行在以下环境
系统 fedora_38 python3-pyramid * Up to (excluding) 2.0.2-1.fc38
运行在以下环境
系统 fedora_39 python3-pyramid * Up to (excluding) 2.0.2-1.fc39
阿里云评分 4.8
  • 攻击路径 本地
  • 攻击复杂度 困难
  • 权限要求 管控权限
  • 影响范围 有限影响
  • EXP成熟度 未验证
  • 补丁情况 官方补丁
  • 数据保密性 无影响
  • 数据完整性 无影响
  • 服务器危害 无影响
  • 全网数量 N/A
CWE-ID 漏洞类型
CWE-22 对路径名的限制不恰当(路径遍历)
- 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