Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-8238: CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine in aimhubio aimhubio/aim

0
Medium
VulnerabilityCVE-2024-8238cvecve-2024-8238cwe-1336
Published: Thu Mar 20 2025 (03/20/2025, 10:11:09 UTC)
Source: CVE Database V5
Vendor/Project: aimhubio
Product: aimhubio/aim

Description

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.

Technical Details

Data Version
5.1
Assigner Short Name
@huntr_ai
Date Reserved
2024-08-27T18:43:22.990Z
Cvss Version
3.0
State
PUBLISHED

Threat ID: 68ef9b2d178f764e1f470e4d

Added to database: 10/15/2025, 1:01:33 PM

Last updated: 10/15/2025, 1:04:59 PM

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats