CVE-2024-8238
published medium CVSS 3.0 · 5.9Unrestricted Code Execution in aimhubio/aim
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| aimhubio | — | aimhubio/aimunspecified through latest | Affected | Not stated | @huntr_ai |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| aimhubio | aimhubio/aim | unspecified through latest (affected · custom) | @huntr_ai · cna |
Weaknesses
1- CWE-1336 CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
References
1Provider assertions
2@huntr_ai · cna
Unrestricted Code Execution in aimhubio/aim
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- c0892af9eca2e3825702a437f6086a49cc1ca583a2fa0f540096101dc665302f
- Ingested
- 23 Sep 2026, 08:34:06 UTC
- Source record
- Official CVE record