5 Star 0 Fork 8

src-openEuler/python-asteval

CVE-2025-24359

已挂起
CVE和安全问题 拥有者
创建于  
2025-01-25 03:14

一、漏洞信息
漏洞编号:CVE-2025-24359
漏洞归属组件:python-asteval
漏洞归属的版本:0.9.18,0.9.25,0.9.27,0.9.30,0.9.31,1.0.2,1.0.5
CVSS V3.0分值:
BaseScore:8.4 High
Vector:CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
漏洞简述:
ASTEVAL is an evaluator of Python expressions and statements. Prior to version 1.0.6, if an attacker can control the input to the asteval library, they can bypass asteval s restrictions and execute arbitrary Python code in the context of the application using the library. The vulnerability is rooted in how asteval performs handling of FormattedValue AST nodes. In particular, the on_formattedvalue value uses the dangerous format method of the str class. The code allows an attacker to manipulate the value of the string used in the dangerous call fmt.format(__fstring__=val). This vulnerability can be exploited to access protected attributes by intentionally triggering an AttributeError exception. The attacker can then catch the exception and use its obj attribute to gain arbitrary access to sensitive or protected object properties. Version 1.0.6 fixes this issue.
漏洞公开时间:2025-01-25 01:15:16
漏洞创建时间:2025-01-25 03:14:29
漏洞详情参考链接:
https://nvd.nist.gov/vuln/detail/CVE-2025-24359

更多参考(点击展开)
参考来源 参考链接 来源链接
security-advisories.github.com https://github.com/lmfit/asteval/blob/cfb57f0beebe0dc0520a1fbabc35e66060c7ea71/asteval/asteval.py#L507
security-advisories.github.com https://github.com/lmfit/asteval/security/advisories/GHSA-3wwr-3g9f-9gc7
security-advisories.github.com https://lucumr.pocoo.org/2016/12/29/careful-with-str-format
suse_bugzilla http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2025-24359 https://bugzilla.suse.com/show_bug.cgi?id=1236405
suse_bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=2341976 https://bugzilla.suse.com/show_bug.cgi?id=1236405
suse_bugzilla https://www.cve.org/CVERecord?id=CVE-2025-24359 https://bugzilla.suse.com/show_bug.cgi?id=1236405
suse_bugzilla https://github.com/lmfit/asteval/blob/cfb57f0beebe0dc0520a1fbabc35e66060c7ea71/asteval/asteval.py#L507 https://bugzilla.suse.com/show_bug.cgi?id=1236405
suse_bugzilla https://github.com/lmfit/asteval/security/advisories/GHSA-3wwr-3g9f-9gc7 https://bugzilla.suse.com/show_bug.cgi?id=1236405
suse_bugzilla https://lucumr.pocoo.org/2016/12/29/careful-with-str-format https://bugzilla.suse.com/show_bug.cgi?id=1236405

漏洞分析指导链接:
https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md
漏洞数据来源:
openBrain开源漏洞感知系统
漏洞补丁信息:

详情(点击展开)

二、漏洞分析结构反馈
影响性分析说明:
ASTEVAL is an evaluator of Python expressions and statements. Prior to version 1.0.6, if an attacker can control the input to the asteval library, they can bypass asteval s restrictions and execute arbitrary Python code in the context of the application using the library. The vulnerability is rooted in how asteval performs handling of FormattedValue AST nodes. In particular, the on_formattedvalue value uses the dangerous format method of the str class. The code allows an attacker to manipulate the value of the string used in the dangerous call fmt.format(fstring=val). This vulnerability can be exploited to access protected attributes by intentionally triggering an AttributeError exception. The attacker can then catch the exception and use its obj attribute to gain arbitrary access to sensitive or protected object properties. Version 1.0.6 fixes this issue.
openEuler评分:
8.4
Vector:CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
受影响版本排查(受影响/不受影响):
1.master(1.0.6):受影响
2.openEuler-22.03-LTS-SP3(0.9.25):受影响
3.openEuler-22.03-LTS-SP4(0.9.25):受影响
4.openEuler-24.03-LTS(1.0.6):受影响
5.openEuler-24.03-LTS-Next(1.0.6):受影响
6.openEuler-24.03-LTS-SP1(1.0.6):受影响
7.openEuler-20.03-LTS-SP4:不受影响
8.openEuler-24.03-LTS-SP2(1.0.6):不受影响

修复是否涉及abi变化(是/否):
1.master(1.0.6):否
2.openEuler-20.03-LTS-SP4:否
3.openEuler-22.03-LTS-SP3(0.9.25):否
4.openEuler-22.03-LTS-SP4(0.9.25):否
5.openEuler-24.03-LTS(1.0.6):否
6.openEuler-24.03-LTS-Next(1.0.6):否
7.openEuler-24.03-LTS-SP1(1.0.6):否
8.openEuler-24.03-LTS-SP2(1.0.6):否

