Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-8238— Unrestricted Code Execution in aimhubio/aim

Quick assessment

Affected
aimhubio aimhubio/aim
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Aim是美国Aim开源的一个易于使用和高性能的开源实验跟踪器。 Aim 3.22.0版本存在访问控制错误漏洞,该漏洞源于AimQL查询语言使用过时的safer_getattr函数,未保护str.format_map方法,可能导致服务器端秘密泄露或任意代码执行。

AI Predicted 9.8 Difficulty: Easy EPSS 0.77% · P54
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-8238

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Unrestricted Code Execution in aimhubio/aim
Source: CVE Program / CVE List V5
Vulnerability Description
In version 3.22.0 of aimhubio/aim, the AimQL query language uses an outdated version of the safer_getattr() function from RestrictedPython. This version does not protect against the str.format_map() method, allowing an attacker to leak server-side secrets or potentially gain unrestricted code execution. The vulnerability arises because str.format_map() can read arbitrary attributes of Python objects, enabling attackers to access sensitive variables such as os.environ. If an attacker can write files to a known location on the Aim server, they can use str.format_map() to load a malicious .dll/.so file into the Python interpreter, leading to unrestricted code execution.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
CWE-1336
Source: CVE Program / CVE List V5
Vulnerability Title
Aim 访问控制错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Aim是美国Aim开源的一个易于使用和高性能的开源实验跟踪器。 Aim 3.22.0版本存在访问控制错误漏洞,该漏洞源于AimQL查询语言使用过时的safer_getattr函数,未保护str.format_map方法,可能导致服务器端秘密泄露或任意代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
aimhubio aimhubio/aim unspecified ~ latest -

II. Public POCs for CVE-2024-8238

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-8238

请登录查看更多情报信息。

Vendor Advisories for CVE-2024-8238 (1)

Same Patch Batch · aimhubio · 2025-03-20 · 13 CVEs total

CVE-2025-0189 Denial of Service in aimhubio/aim
CVE-2025-0190 Denial of Service in aimhubio/aim
CVE-2024-12777 Denial of Service in aimhubio/aim
CVE-2024-12778 Denial of Service in aimhubio/aim
CVE-2024-6851 Arbitrary File Deletion in aimhubio/aim
CVE-2024-6483 Arbitrary File/Directory Deletion in aimhubio/aim
CVE-2024-6829 Arbitrary File Overwrite through tarfile-extraction in aimhubio/aim
CVE-2024-7760 CSRF in aimhubio/aim
CVE-2024-8061 Denial of Service in aimhubio/aim
CVE-2024-8769 Arbitrary File Deletion via Relative Path Traversal in aimhubio/aim
CVE-2024-8101 Stored XSS in aimhubio/aim
CVE-2024-10110 Denial of Service in aimhubio/aim

IV. Related Vulnerabilities

V. Comments for CVE-2024-8238

No comments yet


Leave a comment