Plex Media Server Remote Code Execution Vulnerability — Plex Media Server contains a remote code execution vulnerability that allows an attacker with access to the server administrator's Plex account to upload a malicious file via the Camera Upload feature and have the media server execute it.
CVE-2020-5741 is a critical remote code execution vulnerability in Plex Media Server (CVSS 9.0) that allows authenticated attackers with admin account access to execute arbitrary code by uploading malicious files through the Camera Upload feature. This vulnerability poses significant risk to organizations using Plex for media management, particularly those with weak credential controls. Immediate patching is essential as exploits are publicly available.
IMMEDIATE ACTIONS:
1. Identify all Plex Media Server instances in your environment and document their versions
2. Disable the Camera Upload feature immediately if not actively used
3. Restrict admin account access to trusted personnel only and enforce strong password policies
4. Monitor Plex server logs for suspicious file uploads or execution attempts
PATCHING:
1. Update Plex Media Server to version 1.19.5.3027 or later immediately
2. Verify patch installation by checking server version in Settings > About
3. Test functionality after patching in non-production environment first
COMPENSATING CONTROLS (if immediate patching not possible):
1. Disable Camera Upload feature via Settings > Remote Access > Camera Upload
2. Implement network segmentation to restrict Plex server access
3. Enable two-factor authentication on all Plex accounts with admin privileges
4. Implement file integrity monitoring on Plex server directories
DETECTION:
1. Monitor for unusual file uploads in Plex Camera Upload directory (/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/Uploads/)
2. Alert on process execution from Plex server process with suspicious parent-child relationships
3. Monitor network connections from Plex server to external IP addresses
4. Review Plex server logs for authentication anomalies or failed upload attempts
الإجراءات الفورية:
1. حدد جميع مثيلات خادم Plex Media Server في بيئتك وقم بتوثيق إصداراتها
2. عطّل ميزة تحميل الكاميرا فوراً إذا لم تكن قيد الاستخدام النشط
3. قصر وصول حساب المسؤول على الموظفين الموثوقين فقط وفرض سياسات كلمات مرور قوية
4. راقب سجلات خادم Plex للتحميلات أو محاولات التنفيذ المريبة
التصحيح:
1. قم بتحديث خادم Plex Media Server إلى الإصدار 1.19.5.3027 أو أحدث فوراً
2. تحقق من تثبيت التصحيح بالتحقق من إصدار الخادم في الإعدادات > حول
3. اختبر الوظائف بعد التصحيح في بيئة غير الإنتاج أولاً
الضوابط البديلة (إذا لم يكن التصحيح الفوري ممكناً):
1. عطّل ميزة تحميل الكاميرا عبر الإعدادات > الوصول البعيد > تحميل الكاميرا
2. تطبيق تقسيم الشبكة لتقييد وصول خادم Plex
3. تفعيل المصادقة متعددة العوامل على جميع حسابات Plex ذات امتيازات المسؤول
4. تطبيق مراقبة سلامة الملفات على أدلة خادم Plex
الكشف:
1. راقب التحميلات غير العادية في دليل تحميل كاميرا Plex
2. تنبيهات على تنفيذ العمليات من عملية خادم Plex مع علاقات الوالد والطفل المريبة
3. راقب الاتصالات الشبكية من خادم Plex إلى عناوين IP الخارجية
4. راجع سجلات خادم Plex للشذوذ في المصادقة أو محاولات التحميل الفاشلة