Advisory Details

January 9th, 2026

(0Day) Foundation Agents MetaGPT actionoutput_str_to_mapping Code Injection Remote Code Execution Vulnerability

ZDI-26-027
ZDI-CAN-28124

CVE ID CVE-2026-0761
CVSS SCORE 9.8, AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AFFECTED VENDORS Foundation Agents
AFFECTED PRODUCTS MetaGPT
VULNERABILITY DETAILS

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Foundation Agents MetaGPT. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the actionoutput_str_to_mapping function. The issue results from the lack of proper validation of a user-supplied string before using it to execute Python code. An attacker can leverage this vulnerability to execute code in the context of the service account.

ADDITIONAL DETAILS

09/19/25 – ZDI submitted the report to the vendor
10/14/25 – ZDI asked for updates
11/10/25 – ZDI asked for updates
12/09/25 – ZDI notified the vendor of the intention to publish the case as a 0-day advisory

-- Mitigation: Given the nature of the vulnerability, the only salient mitigation strategy is to restrict interaction with the product


DISCLOSURE TIMELINE
  • 2025-09-19 - Vulnerability reported to vendor
  • 2026-01-09 - Coordinated public release of advisory
  • 2026-01-09 - Advisory Updated
CREDIT Peter Girnus (@gothburz) and Brandon Niemczyk of Trend Zero Day Initiative
BACK TO ADVISORIES