# CVE-2024-2195: Aim Web API vulnerable to Remote Code Execution

Source: https://junglewise.ai/threats/cve-2024-2195-aim-web-api-vulnerable-to-remote-code-execution  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-04-10  
License: CC BY 4.0 with a link back

CVE-2024-2195 · Severity: critical · CVSS 9.8 · Published 2024-04-10

A critical Remote Code Execution (RCE) vulnerability was identified in the aimhubio/aim project, specifically within the `/api/runs/search/run/` endpoint, affecting versions >= 3.0.0. The vulnerability resides in the `run_search_api` function of the `aim/web/api/runs/views.py` file, where improper restriction of user access to the `RunView` object allows for the execution of arbitrary code via the `query` parameter. This issue enables attackers to execute arbitrary commands on the server, potentially leading to full system compromise.

Technologies: [aim (PyPI)](https://junglewise.ai/threats/technologies/pypi-aim). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-2195 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-2195 being exploited in the wild.

**How severe is CVE-2024-2195?** Critical severity, with a CVSS score of 9.8, published 10 April 2024.

**Which products and versions are affected?** aim (PyPI) >= 3.0.0, <= 3.25.0, ECOSYSTEM:introduced=3.0.0,last_affected=3.25.0.

**Is there a fix for CVE-2024-2195?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2024-2195?** Check whether you run aim (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- aim (PyPI) >= 3.0.0, <= 3.25.0, ECOSYSTEM:introduced=3.0.0,last_affected=3.25.0

## Identifiers

- CVE-2024-2195
- GHSA-mxvw-cj37-8g2h
- PYSEC-2026-260

## Related threats

- [PYSEC-2026-1087 - Aim vulnerable to Cross-site Scripting](https://junglewise.ai/threats/cve-2025-51464-aim-vulnerable-to-cross-site-scripting)
- [PYSEC-2026-1088 - Aim Vulnerable to Sandbox Escape Leading to Remote Code Execution](https://junglewise.ai/threats/cve-2025-5321-aim-vulnerable-to-sandbox-escape-leading-to-remote-code-execution)
- [PYSEC-2026-1085 - Aim Excessive Data Query Operations in a Large Data Table vulnerability](https://junglewise.ai/threats/cve-2025-0190-aim-excessive-data-query-operations-in-a-large-data-table)
- [PYSEC-2026-1089 - Aim Uncontrolled Resource Consumption vulnerability](https://junglewise.ai/threats/cve-2025-0189-aim-uncontrolled-resource-consumption-vulnerability)
- [PYSEC-2026-1094 - Aim Improper Access Control](https://junglewise.ai/threats/cve-2024-8238-aim-improper-access-control)