原因说明:
1.master(1.0.6):正常修复
2.openEuler-24.03-LTS(1.0.6):正常修复
3.openEuler-24.03-LTS-Next(1.0.6):正常修复
4.openEuler-24.03-LTS-SP1(1.0.6):正常修复
5.openEuler-22.03-LTS-SP3(0.9.25):暂不修复-待升级版本修复
6.openEuler-22.03-LTS-SP4(0.9.25):暂不修复-待升级版本修复
7.openEuler-20.03-LTS-SP4:不受影响-组件不存在
8.openEuler-24.03-LTS-SP2(1.0.6):不受影响-漏洞代码不能被攻击者触发

评论 (7)

openeuler-ci-bot 创建了CVE和安全问题 6个月前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
6个月前
展开全部操作日志
openeuler-ci-bot 添加了
 
sig/sig-python-modul
标签
6个月前
参考网址 关联pr 状态 补丁链接
https://nvd.nist.gov/vuln/detail/CVE-2025-24359
https://ubuntu.com/security/CVE-2025-24359NoneNonehttps://discourse.ubuntu.com/c/project
https://www.opencve.io/cve/CVE-2025-24359
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2025-24359
https://security-tracker.debian.org/tracker/CVE-2025-24359

说明:补丁链接仅供初步排查参考,实际可用性请人工再次确认,补丁下载验证可使用CVE补丁工具
若补丁不准确,烦请在此issue下评论 '/report-patch 参考网址 补丁链接1,补丁链接2' 反馈正确信息,便于我们不断优化工具,不胜感激。
如 /report-patch https://security-tracker.debian.org/tracker/CVE-2021-3997 https://github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1

openeuler-ci-bot 修改了描述 6个月前
openeuler-ci-bot 修改了描述 6个月前
openeuler-ci-bot 通过合并 Pull Request !11: Update to 1.0.6 for fix CVE-2025-24359任务状态待办的 修改为已完成 6个月前
starlet_dx 任务状态已完成 修改为待办的 6个月前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
6个月前
openeuler-ci-bot 移除了
 
sig/sig-python-modul
标签
6个月前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
6个月前
openeuler-ci-bot 添加了
 
sig/sig-python-modul
标签
6个月前
openeuler-ci-bot 修改了描述 6个月前
openeuler-ci-bot 计划开始日期设置为2025-02-05 6个月前
openeuler-ci-bot 计划截止日期设置为2025-03-07 6个月前
openeuler-ci-bot 优先级设置为主要 6个月前
openeuler-ci-bot 通过合并 Pull Request !12: Update to 1.0.6 for fix CVE-2025-24359 and Sync code任务状态待办的 修改为已完成 6个月前
starlet_dx 任务状态已完成 修改为待办的 6个月前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
6个月前
openeuler-ci-bot 移除了
 
sig/sig-python-modul
标签
6个月前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
6个月前
openeuler-ci-bot 添加了
 
sig/sig-python-modul
标签
6个月前
openeuler-ci-bot 通过合并 Pull Request !14: [sync] PR-12: Update to 1.0.6 for fix CVE-2025-24359 and Sync code任务状态待办的 修改为已完成 6个月前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
6个月前
openeuler-ci-bot 移除了
 
sig/sig-python-modul
标签
6个月前
openeuler-ci-bot 添加了
 
CVE/UNAFFECTED
标签
6个月前
openeuler-ci-bot 添加了
 
sig/sig-python-modul
标签
6个月前
starlet_dx 任务状态已完成 修改为待办的 6个月前
openeuler-ci-bot 移除了
 
CVE/UNAFFECTED
标签
6个月前
openeuler-ci-bot 移除了
 
sig/sig-python-modul
标签
6个月前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
6个月前
openeuler-ci-bot 添加了
 
sig/sig-python-modul
标签
6个月前

影响性分析说明:
ASTEVAL is an evaluator of Python expressions and statements. Prior to version 1.0.6, if an attacker can control the input to the asteval library, they can bypass asteval s restrictions and execute arbitrary Python code in the context of the application using the library. The vulnerability is rooted in how asteval performs handling of FormattedValue AST nodes. In particular, the on_formattedvalue value uses the dangerous format method of the str class. The code allows an attacker to manipulate the value of the string used in the dangerous call fmt.format(fstring=val). This vulnerability can be exploited to access protected attributes by intentionally triggering an AttributeError exception. The attacker can then catch the exception and use its obj attribute to gain arbitrary access to sensitive or protected object properties. Version 1.0.6 fixes this issue.

openEuler评分:
8.4
Vector:CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

