PT-2024-20056 · Metagpt · Metagpt

Fubuki8087

·

Published

2024-01-21

·

Updated

2024-01-29

·

CVE-2024-23750

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions MetaGPT versions 0.6.4 and earlier
Description The issue allows the QaEngineer role to execute arbitrary code because RunCode.run script() passes shell metacharacters to subprocess.Popen. This enables potential exploitation, but specific details about the number of affected devices or real-world incidents are not provided.
Recommendations For MetaGPT versions 0.6.4 and earlier, as a temporary workaround, consider restricting the QaEngineer role's access to the RunCode.run script() function until a patch is available. Additionally, avoid passing user-controlled input to subprocess.Popen to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this issue.

Exploit

Fix

Code Injection

Weakness Enumeration

Related Identifiers

CVE-2024-23750
GHSA-G7PH-8423-PF4J
PYSEC-2024-9

Affected Products

Metagpt