MilleGPG5 5.7.2 contains a local privilege escalation vulnerability that allows authenticated users to modify service executable files in the MariaDB bin directory. Attackers can replace the mysqld.exe with a malicious executable, which will execute with system privileges when the computer restarts.
CVE-2021-47761 is a local privilege escalation vulnerability in MilleGPG5 5.7.2 that allows authenticated users to replace MariaDB executable files with malicious binaries, resulting in system-level code execution upon restart. With a CVSS score of 7.8, this vulnerability poses significant risk to organizations running MariaDB with improper file permissions. No public exploit is currently available, but a patch has been released.
1. IMMEDIATE ACTIONS:
- Identify all systems running MilleGPG5 5.7.2 and MariaDB installations
- Review file permissions on MariaDB bin directory (typically C:\Program Files\MariaDB\bin)
- Restrict write access to MariaDB executable directories to SYSTEM and administrators only
- Audit recent file modifications in MariaDB directories using Windows Event Logs
2. PATCHING GUIDANCE:
- Upgrade MilleGPG5 to version 5.7.3 or later immediately
- Apply latest MariaDB security patches
- Test patches in non-production environment first
- Schedule patching during maintenance windows with system restart
3. COMPENSATING CONTROLS:
- Implement strict file integrity monitoring (FIM) on MariaDB bin directories
- Enable Windows Audit Policy for object access on executable files
- Restrict local user account creation and privilege assignment
- Implement application whitelisting for mysqld.exe
- Monitor process execution logs for unauthorized mysqld.exe launches
4. DETECTION RULES:
- Alert on file modifications in MariaDB bin directory
- Monitor for mysqld.exe execution with unexpected parent processes
- Track privilege escalation attempts by authenticated users
- Log and alert on changes to service executable paths in registry (HKLM\SYSTEM\CurrentControlSet\Services\MySQL*)
1. الإجراءات الفورية:
- تحديد جميع الأنظمة التي تشغل MilleGPG5 5.7.2 و MariaDB
- مراجعة أذونات الملفات في دليل MariaDB bin
- تقييد الوصول للكتابة إلى أدلة ملفات MariaDB التنفيذية للنظام والمسؤولين فقط
- تدقيق التعديلات الأخيرة على الملفات باستخدام سجلات أحداث Windows
2. إرشادات التصحيح:
- ترقية MilleGPG5 إلى الإصدار 5.7.3 أو أحدث فوراً
- تطبيق أحدث تصحيحات أمان MariaDB
- اختبار التصحيحات في بيئة غير الإنتاج أولاً
- جدولة التصحيح خلال نوافذ الصيانة مع إعادة تشغيل النظام
3. الضوابط البديلة:
- تنفيذ مراقبة سلامة الملفات على أدلة MariaDB bin
- تفعيل سياسة تدقيق Windows لوصول الكائنات على الملفات التنفيذية
- تقييد إنشاء حسابات المستخدمين المحليين وتعيين الامتيازات
- تنفيذ قائمة بيضاء للتطبيقات لـ mysqld.exe
- مراقبة سجلات تنفيذ العمليات للإطلاقات غير المصرح بها
4. قواعد الكشف:
- تنبيهات على تعديلات الملفات في دليل MariaDB bin
- مراقبة تنفيذ mysqld.exe مع العمليات الأب غير المتوقعة
- تتبع محاولات تصعيد الامتيازات من قبل المستخدمين المصرحين
- تسجيل والتنبيه على التغييرات في مسارات الملفات التنفيذية للخدمة