受影响版本排查(受影响/不受影响):
1.master(1.0.5): 受影响
2.openEuler-20.03-LTS-SP4: 不受影响
3.openEuler-22.03-LTS-SP3(0.9.25): 受影响
4.openEuler-22.03-LTS-SP4(0.9.25): 受影响
5.openEuler-24.03-LTS(0.9.31): 受影响
6.openEuler-24.03-LTS-Next(0.9.31): 受影响
7.openEuler-24.03-LTS-SP1(0.9.31): 受影响

修复是否涉及abi变化(是/否):
1.master(1.0.5): 否
2.openEuler-20.03-LTS-SP4: 否
3.openEuler-22.03-LTS-SP3(0.9.25): 否
4.openEuler-22.03-LTS-SP4(0.9.25): 否
5.openEuler-24.03-LTS(0.9.31): 否
6.openEuler-24.03-LTS-Next(0.9.31): 否
7.openEuler-24.03-LTS-SP1(0.9.31): 否

原因说明:
1.master(1.0.5): 正常修复
2.openEuler-20.03-LTS-SP4: 不受影响-组件不存在
3.openEuler-22.03-LTS-SP3(0.9.25): 暂不修复-待升级版本修复
4.openEuler-22.03-LTS-SP4(0.9.25): 暂不修复-待升级版本修复
5.openEuler-24.03-LTS(0.9.31): 正常修复
6.openEuler-24.03-LTS-Next(0.9.31): 正常修复
7.openEuler-24.03-LTS-SP1(0.9.31): 正常修复

openeuler-ci-bot 修改了描述 4个月前
openeuler-ci-bot 任务状态待办的 修改为已挂起 4个月前
openeuler-ci-bot 计划截止日期2025-03-07 修改为2025-02-19 4个月前
openeuler-ci-bot 修改了描述 3个月前

影响性分析说明:
ASTEVAL is an evaluator of Python expressions and statements. Prior to version 1.0.6, if an attacker can control the input to the asteval library, they can bypass asteval s restrictions and execute arbitrary Python code in the context of the application using the library. The vulnerability is rooted in how asteval performs handling of FormattedValue AST nodes. In particular, the on_formattedvalue value uses the dangerous format method of the str class. The code allows an attacker to manipulate the value of the string used in the dangerous call fmt.format(fstring=val). This vulnerability can be exploited to access protected attributes by intentionally triggering an AttributeError exception. The attacker can then catch the exception and use its obj attribute to gain arbitrary access to sensitive or protected object properties. Version 1.0.6 fixes this issue.

openEuler评分:
8.4
Vector:CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

受影响版本排查(受影响/不受影响):
1.master(1.0.5): 受影响
2.openEuler-20.03-LTS-SP4: 不受影响
3.openEuler-22.03-LTS-SP3(0.9.25): 受影响
4.openEuler-22.03-LTS-SP4(0.9.25): 受影响
5.openEuler-24.03-LTS(0.9.31): 受影响
6.openEuler-24.03-LTS-Next(0.9.31): 受影响
7.openEuler-24.03-LTS-SP1(0.9.31): 受影响
8.openEuler-24.03-LTS-SP2(1.0.6): 不受影响

修复是否涉及abi变化(是/否):
1.master(1.0.5): 否
2.openEuler-20.03-LTS-SP4: 否
3.openEuler-22.03-LTS-SP3(0.9.25): 否
4.openEuler-22.03-LTS-SP4(0.9.25): 否
5.openEuler-24.03-LTS(0.9.31): 否
6.openEuler-24.03-LTS-Next(0.9.31): 否
7.openEuler-24.03-LTS-SP1(0.9.31): 否
8.openEuler-24.03-LTS-SP2(1.0.6): 否

原因说明:
1.master(1.0.5): 正常修复
2.openEuler-20.03-LTS-SP4: 不受影响-组件不存在
3.openEuler-22.03-LTS-SP3(0.9.25): 暂不修复-待升级版本修复
4.openEuler-22.03-LTS-SP4(0.9.25): 暂不修复-待升级版本修复
5.openEuler-24.03-LTS(0.9.31): 正常修复
6.openEuler-24.03-LTS-Next(0.9.31): 正常修复
7.openEuler-24.03-LTS-SP1(0.9.31): 正常修复
8.openEuler-24.03-LTS-SP2(1.0.6): 不受影响-漏洞代码不能被攻击者触发

openeuler-ci-bot 修改了描述 24天前

登录 后才可以发表评论

状态
负责人
项目
预计工期 (小时)
开始日期   -   截止日期
-
置顶选项
优先级
里程碑
分支
参与者(3)
5329419 openeuler ci bot 1632792936 starlet_dx-starlet-dx wk333-wk333
1
https://gitee.com/src-openeuler/python-asteval.git
git@gitee.com:src-openeuler/python-asteval.git
src-openeuler
python-asteval
python-asteval

搜索帮助