Improper neutralization of input in Checkmk versions 2.4.0 before 2.4.0p22, and 2.3.0 before 2.3.0p43 allows an attacker that can manipulate a host's check output to inject malicious JavaScript into the Synthetic Monitoring HTML logs, which can then be accessed via a crafted phishing link.
CVE-2025-64999 is a stored cross-site scripting (XSS) vulnerability in Checkmk monitoring software affecting versions 2.3.0 before p43 and 2.4.0 before p22. An attacker with the ability to manipulate host check outputs can inject malicious JavaScript into Synthetic Monitoring HTML logs, which executes when accessed via phishing links. While currently unpatched, the attack requires internal access to manipulate check outputs, limiting immediate external threat but posing significant risk to monitoring infrastructure integrity.
Immediate Actions:
1. Identify all Checkmk instances in your environment running versions 2.3.0 (before p43) or 2.4.0 (before p22)
2. Restrict access to Checkmk monitoring interfaces to authorized personnel only
3. Implement network segmentation to isolate Checkmk infrastructure from untrusted networks
4. Review and audit all monitoring agent configurations for unauthorized modifications
Patching Guidance:
1. Upgrade Checkmk 2.3.0 installations to version 2.3.0p43 or later
2. Upgrade Checkmk 2.4.0 installations to version 2.4.0p22 or later
3. Test patches in non-production environments before deployment
4. Schedule maintenance windows for production upgrades
Compensating Controls (if patching delayed):
1. Implement Web Application Firewall (WAF) rules to detect and block JavaScript injection patterns in Checkmk logs
2. Deploy Content Security Policy (CSP) headers to prevent inline script execution
3. Enforce strict input validation on all monitoring agent outputs
4. Implement HTML entity encoding for all user-controllable data in log displays
5. Use security headers: X-Content-Type-Options: nosniff, X-Frame-Options: DENY
Detection Rules:
1. Monitor for suspicious JavaScript patterns in check output data: <script>, javascript:, onerror=, onload=
2. Alert on unusual modifications to monitoring agent configurations
3. Track access to Synthetic Monitoring HTML logs from external or suspicious sources
4. Monitor for phishing emails containing Checkmk log links with encoded payloads
5. Implement SIEM rules to detect XSS payload indicators in Checkmk API calls and log submissions
الإجراءات الفورية:
1. تحديد جميع مثيلات Checkmk في بيئتك التي تعمل بالإصدارات 2.3.0 (قبل p43) أو 2.4.0 (قبل p22)
2. تقييد الوصول إلى واجهات مراقبة Checkmk للموظفين المصرح لهم فقط
3. تنفيذ تقسيم الشبكة لعزل بنية Checkmk الأساسية عن الشبكات غير الموثوقة
4. مراجعة وتدقيق جميع تكوينات وكيل المراقبة للتعديلات غير المصرح بها
إرشادات التصحيح:
1. ترقية تثبيتات Checkmk 2.3.0 إلى الإصدار 2.3.0p43 أو أحدث
2. ترقية تثبيتات Checkmk 2.4.0 إلى الإصدار 2.4.0p22 أو أحدث
3. اختبار التصحيحات في بيئات غير الإنتاج قبل النشر
4. جدولة نوافذ الصيانة لترقيات الإنتاج
الضوابط البديلة (إذا تأخر التصحيح):
1. تنفيذ قواعد جدار حماية تطبيقات الويب (WAF) للكشف عن أنماط حقن JavaScript وحجبها في سجلات Checkmk
2. نشر رؤوس سياسة الأمان (CSP) لمنع تنفيذ البرامج النصية المضمنة
3. فرض التحقق الصارم من الإدخال على جميع مخرجات وكيل المراقبة
4. تنفيذ ترميز كيان HTML لجميع البيانات القابلة للتحكم من قبل المستخدم في عروض السجل
5. استخدام رؤوس الأمان: X-Content-Type-Options: nosniff, X-Frame-Options: DENY
قواعد الكشف:
1. مراقبة أنماط JavaScript المريبة في بيانات مخرجات الفحص: <script>, javascript:, onerror=, onload=
2. التنبيه على التعديلات غير العادية على تكوينات وكيل المراقبة
3. تتبع الوصول إلى سجلات المراقبة الاصطناعية من مصادر خارجية أو مريبة
4. مراقبة رسائل البريد الإلكتروني للتصيد الاحتيالي التي تحتوي على روابط سجل Checkmk بحمولات مشفرة
5. تنفيذ قواعس SIEM للكشف عن مؤشرات حمولة XSS في استدعاءات Checkmk API وتقديمات السجل