Unrestricted Code Execution in aimhubio/aim
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| aimhubio | aimhubio/aim | up to latest | — | No fix listed | CNA |
| — | aim (PyPI) | 3.0.0 – 3.22.0 | — | No fix listed | GHSA-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
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2024-8238
- 2026-10-03 Alias added: GHSA-r229-5wgf-f28g
References
More aimhubio Aim vulnerabilities
- 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
Sources
- CVE-2024-8238 · CVE Program
- CVE-2024-8238 · NVD
- FIRST EPSS
- GHSA-r229-5wgf-f28g · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences