CVE-2024-8238
Last modified
CVE-2024-8238 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 0.70% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Aimstack | Aim | 3.22.0 |
References
- https://huntr.com/bounties/4e140ef9-f6d1-4e68-a44c-3b9e856924d3Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-8238?
How severe is CVE-2024-8238?
How do I fix CVE-2024-8238?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-8232SpiderControl SCADA Web Server has a vulnerability that coul…8.7
- CVE-2024-8233An issue has been discovered in GitLab CE/EE affecting all v…7.5
- CVE-2024-8234** UNSUPPORTED WHEN ASSIGNED ** A command injection vulnerab…9.8
- CVE-2024-8235A flaw was found in libvirt. A refactor of the code fetching…6.2
- CVE-2024-8236The Elementor Website Builder – More than Just a Page Builde…5.4
- CVE-2024-8237A Denial of Service (DoS) issue has been discovered in GitLa…7.5
- CVE-2024-8239The Starbox WordPress plugin before 3.5.3 does not properly…5.4
- CVE-2024-8240Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2024-8241The Nova Blocks by Pixelgrade plugin for WordPress is vulner…5.4
- CVE-2024-8242The MStore API – Create Native Android & iOS Apps On The Clo…8.8
- CVE-2024-8243The WordPress/Plugin Upgrade Time Out Plugin WordPress plugi…6.3
- CVE-2024-8244The filepath.Walk and filepath.WalkDir functions are documen…3.7
Are you affected by CVE-2024-8238?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
