A vulnerability was determined in FoundationAgents MetaGPT up to 0.8.1. The affected element is the function Bash.run in the library metagpt/tools/libs/terminal.py. This manipulation causes os command injection. The attack is possible to be carried out remotely. The project was informed of the problem early through a pull request but has not reacted yet.
MetaGPT versions up to 0.8.1 contain an OS command injection vulnerability in the Bash.run function that allows remote attackers to execute arbitrary commands. The vulnerability exists in the terminal.py library and can be exploited without authentication.
ثغرة حقن أوامر نظام التشغيل في مكتبة MetaGPT تسمح بتنفيذ أوامر عشوائية عبر دالة Bash.run في ملف terminal.py. يمكن استغلال الثغرة عن بعد دون الحاجة إلى مصادقة، مما يشكل خطراً كبيراً على الأنظمة التي تستخدم هذه المكتبة. فريق المشروع لم يستجب بعد للإبلاغ عن الثغرة.
إصدارات MetaGPT حتى 0.8.1 تحتوي على ثغرة حقن أوامر نظام التشغيل في دالة Bash.run التي تسمح للمهاجمين البعيدين بتنفيذ أوامر عشوائية. تتطلب الثغرة استغلالاً بسيطاً وتؤثر على مكتبة terminal.py.
Update MetaGPT to version 0.8.2 or later immediately. Implement input validation and sanitization for all user-supplied parameters passed to Bash.run. Restrict execution privileges and use sandboxing for terminal operations. Monitor for suspicious command execution patterns in logs.
قم بتحديث MetaGPT إلى الإصدار 0.8.2 أو أحدث فوراً. طبق التحقق من صحة المدخلات وتنظيفها لجميع المعاملات المرسلة إلى Bash.run. قيد صلاحيات التنفيذ واستخدم الحماية الرملية لعمليات الطرفية. راقب أنماط تنفيذ الأوامر المريبة في السجلات.