一、漏洞信息
漏洞编号: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
漏洞分析指导链接:
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):不受影响-漏洞代码不能被攻击者触发
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
参考网址 | 关联pr | 状态 | 补丁链接 |
---|---|---|---|
https://nvd.nist.gov/vuln/detail/CVE-2025-24359 | |||
https://ubuntu.com/security/CVE-2025-24359 | None | None | https://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
影响性分析说明:
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): 正常修复
影响性分析说明:
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): 不受影响-漏洞代码不能被攻击者触发
登录 后才可以发表评论