Read the docs
TI-2024-07637 Aliases CVE-2024-8238GHSA-r229-5wgf-f28g

Unrestricted Code Execution in aimhubio/aim

Priority HIGH 68CWE-1336Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
Code execution, Security bypass
Confidentiality · integrity · availability
High · High · High
Fix status
No fix listed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-1336 and CWE-284.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00774 55th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
aimhubioaimhubio/aimup to latest—No fix listedCNA
—aim (PyPI)3.0.0 – 3.22.0—No fix listedGHSA-r229-5wgf-f28g
  • aimhubio/aim Vendoraimhubio Affected up to latest Fixed in — No fix listed CNA
  • aim (PyPI) Vendor— Affected 3.0.0 – 3.22.0 Fixed in — No fix listed GHSA-r229-5wgf-f28g

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:aimstack:aim:3.22.0:*:*:*:*:python:*:*3.22.0Vulnerableaimhubio
  • cpe:2.3:a:aimstack:aim:3.22.0:*:*:*:*:python:*:* Versions 3.22.0 Vulnerable ·aimhubio

Remediation

No fixed version listed by the sources yet.

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-8238
  2. 2026-10-03 Alias added: GHSA-r229-5wgf-f28g

References

  • TI-2024-05938 Arbitrary File Overwrite and Data Exfiltration in aimhubio/aim CVSS 3.0CRITICAL 9.8
  • TI-2024-02038 Remote Code Execution in aimhubio/aim CVSS 3.0CRITICAL 9.8
  • TI-2024-08135 Arbitrary File Deletion via Relative Path Traversal in aimhubio/aim CVSS 3.1CRITICAL 9.1
  • TI-2024-06332 Arbitrary File Overwrite through tarfile-extraction in aimhubio/aim CVSS 3.0CRITICAL 9.1
  • TI-2024-07194 CSRF in aimhubio/aim CVSS 3.1CRITICAL 9.6
  • TI-2025-32336 Cross-site Scripting (XSS) in aimhubio Aim 3.28.0 allows remote attackers to execute… CVSS 3.1HIGH 8.8
See all 22 →

Sources