CVE-2024-8238
Python vulnerability analysis and mitigation

Overview

CVE-2024-8238 affects version 3.22.0 of aimhubio/aim, specifically in its AimQL query language implementation. The vulnerability stems from using an outdated version of the safer_getattr() function from RestrictedPython, which was discovered and disclosed in March 2024 (NVD).

Technical details

The vulnerability exists because the outdated safergetattr() function does not provide protection against the str.formatmap() method. This implementation flaw allows the str.format_map() method to read arbitrary attributes of Python objects. The severity is rated as MEDIUM with a CVSS v3.0 base score of 5.9 (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N) (NVD).

Impact

The vulnerability enables attackers to access sensitive variables such as os.environ, potentially leading to the exposure of server-side secrets. If an attacker can write files to a known location on the Aim server, they could leverage str.format_map() to load malicious .dll/.so files into the Python interpreter, potentially achieving unrestricted code execution (NVD).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management