CVE-2026-21901 Junos OS and Junos OS Evolved: Configuration of a specific SSH option results in mgd crash

Medium 6.7 Published Updated

A local high-privileged attacker can cause a denial of service by triggering a null pointer dereference in the management daemon via specific SSH configuration changes.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-21901?

CVE-2026-21901 is a medium-severity vulnerability in Juniper Junos, published on 9 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A NULL Pointer Dereference vulnerability in the management daemon (mgd) of Juniper Networks Junos OS and Junos OS Evolved allows a local, high-privileged attacker setting or deactivating a specific SSH configuration parameter to create a Denial of Service (DoS).

A local high-privileged user configuring or deactivating a specific 'system services ssh' configuration parameter can exploit a null pointer dereference in one of the functions used by SSH. The function attempts to dereference a null pointer when accessing certain configuration data, resulting in an mgd process crash and restart. Continued execution of these configuration commands will create a sustained Denial of Service (DoS) condition.

This issue affects: Junos OS:

* from 22.3 before 22.3R3-S5; * from 22.4 before 22.4R3-S10; * from 23.2 before 23.2R2-S7; * from 23.4 before 23.4R2-S8.

This issue does not affect Junos OS before 22.3R1.

Junos OS Evolved: * from 22.3R1-EVO before 23.2R2-S7-EVO; * from 23.4 before 23.4R2-S8-EVO.

This issue does not affect Junos OS Evolved before 22.3R1-EVO.

Weakness: CWE-476

Which versions are affected by CVE-2026-21901?

It affects 2 products.

Products include Juniper Junos, Juniper Junos Os Evolved.

How do I fix CVE-2026-21901?

No fix has been published for CVE-2026-21901 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-21901 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-21901 exists.

All Juniper Junos vulnerabilities

Sources

Is CVE-2026-21901 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free