CVE-2026-0761
Unknown Unknown - Not Provided
Code Injection in Foundation Agents MetaGPT Enables Remote Execution

Publication date: 2026-01-23

Last updated on: 2026-02-20

Assigner: Zero Day Initiative

Description
Foundation Agents MetaGPT actionoutput_str_to_mapping Code Injection Remote Code Execution Vulnerability. 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. Was ZDI-CAN-28124.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-01-23
Last Modified
2026-02-20
Generated
2026-05-06
AI Q&A
2026-01-23
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
deepwisdom metagpt 0.8.1
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a critical remote code execution flaw in Foundation Agents' MetaGPT product. It exists in the function actionoutput_str_to_mapping, where the software improperly validates a user-supplied string before executing it as Python code. Because of this, a remote attacker can send malicious input that gets executed on the system without needing to authenticate, allowing them to run arbitrary code with the same privileges as the service account running MetaGPT. [1]


How can this vulnerability impact me? :

Exploiting this vulnerability allows a remote attacker to execute arbitrary code on your system with the privileges of the MetaGPT service account. This can lead to a full compromise of the affected installation, including unauthorized access, data manipulation, or disruption of services. [1]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart