CVE-2024-8238

CVE-2024-8238 is a high-severity vulnerability in Aimstack Aim with a CVSS 3.x base score of 8.1. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-1336.

Key facts

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.

Frequently asked questions

What is CVE-2024-8238?
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 severe is CVE-2024-8238?
CVE-2024-8238 has a CVSS 3.x base score of 8.1, rated high severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
Is CVE-2024-8238 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (49th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-8238?
CVE-2024-8238 affects Aimstack Aim. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-8238?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
Does CVE-2024-8238 have an EU (EUVD) identifier?
Yes. CVE-2024-8238 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-6893.
When was CVE-2024-8238 published?
CVE-2024-8238 was published on 2025-03-20 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Aimstack Aim

All CVEs affecting Aimstack Aim →

Other CWE-1336 vulnerabilities

Browse all CWE-1336 vulnerabilities →