CVE-2026-4515: Foundation Agents MetaGPT operator.py code_generate code injection

Published Mar 21, 2026
·
Updated

A vulnerability has been found in Foundation Agents MetaGPT up to 0.8.1. This affects the function codegenerate of the file metagpt/ext/aflow/scripts/operator.py. The manipulation leads to code injection. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

Affected Software

2 affected components
pypi/metagpt<=0.8.1
Deepwisdom Metagpt<=0.8.1

Event History

Mar 21, 2026
CVE Published
via MITRE·11:32 AM
Data Sourced
via MITRE·11:32 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-4515?

CVE-2026-4515 has a high severity level due to its potential for code injection attacks.

2

How do I fix CVE-2026-4515?

To fix CVE-2026-4515, update Foundation Agents MetaGPT to version 0.8.2 or later.

3

What versions are affected by CVE-2026-4515?

CVE-2026-4515 affects Foundation Agents MetaGPT versions up to and including 0.8.1.

4

What is the impact of exploiting CVE-2026-4515?

Exploiting CVE-2026-4515 allows an attacker to perform arbitrary code injection through the code_generate function.

5

Is there a workaround for CVE-2026-4515?

Currently, the recommended mitigation for CVE-2026-4515 is to upgrade to a secured version rather than relying on a workaround.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203