← Vulnerability feed

Vulnerability record · CVE-2024-8238 · published 20 March 2025

CVE-2024-8238: Aimstack aim vulnerability

Aimstack · Aim

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.

8.1 CVSS 3.1 High EPSS 0.77% · top 46.1% CWE-1336 · CWE-1336
8.1CVSS 3.1 base score
0.77%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
1References, 1 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2024-8238 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-6396Aim _backup_run path traversal allows arbitrary file overwriteAim 3.19.3 mishandles the run_hash and repo.path parameters in the _backup_run function, letting a remote attacker build arbitrary file paths and wri…EPSS 53%analysed9.8CVE-2024-2195Aimstack aim code injection vulnerabilityA critical Remote Code Execution (RCE) vulnerability was identified in the aimhubio/aim project, specifically within the `/api/runs/search/run/` endp…EPSS 1.8%9.6CVE-2024-7760Aimstack aim cross-site request forgery vulnerabilityaimhubio/aim version 3.22.0 contains a Cross-Site Request Forgery (CSRF) vulnerability in the tracking server. The vulnerability is due to overly per…EPSS 0.52%9.1CVE-2024-8769Aimstack aim path traversal vulnerabilityA vulnerability in the `LockManager.release_locks` function in aimhubio/aim (commit bb76afe) allows for arbitrary file deletion through relative path…EPSS 0.91%9.1CVE-2024-6829Aimstack aim vulnerabilityA vulnerability in aimhubio/aim version 3.19.3 allows an attacker to exploit the `tarfile.extractall()` function to extract the contents of a malicio…EPSS 0.87%8.8CVE-2025-51464Aimstack aim cross-site scripting vulnerabilityCross-site Scripting (XSS) in aimhubio Aim 3.28.0 allows remote attackers to execute arbitrary JavaScript in victims browsers via malicious Python co…EPSS 0.61%8.8CVE-2024-2196Aimstack aim cross-site request forgery vulnerabilityaimhubio/aim is vulnerable to Cross-Site Request Forgery (CSRF), allowing attackers to perform actions such as deleting runs, updating data, and stea…EPSS 0.59%8.6CVE-2021-43775Aimstack aim path traversal vulnerabilityAim is an open-source, self-hosted machine learning experiment tracking tool. Versions of Aim prior to 3.1.0 are vulnerable to a path traversal attac…EPSS 1.9%

Source: NIST National Vulnerability Database (record CVE-2024-8238), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.