Skip to main content
HIGH

CVE-2024-8238

CVSS v3

8.1

HIGH

EPSS Score

0.8 %

exploit probability, as of 2026-10-18

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for aim.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • aimPyPIfrom 3.0.0 · no fixed version listed

Full record on NVD

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

Published
2025-03-20

Frequently asked questions

What is CVE-2024-8238?

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.

Is CVE-2024-8238 actively exploited?

Active exploitation of CVE-2024-8238 has not been confirmed. Its EPSS score was 0.8% on 2026-10-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-8238?

CVE-2024-8238 has a CVSS v3 base score of 8.1 (HIGH severity).

Running aim? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month