CVE-2024-8238
HIGHDescription
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.
How to fix
No published remediation has been found for this vulnerability's affected products yet.
Mitigation guidance may be in the linked vendor advisories in the References section below.
TridentStack Control tracks known vulnerabilities across your Windows, macOS, and Linux fleet and shows the fix as soon as one is published. See how it works
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Exploit Intelligence
Moderate risk: more likely to be exploited than 50% of all known CVEs.
References
Related Vulnerabilities
Other CWE-1336 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2024-4040 | Critical | 9.8 | 100% | KEV | Fix |
| CVE-2024-23692 | Critical | 9.8 | 99% | KEV + Ransom | - |
| CVE-2025-47916 | Critical | 10.0 | 85% | - | Fix |
| CVE-2024-32651 | Critical | 10.0 | 84% | - | - |
| CVE-2022-25813 | High | 7.5 | 67% | - | Fix |
| CVE-2025-34300 | Unscored | - | 51% | - | - |
Common questions
How do I fix CVE-2024-8238?
No published fix for CVE-2024-8238 has been found yet. Check the linked vendor advisories for guidance as it becomes available.
Is CVE-2024-8238 being actively exploited?
Not that we know of. CVE-2024-8238 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.70% is the estimated probability that it will be exploited in the next 30 days. That is higher than 50% of all scored CVEs.
How severe is CVE-2024-8238?
CVE-2024-8238 has a CVSS v3 base score of 8.1, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
Embed a live status badge for CVE-2024-8238
Markdown
[](https://tridentstack.com/cve/CVE-2024-8238)HTML
<a href="https://tridentstack.com/cve/CVE-2024-8238"><img src="https://tridentstack.com/cve/badge/CVE-2024-8238.svg" alt="CVE-2024-8238"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-10-15.