| Advisory ID | pypa/aim/PYSEC-2026-1094 |
| Aliases |
CVE-2024-8238
GHSA-r229-5wgf-f28g PYSEC-2026-1094 |
| Summary | Aim Improper Access Control 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. |
| Status | Published |
| Exploitability | 0.5 |
| Weighted Severity | 5.3 |
| Risk | 2.6 |
| Affected and Fixed Packages | Package Details |
| Introduced and Fixed Package Commit Patches | Package Commit Patches Details |
| There are no known CWE. |
| System | Score | Found at |
|---|---|---|
| cvssv3 | 5.9 | https://github.com/pypa/advisory-database/blob/main/vulns/aim/PYSEC-2026-1094.yaml |
| Reference id | Reference type | URL |
|---|---|---|
| https://github.com/aimhubio/aim | ||
| https://github.com/aimhubio/aim/blob/main/aim/storage/query.py#L45 | ||
| https://huntr.com/bounties/4e140ef9-f6d1-4e68-a44c-3b9e856924d3 | ||
| https://pypi.org/project/aim | ||
| CVE-2024-8238 | https://nvd.nist.gov/vuln/detail/CVE-2024-8238 | |
| GHSA-r229-5wgf-f28g | https://github.com/advisories/GHSA-r229-5wgf-f28g |
No EPSS data available for this advisory.
| Patch URL | |
|---|---|
| There are no known patches. | |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
Vector: SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2025-03-20T14:23:53Z/
Decision: Track
Source URL: https://github.com/cisagov/vulnrichment/blob/develop/2024/8xxx/CVE-2024-8238.json
Source Advisory: vulnrichment/CVE-2024-8238
[{'Exploitation': 'poc'},
{'Automatable': 'no'},
{'Technical Impact': 'partial'},
{'Mission Prevalence': 'minimal'},
{'Public Well-being Impact': 'material'},
{'Mission & Well-being': 'medium'}]