A flaw has been found in PromtEngineer localGPT up to 4d41c7d1713b16b216d8e062e51a5dd88b20b054. The affected element is the function do_POST of the file backend/server.py. This manipulation causes unrestricted upload. The attack is possible to be carried out remotely. The exploit has been published and may be used. This product adopts a rolling release strategy to maintain continuous delivery. Therefore, version details for affected or updated releases cannot be specified. The vendor was contacted early about this disclosure but did not respond in any way.
CVE-2026-5001 is a critical file upload vulnerability in PromtEngineer localGPT affecting the backend/server.py do_POST function, allowing unrestricted file uploads without proper access controls (CWE-284). With a CVSS score of 7.3 and publicly disclosed exploit code, this vulnerability poses significant risk to organizations deploying localGPT for AI/ML workloads. No patch is currently available from the vendor, requiring immediate compensating controls and alternative solutions.
IMMEDIATE ACTIONS:
1. Disable or isolate all localGPT instances from production environments until mitigation is confirmed
2. Conduct forensic analysis of upload directories for suspicious files (check timestamps, file types, sizes)
3. Review access logs for do_POST endpoint (backend/server.py) for unauthorized upload attempts
4. Implement network segmentation to restrict localGPT server access to trusted networks only
COMPENSATING CONTROLS:
1. Deploy Web Application Firewall (WAF) rules to block POST requests to /upload or file upload endpoints
2. Implement strict file type validation at network layer (whitelist only expected file extensions)
3. Configure file upload directory with read-only permissions and disable script execution
4. Enable comprehensive logging and monitoring of all file operations
5. Implement rate limiting on POST requests to backend/server.py
DETECTION RULES:
1. Monitor for POST requests to backend/server.py with unusual Content-Type headers
2. Alert on file uploads exceeding expected size thresholds
3. Detect execution of uploaded files in upload directories
4. Flag access to do_POST function from non-whitelisted IP ranges
5. Monitor for suspicious file extensions in upload directories (.exe, .sh, .py, .jsp)
LONG-TERM:
1. Evaluate alternative AI/ML frameworks with better security posture
2. Consider commercial localGPT alternatives with vendor support
3. Implement code review process for open-source AI tools before deployment
الإجراءات الفورية:
1. تعطيل أو عزل جميع مثيلات localGPT عن بيئات الإنتاج حتى يتم تأكيد التخفيف
2. إجراء تحليل جنائي لمجلدات التحميل بحثاً عن ملفات مريبة (التحقق من الطوابع الزمنية وأنواع الملفات والأحجام)
3. مراجعة سجلات الوصول لنقطة نهاية do_POST (backend/server.py) للبحث عن محاولات تحميل غير مصرح بها
4. تنفيذ تقسيم الشبكة لتقييد وصول خادم localGPT إلى الشبكات الموثوقة فقط
الضوابط التعويضية:
1. نشر قواعد جدار حماية تطبيقات الويب (WAF) لحظر طلبات POST إلى نقاط نهاية التحميل
2. تنفيذ التحقق الصارم من نوع الملف على مستوى الشبكة (قائمة بيضاء بامتدادات الملفات المتوقعة فقط)
3. تكوين مجلد التحميل بأذونات القراءة فقط وتعطيل تنفيذ البرامج النصية
4. تفعيل السجلات الشاملة ومراقبة جميع عمليات الملفات
5. تنفيذ تحديد معدل الطلبات على طلبات POST إلى backend/server.py
قواعد الكشف:
1. مراقبة طلبات POST إلى backend/server.py برؤوس Content-Type غير عادية
2. التنبيه على تحميلات الملفات التي تتجاوز حدود الحجم المتوقعة
3. كشف تنفيذ الملفات المرفوعة في مجلدات التحميل
4. وضع علامة على الوصول إلى وظيفة do_POST من نطاقات IP غير موثوقة
5. مراقبة امتدادات الملفات المريبة في مجلدات التحميل (.exe, .sh, .py, .jsp)