CVE-2025-51472 Code injection in n/a

Medium 6.5 Published Updated

Remote attackers can execute arbitrary Python code in SuperAGI by injecting malicious values into agent template configuration fields.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-51472?

CVE-2025-51472 is a medium-severity code injection vulnerability in n/a, published on 22 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Code Injection in AgentTemplate.eval_agent_config in TransformerOptimus SuperAGI 0.0.14 allows remote attackers to execute arbitrary Python code via malicious values in agent template configurations such as the goal, constraints, or instruction field, which are evaluated using eval() without validation during template loading or updates.

Weakness: CWE-77

Which versions are affected by CVE-2025-51472?

It affects 1 product.

Products include Superagi Superagi.

How do I fix CVE-2025-51472?

No fix has been published for CVE-2025-51472 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-51472 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-51472 exists.

Sources

Also known as GHSA-72jx-rhg9-xgfw.

Is CVE-2025-51472 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free