CVE DatabaseCVE-2025-21590
한국어 권고문 →
CVE-2025-215904.4/MEDIUMCISA KEVCWE-653

Juniper Networks Junos OS Kernel Improper Isolation Local Code Injection Vulnerability (CVE-2025-21590)

⚡ Jump to Patch
Affected Vendors
juniper
Affected Components
junos_os
Published Date
2025-03-12
CVSS v3.1
4.4
MEDIUM
EPSS (30d)
1.8%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Junos OS versions prior to 21.2R3-S9, 21.4R3-S10, 22.2R3-S6, 22.4R3-S6, 23.2R2-S3, 23.4R2-S4, and 24.2R1-S2/24.2R2

Impact

A highly privileged local attacker with shell access can inject arbitrary code to compromise the integrity of the device

Mitigation

Immediately upgrade to the recommended patched Junos OS releases and restrict local shell access to authorized administrators only

Affected Products & Version Scope

Junos OS: All versions before 21.2R3-S9; 21.4 before 21.4R3-S10; 22.2 before 22.2R3-S6; 22.4 before 22.4R3-S6; 23.2 before 23.2R2-S3; 23.4 before 23.4R2-S4; 24.2 before 24.2R1-S2, 24.2R2

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Apply the official security updates provided by Juniper Networks. Use the following CLI commands to download and install the patched Junos OS image:

bash
# Enter Junos OS CLI and install the secure software package
cli
request system software add reboot https://<internal-server>/junos-install-media-23.4R2-S4.tgz

2. Temporary Workaround & Hardening Configuration

If immediate patching is not feasible, strictly limit local shell access and audit all administrative accounts to prevent unauthorized shell execution.

bash
# Enter configuration mode to audit and restrict system login classes
configure
show system login
# Remove or downgrade privileges of unnecessary local accounts

3. Log Audit & IoC Verification Commands

Verify the current running version of Junos OS and inspect system logs for unauthorized shell access or suspicious activities.

bash
# Check the current Junos OS version
cli show version

# Audit system logs for shell access and privilege escalation attempts
file show /var/log/messages | match 'su|login|sh|bash'
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
NordLayer / Zero-Trust Network Access
Due to active exploitation in the wild (CISA KEV), immediately upgrade your Junos OS devices to the recommended patched releases.

Stop Exposing VPN Ports to the Internet — Switch to Zero-Trust Access

Eliminate public-facing VPN concentrators and firewall management ports with identity-first Zero-Trust Network Access.

90% Attack Surface Reduction · Hardware-Free

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2025-21590) is an Improper Isolation or Compartmentalization vulnerability (CWE-653) in the kernel of Juniper Networks Junos OS. It stems from a structural flaw where security boundaries within the kernel space are not properly enforced, allowing highly privileged local processes to bypass isolation barriers and access restricted memory or system structures.

2. Exploitation Mechanics & Attack Scenario

The vulnerability cannot be exploited directly via the standard Junos CLI. To execute this attack, an adversary must first obtain local shell access on the target device with high privileges. Once shell access is established, the attacker can leverage the lack of kernel-level compartmentalization to inject arbitrary code directly into the kernel space. This allows the attacker to bypass integrity checks, modify system behavior, and establish persistent access.

3. Infrastructure & Business Impact

As this vulnerability is listed in the CISA KEV catalog and has been actively exploited in the wild by advanced threat actors (such as China-nexus espionage groups), the risk to enterprise and carrier networks is critical. Successful exploitation allows attackers to compromise the integrity of core routing infrastructure, potentially leading to traffic interception, credential harvesting, and lateral movement within the internal network.

Official Vendor Advisories & References

NVD Original English Description

An Improper Isolation or Compartmentalization vulnerability in the kernel of Juniper Networks Junos OS allows a local attacker with high privileges to compromise the integrity of the device. A local attacker with access to the shell is able to inject arbitrary code which can compromise an affected device. This issue is not exploitable from the Junos CLI. This issue affects Junos OS:  * All versions before 21.2R3-S9, * 21.4 versions before 21.4R3-S10,  * 22.2 versions before 22.2R3-S6,  * 22.4 versions before 22.4R3-S6,  * 23.2 versions before 23.2R2-S3,  * 23.4 versions before 23.4R2-S4, * 24.2 versions before 24.2R1-S2, 24.2R2.

Frequently Asked SecOps Questions (CVE-2025-21590)

FAQ

Q1. How critical is CVE-2025-21590 and is it actively exploited in the wild?

CVE-2025-21590 is rated CVSS 4.4 (MEDIUM) with a 30-day EPSS exploitation probability of 1.8%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2025-21590?

Primary impacted vendors include juniper across junos_os. Scope summary: Junos OS: All versions before 21.2R3-S9; 21.4 before 21.4R3-S10; 22.2 before 22.2R3-S6; 22.4 before 22.4R3-S6; 23.2 before 23.2R2-S3; 23.4 before 23.4R2-S4; 24.2 before 24.2R1-S2, 24.2R2

Q3. What temporary mitigations or workarounds exist for CVE-2025-21590 before patching?

[Mitigation] Immediately upgrade to the recommended patched Junos OS releases and restrict local shell access to authorized administrators only Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2025-21590

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (juniper)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2025-21590 Juniper Networks Junos OS Kernel Improper Isolation Local Code Injection Vulnerability (CVE-2025-21590) (CVSS 4.4) - Patch & Workaround | CVE Pulse