CVE-2026-21901: Juniper Junos OS Management Daemon DoS via SSH Config
A flaw in Juniper Networks Junos OS and Junos OS Evolved allows a local administrator or privileged user to crash the management daemon by configuring or deactivating a specific SSH parameter. The vulnerability stems from improper handling of configuration data, where the system attempts to access memory that hasn't been allocated. Repeating the misconfiguration causes the daemon to restart repeatedly, disrupting management access. Only users with high-level administrative privileges can trigger this issue, and patched versions are available from Juniper.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 4.4 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
- Weaknesses (CWE)
- CWE-476
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-07-09 / 2026-07-10
NVD description (verbatim)
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.
3 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-21901 is a NULL pointer dereference (CWE-476) in the management daemon (mgd) of Juniper Junos OS and Junos OS Evolved. When a high-privileged local user sets or deactivates a specific SSH configuration parameter via 'system services ssh', the SSH subsystem function fails to validate that a pointer is valid before dereferencing it. This results in a segmentation fault, crashing mgd and triggering an automatic restart. Repetitive execution of the problematic configuration command sustains a denial-of-service condition, preventing legitimate administrative operations until the offending configuration is corrected.
Business impact
This vulnerability creates a management plane outage risk for organizations running affected Junos versions. A disgruntled or compromised high-privileged administrator could repeatedly crash the management daemon, blocking legitimate configuration changes, monitoring, and troubleshooting until the issue is mitigated. While the vulnerability requires local access and administrative credentials, it can temporarily disable critical administrative functions on production routers and firewalls. Organizations dependent on continuous management access should prioritize patching to avoid potential operational disruption.
Affected systems
Junos OS versions 22.3 (before 22.3R3-S5), 22.4 (before 22.4R3-S10), 23.2 (before 23.2R2-S7), and 23.4 (before 23.4R2-S8) are affected. Junos OS Evolved is affected in versions 22.3R1-EVO through 23.2R2-S7-EVO and 23.4 before 23.4R2-S8-EVO. Junos OS versions prior to 22.3R1 and Junos OS Evolved prior to 22.3R1-EVO are not vulnerable. Verify your running Junos version to determine exposure.
Exploitability
Exploitation requires local access and high-privilege credentials (typically a system administrator role). The attacker must have the ability to issue configuration commands via SSH or console access. There is no remote exploitation vector. The technical barrier to triggering the crash is low—a single malformed or deactivated SSH configuration parameter is sufficient. However, the privilege requirement significantly limits the threat surface to internal actors or external attackers who have already compromised an administrative account.
Remediation
Upgrade to a patched Junos OS release: 22.3R3-S5 or later for the 22.3 branch, 22.4R3-S10 or later for 22.4, 23.2R2-S7 or later for 23.2, or 23.4R2-S8 or later for 23.4. For Junos OS Evolved, upgrade to 23.2R2-S7-EVO or 23.4R2-S8-EVO or later. Until patching is possible, restrict SSH configuration changes to trusted administrators, monitor mgd process restarts for anomalies, and maintain current backups of running configurations to facilitate rapid recovery if the issue occurs.
Patch guidance
Juniper has released patched versions across all affected major releases. Identify your current Junos version using 'show version' from operational mode. Plan a maintenance window for the upgrade, as Junos OS updates typically require a reboot. Test patches in a non-production environment first to ensure compatibility with your deployed features and scripts. Juniper's security advisories will contain specific version numbers and any known issues with each patch release; consult those before deployment. Prioritize systems in critical paths where management daemon availability directly impacts network operations.
Detection guidance
Monitor Junos syslog for repeated mgd process restarts and crashes, particularly correlating with SSH configuration change attempts. Enable debugging on the SSH subsystem if investigating suspected exploitation. Audit user accounts with high-privilege SSH access and review configuration change logs for suspicious or repeated attempts to modify 'system services ssh' parameters. Network-based detection is limited since the attack vector is local; focus on endpoint logging and access controls to identify unauthorized administrative activity.
Why prioritize this
Although the CVSS score is moderate (4.4) and the vulnerability requires high-privilege local access, the management plane impact and simplicity of triggering a sustained denial of service make this worth prioritizing in patch cycles. The vulnerability is not in the publicly disclosed KEV catalog, but organizations should still address it to protect against insider threats and compromised administrator accounts. The fix is available and straightforward to deploy, reducing deployment risk.
Risk score, explained
The CVSS v3.1 score of 4.4 (MEDIUM) reflects the combination of local-only attack vector, high privilege requirement, low complexity, and high availability impact with no confidentiality or integrity breach. While the score is not critical, the ability to disable management access on network infrastructure devices elevates business risk beyond the numerical score alone. Organizations should weigh this against their tolerance for management plane disruptions and the maturity of their insider-threat programs.
Frequently asked questions
Can a remote attacker exploit this vulnerability?
No. CVE-2026-21901 requires local access and high-privilege credentials. It cannot be exploited over the network. An attacker would need to have already compromised an administrative account or have physical access to the device console.
What happens if we apply this patch? Do we need to reboot?
Upgrading Junos OS typically requires a device reboot. Plan a maintenance window accordingly. The patch fixes the null pointer dereference in the mgd SSH handling code, eliminating the crash condition. After patching and rebooting, the vulnerability is remediated. Verify the new version is running using 'show version'.
Is there a workaround if we cannot patch immediately?
Workarounds are limited because the vulnerability requires modifying 'system services ssh' configuration. Mitigation strategies include restricting SSH configuration privileges to a small set of trusted administrators, disabling remote SSH configuration changes, and relying on console access only for sensitive configuration edits. These controls reduce risk but do not eliminate the vulnerability.
How do we know if we've been exploited?
Evidence of exploitation would include unexpected mgd process crashes and restarts visible in Junos syslog, often clustered around timestamps of configuration attempts. Audit your configuration change logs for unexpected 'system services ssh' parameter modifications. If you observe repeated mgd restarts without a clear operational reason, investigate whether unauthorized administrative activity occurred.
This analysis is provided for informational purposes and reflects the vulnerability details as of the publication date. Security decisions should be informed by your organization's risk tolerance, asset inventory, and operational constraints. Always verify patch applicability and compatibility against Juniper's official security advisory and release notes before deployment. SEC.co does not provide legal advice; consult your organization's legal and compliance teams regarding regulatory notification obligations if applicable. Source: NVD (public-domain), retrieved 2026-08-17. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2025-55639MEDIUMGPAC MP4Box NULL Pointer Dereference Denial of Service
- CVE-2025-55641MEDIUMNULL Pointer Dereference in GPAC MP4Box v2.4 Denial of Service
- CVE-2025-55643MEDIUMGPAC MP4Box NULL Pointer DoS Vulnerability
- CVE-2025-55649MEDIUMGPAC MP4Box NULL Pointer DoS Vulnerability
- CVE-2025-55651MEDIUMGPAC MP4Box NULL Pointer Dereference DoS Vulnerability
- CVE-2025-55659MEDIUMGPAC MP4Box NULL Pointer Denial of Service
- CVE-2025-55663MEDIUMMP4Box Segmentation Fault DoS Vulnerability – GPAC v2.4
- CVE-2025-60473MEDIUMMP4Box Null Pointer DoS Vulnerability – GPAC Patching Guide