A Key Exchange without Entity Authentication vulnerability in the SSH implementation of Juniper Networks Apstra allows a unauthenticated, MITM
attacker to impersonate managed devices.
Due to insufficient SSH host key validation an attacker can perform a machine-in-the-middle attack on the SSH connections from Apstra to managed devices, enabling an attacker to impersonate a managed device and capture user credentials.
This issue affects all versions of Apstra before 6.1.1.
CVE-2025-13914 is a critical SSH authentication bypass vulnerability in Juniper Networks Apstra that allows unauthenticated attackers to perform man-in-the-middle attacks on SSH connections to managed devices. The vulnerability stems from insufficient SSH host key validation, enabling attackers to impersonate managed devices and capture user credentials. All Apstra versions before 6.1.1 are affected, with no patch currently available, making this an urgent threat to network infrastructure management.
Immediate Actions:
1. Identify all Apstra deployments in your environment and document versions (all versions <6.1.1 are vulnerable)
2. Isolate Apstra management servers from untrusted networks; restrict SSH access to managed devices through Apstra to authorized networks only
3. Implement network segmentation: place Apstra servers and managed devices on isolated VLANs with strict firewall rules
4. Enable SSH connection logging and monitoring for all Apstra-to-device communications
Compensating Controls (until patch available):
5. Deploy SSH proxy/bastion host between Apstra and managed devices with strict host key pinning and validation
6. Implement certificate-based authentication where possible; disable password-based SSH authentication
7. Monitor for suspicious SSH connections: failed authentication attempts, unexpected source IPs, unusual command patterns
8. Use VPN/IPSec tunnels for all Apstra-to-device communications to prevent MITM attacks
9. Implement SSH host key verification scripts on managed devices to detect unauthorized connections
Detection Rules:
10. Alert on SSH connections from Apstra servers with mismatched host keys
11. Monitor for multiple failed SSH authentication attempts from Apstra management interface
12. Track changes to SSH authorized_keys files on managed devices
13. Log all credential usage originating from Apstra management sessions
Patching:
14. Upgrade to Apstra 6.1.1 or later immediately upon availability
15. Test patches in isolated lab environment before production deployment
الإجراءات الفورية:
1. حدد جميع نشرات Apstra في بيئتك وقثق الإصدارات (جميع الإصدارات <6.1.1 معرضة للخطر)
2. عزل خوادم إدارة Apstra عن الشبكات غير الموثوقة؛ قيد وصول SSH للأجهزة المدارة عبر Apstra إلى الشبكات المصرح بها فقط
3. تنفيذ تقسيم الشبكة: ضع خوادم Apstra والأجهزة المدارة على شبكات VLAN معزولة مع قواعد جدار حماية صارمة
4. تفعيل تسجيل المراقبة لجميع اتصالات Apstra إلى الأجهزة
الضوابط البديلة (حتى توفر التصحيح):
5. نشر وكيل SSH/خادم حصن بين Apstra والأجهزة المدارة مع تثبيت مفاتيح المضيف الصارم والتحقق
6. تنفيذ المصادقة القائمة على الشهادات حيث أمكن؛ تعطيل المصادقة القائمة على كلمة المرور SSH
7. مراقبة اتصالات SSH المريبة: محاولات المصادقة الفاشلة، عناوين IP غير المتوقعة، أنماط الأوامر غير العادية
8. استخدم نفق VPN/IPSec لجميع اتصالات Apstra إلى الأجهزة لمنع هجمات MITM
9. تنفيذ نصوص التحقق من مفاتيح مضيف SSH على الأجهزة المدارة للكشف عن الاتصالات غير المصرح بها
قواعد الكشف:
10. تنبيه على اتصالات SSH من خوادم Apstra مع عدم تطابق مفاتيح المضيف
11. مراقبة محاولات المصادقة الفاشلة المتعددة من واجهة إدارة Apstra
12. تتبع التغييرات في ملفات authorized_keys على الأجهزة المدارة
13. تسجيل جميع استخدام بيانات الاعتماد من جلسات إدارة Apstra
التصحيح:
14. ترقية إلى Apstra 6.1.1 أو أحدث فوراً عند توفره
15. اختبر التصحيحات في بيئة معملية معزولة قبل نشر الإنتاج