Access Control Bypass Affecting aim package, versions [3.0.0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Access Control Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-AIM-9511126
  • published24 Mar 2025
  • disclosed20 Mar 2025
  • creditBaron Crowley

Introduced: 20 Mar 2025

NewCVE-2024-8238  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

There is no fixed version for aim.

Overview

aim is a super-easy way to record, search and compare AI experiments.

Affected versions of this package are vulnerable to Access Control Bypass due to the use of an outdated safer_getattr function from RestrictedPython which fails to block the str.format_map method. An attacker can leak server-side secrets or execute arbitrary code by exploiting the ability of str.format_map to read arbitrary attributes of Python objects, thus accessing sensitive variables such as os.environ.

Note: This is only exploitable if an attacker can write files to a known location on the Aim server.

References

CVSS Base Scores

version 4.0
version 3.1