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

CVE-2024-8238: Aim Improper Access Control

March 20, 2025

In version 3.22.0 of aimhubio/aim, the AimQL query language uses an outdated version of the safer_getattr() function from RestrictedPython. This version does not protect against the str.format_map() method, allowing an attacker to leak server-side secrets or potentially gain unrestricted code execution. The vulnerability arises because str.format_map() can read arbitrary attributes of Python objects, enabling attackers to access sensitive variables such as os.environ. If an attacker can write files to a known location on the Aim server, they can use str.format_map() to load a malicious .dll/.so file into the Python interpreter, leading to unrestricted code execution.

References

  • github.com/advisories/GHSA-r229-5wgf-f28g
  • github.com/aimhubio/aim
  • github.com/aimhubio/aim/blob/main/aim/storage/query.py
  • huntr.com/bounties/4e140ef9-f6d1-4e68-a44c-3b9e856924d3
  • nvd.nist.gov/vuln/detail/CVE-2024-8238

Code Behaviors & Features

Detect and mitigate CVE-2024-8238 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 starting from 3.0.0 up to 3.22.0

Solution

Unfortunately, there is no solution available yet.

Impact 5.9 MEDIUM

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control

Source file

pypi/aim/CVE-2024-8238.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:16:02 +0000.