Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
5
Star
0
Fork
9
src-openEuler
/
python-asteval
Code
Issues
1
Pull Requests
0
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
CVE-2025-24359
已挂起
#IBJP8F
CVE和安全问题
openeuler-ci-bot
owner
Opened this issue
2025-01-25 03:14
一、漏洞信息 漏洞编号:[CVE-2025-24359](https://nvd.nist.gov/vuln/detail/CVE-2025-24359) 漏洞归属组件:[python-asteval](https://gitee.com/src-openeuler/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.x分值: BaseScore:8.4 High Vector:CVSS:3.1/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 <details> <summary>更多参考(点击展开)</summary> | 参考来源 | 参考链接 | 来源链接 | | ------- | -------- | -------- | | 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 | </details> 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: openBrain开源漏洞感知系统 漏洞补丁信息: <details> <summary>详情(点击展开)</summary> 无 </details> 二、漏洞分析结构反馈 影响性分析说明: 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.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 受影响版本排查(受影响/不受影响): 1.master(1.0.7):受影响 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):不受影响 9.openEuler-24.03-LTS-SP3(1.0.6):不受影响 修复是否涉及abi变化(是/否): 1.master(1.0.7):否 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):否 9.openEuler-24.03-LTS-SP3(1.0.6):否 原因说明: 1.master(1.0.7):正常修复 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):不受影响-漏洞代码不能被攻击者触发 9.openEuler-24.03-LTS-SP3(1.0.6):不受影响-漏洞代码不能被攻击者触发
一、漏洞信息 漏洞编号:[CVE-2025-24359](https://nvd.nist.gov/vuln/detail/CVE-2025-24359) 漏洞归属组件:[python-asteval](https://gitee.com/src-openeuler/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.x分值: BaseScore:8.4 High Vector:CVSS:3.1/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 <details> <summary>更多参考(点击展开)</summary> | 参考来源 | 参考链接 | 来源链接 | | ------- | -------- | -------- | | 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 | </details> 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: openBrain开源漏洞感知系统 漏洞补丁信息: <details> <summary>详情(点击展开)</summary> 无 </details> 二、漏洞分析结构反馈 影响性分析说明: 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.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 受影响版本排查(受影响/不受影响): 1.master(1.0.7):受影响 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):不受影响 9.openEuler-24.03-LTS-SP3(1.0.6):不受影响 修复是否涉及abi变化(是/否): 1.master(1.0.7):否 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):否 9.openEuler-24.03-LTS-SP3(1.0.6):否 原因说明: 1.master(1.0.7):正常修复 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):不受影响-漏洞代码不能被攻击者触发 9.openEuler-24.03-LTS-SP3(1.0.6):不受影响-漏洞代码不能被攻击者触发
Comments (
9
)
Sign in
to comment
Status
已挂起
Backlog
已挂起
Doing
Done
Declined
Assignees
Not set
xu_ping
cherry530
Assignee
Collaborator
+Assign
+Mention
Labels
CVE/UNFIXED
sig/sig-python-modul
Not set
Projects
Unprojected
Unprojected
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (21)
Tags (20)
master
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP2
openEuler-24.03-LTS-SP3
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS
openEuler-25.03
openEuler-25.09
openEuler-24.09
openEuler-23.09
openEuler-22.03-LTS-Next
openEuler-22.03-LTS-SP1
openEuler-22.03-LTS-SP2
openEuler-22.03-LTS-SP3
openEuler-23.03
openEuler-22.09
20.09
openEuler-20.09
openEuler-21.09
openEuler-22.03-LTS
openEuler-25.09-release
openEuler-24.03-LTS-SP2-release
openEuler-25.03-release
openEuler-24.03-LTS-update-20250321
openEuler-24.03-LTS-SP1-update-20250321
openEuler-24.03-LTS-SP1-release
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round3
openEuler-22.03-LTS-round2
openEuler-22.03-LTS-round1
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(1)
1
https://gitee.com/src-openeuler/python-asteval.git
git@gitee.com:src-openeuler/python-asteval.git
src-openeuler
python-asteval
python-asteval
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register