CVE-2026-19058 FoundationAgents MetaGPT data_interpreter.py DataInterpreter code injection

Medium 4.8 Published Updated

A local attacker can execute arbitrary code via the DataInterpreter function in the MetaGPT library.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-19058?

CVE-2026-19058 is a medium-severity code injection vulnerability in FoundationAgents MetaGPT, published on 6 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability was found in FoundationAgents MetaGPT up to 0.8.2. The impacted element is the function DataInterpreter of the file metagpt/roles/di/data_interpreter.py. The manipulation results in code injection. The attack must be initiated from a local position. The exploit has been made public and could be used. The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-94, CWE-74

Which versions are affected by CVE-2026-19058?

How do I fix CVE-2026-19058?

No fix has been published for CVE-2026-19058 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-2026-19058 being exploited?

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

Sources

Also known as GHSA-5j3c-8q7x-589c.

Is CVE-2026-19058 in your software?

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

Check your SBOMs for free