# CVE-2025-5321: aimhubio aim run_view Object query.py RestrictedPythonQuery privilege escalation

- Severity: Medium 5.3 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-05-29T15:00:06.375Z
- Modified: 2026-09-10T03:50:57.590Z
- Also known as: GHSA-gp5h-f9c5-8355, PYSEC-2026-1088
- Weaknesses: CWE-94, CWE-264, CWE-265
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

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 Abfrage leads to erweiterte Rechte. 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.

(As written by CVE List.)

## Affected

- aimhubio aim: 3.29.0; 3.29.1
- aim (PyPI): up to 3.29.1
- aimstack aim: up to 3.29.1

## Every score

- VulDB: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`
- VulDB: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`
- GitHub: CVSS:3.1 6.3 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`

## References

- <https://gist.github.com/superboy-zjc/1fc4747a0ac77a1edc8c32e1d4edc54c> (exploit, third-party-advisory, web)
- <https://vuldb.com/?id.310492> (technical-description, third-party-advisory, vdb-entry, web)
- <https://vuldb.com/?ctiid.310492> (permissions-required, signature, vdb-entry, web)
- <https://vuldb.com/?submit.580253> (third-party-advisory, vdb-entry, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-5321> (advisory)
- <https://github.com/aimhubio/aim> (package)
- <https://pypi.org/project/aim> (package)
- <https://github.com/advisories/GHSA-gp5h-f9c5-8355> (advisory)

## Sources

- CVE List: [CVE-2025-5321](https://www.cve.org/CVERecord?id=CVE-2025-5321), CVE Terms of Use, modified 2025-06-01
- GitHub Advisory Database: [GHSA-gp5h-f9c5-8355](https://github.com/advisories/GHSA-gp5h-f9c5-8355), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-5321](https://nvd.nist.gov/vuln/detail/CVE-2025-5321), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1088](https://osv.dev/vulnerability/PYSEC-2026-1088), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-5321 · Whole record: https://cve.day/CVE-2025-5321.json · Rebuilt by cve.day 2026-11-25T22:58:58.557Z
