IBM Db2 11.5.0 through 11.5.9, and 12.1.0 through 12.1.4 for Linux, UNIX and Windows (includes Db2 Connect Server) could allow an authenticated user to cause a denial of service due to improper neutralization of special elements in data query logic.
IBM Db2 versions 11.5.0-11.5.9 and 12.1.0-12.1.4 contain a denial of service vulnerability affecting authenticated users through improper handling of special elements in SQL queries. While currently unpatched and without public exploits, this vulnerability poses operational risk to organizations relying on Db2 for critical data operations. The medium CVSS score (6.5) reflects the requirement for authentication, but the lack of available patches necessitates immediate compensating controls.
Immediate Actions:
1. Inventory all IBM Db2 instances across the organization, documenting versions 11.5.0-11.5.9 and 12.1.0-12.1.4
2. Restrict database access to only necessary authenticated users and service accounts
3. Implement principle of least privilege for all database user roles
4. Monitor for suspicious SQL query patterns that may exploit this vulnerability
Compensating Controls (until patch available):
5. Deploy database activity monitoring (DAM) solutions to detect anomalous query patterns
6. Implement query validation and sanitization at the application layer
7. Configure database query timeouts to prevent long-running malicious queries
8. Enable comprehensive audit logging for all database connections and queries
9. Segment database networks to limit lateral movement from compromised applications
10. Conduct access reviews to remove unnecessary database privileges
Detection Rules:
- Alert on queries containing unusual special characters or escape sequences in WHERE clauses
- Monitor for repeated failed query executions from single user accounts
- Track database CPU and memory spikes correlating with specific user sessions
- Flag queries with execution times exceeding baseline thresholds
الإجراءات الفورية:
1. حصر جميع نسخ IBM Db2 في المنظمة، مع توثيق الإصدارات 11.5.0-11.5.9 و12.1.0-12.1.4
2. تقييد الوصول إلى قاعدة البيانات للمستخدمين والحسابات الخدمية الضرورية فقط
3. تطبيق مبدأ الامتياز الأدنى لجميع أدوار مستخدمي قاعدة البيانات
4. مراقبة أنماط استعلامات SQL المريبة التي قد تستغل هذه الثغرة
الضوابط التعويضية (حتى توفر التصحيح):
5. نشر حلول مراقبة نشاط قاعدة البيانات للكشف عن أنماط الاستعلامات الشاذة
6. تطبيق التحقق من صحة الاستعلامات والتطهير على مستوى التطبيق
7. تكوين مهلات زمنية لاستعلامات قاعدة البيانات لمنع الاستعلامات الضارة طويلة الأجل
8. تفعيل تسجيل التدقيق الشامل لجميع اتصالات واستعلامات قاعدة البيانات
9. تقسيم شبكات قاعدة البيانات لتحديد الحركة الجانبية من التطبيقات المخترقة
10. إجراء مراجعات الوصول لإزالة امتيازات قاعدة البيانات غير الضرورية
قواعد الكشف:
- تنبيهات على الاستعلامات التي تحتوي على أحرف خاصة غير عادية أو تسلسلات هروب في جمل WHERE
- مراقبة محاولات الاستعلام الفاشلة المتكررة من حسابات مستخدم واحد
- تتبع ارتفاعات CPU والذاكرة في قاعدة البيانات المرتبطة بجلسات مستخدم محددة
- وضع علامات على الاستعلامات التي تتجاوز أوقات التنفيذ خطوط الأساس