Aim Vulnerable to Sandbox Escape Leading to Remote Code Execution
A vulnerability classified as critical was found in aimhubio aim up to 3.29.1. This vulnerability affects the function RestrictedPythonQuery of the file /aim/storage/query.py of the component run_view Object Handler. The manipulation of the argument Query leads to sandbox issue. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | aim | <= 3.29.1 | no fix |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-5321
- https://gist.github.com/superboy-zjc/1fc4747a0ac77a1edc8c32e1d4edc54c
- https://github.com/aimhubio/aim
- https://vuldb.com/?ctiid.310492
- https://vuldb.com/?id.310492
- https://vuldb.com/?submit.580253
- https://pypi.org/project/aim
- https://github.com/advisories/GHSA-gp5h-f9c5-8355
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L- Weakness (CWE)
CWE-94- Platform
- Python (PyPI)
- Package
aim- Disclosed
- 29.05.2025
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1088 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-gp5h-f9c5-8355 - CC BY 4.0
Vulnerability history: aim
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 20
- First → latest
- 11.2021 07.2025
- Without a fix
- 19
- Exploited in attacks
- 0
Severity breakdown
- Critical 4
- High 9
- Medium 6
- Low 1
Disclosures per year
- 2021: 1
- 2022: 0
- 2023: 0
- 2024: 5
- 2025: 14
- 2026: 0
-
Aim Vulnerable to Sandbox Escape Leading to Remote Code Execution this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.