Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. aim
  4. ›
  5. CVE-2025-5321

CVE-2025-5321: Aim Vulnerable to Sandbox Escape Leading to Remote Code Execution

May 29, 2025 (updated June 5, 2025)

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.

References

  • gist.github.com/superboy-zjc/1fc4747a0ac77a1edc8c32e1d4edc54c
  • github.com/advisories/GHSA-gp5h-f9c5-8355
  • github.com/aimhubio/aim
  • nvd.nist.gov/vuln/detail/CVE-2025-5321
  • vuldb.com/?ctiid.310492
  • vuldb.com/?id.310492
  • vuldb.com/?submit.580253

Code Behaviors & Features

Detect and mitigate CVE-2025-5321 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 3.29.1

Solution

Unfortunately, there is no solution available yet.

Impact 6.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/aim/CVE-2025-5321.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:06 +0000.