Junos OS: An local attacker with shell access can execute arbitrary code

Summary

CVECVE-2025-21590
StatePUBLISHED
Assignerjuniper
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-03-12 14:15:15 UTC
Updated2026-10-01 18:23:34 UTC
DescriptionAn 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.

Risk And Classification

Primary CVSS: v4.0 6.7 MEDIUM from [email protected]

CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

EPSS: 0.017350000 probability, percentile 0.775040000 (date 2026-10-26)

CISA KEV: Listed on 2025-03-13; due 2025-04-03; ransomware use Unknown

Problem Types: CWE-653 | CWE-653 CWE-653 Improper Isolation or Compartmentalization


VersionSourceTypeScoreSeverityVector
4.0[email protected]Secondary6.7MEDIUMCVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/C...
4.0CNACVSS6.7MEDIUMCVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
3.1[email protected]Secondary4.4MEDIUMCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
3.1CNACVSS4.4MEDIUMCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N

CVSS v4.0 Breakdown

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Confidentiality
None
Integrity
High
Availability
None
Sub Conf.
None
Sub Integrity
None
Sub Availability
None

CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N

CISA Known Exploited Vulnerability

VendorJuniper
ProductJunos OS
NameJuniper Junos OS Improper Isolation or Compartmentalization Vulnerability
Required ActionApply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Noteshttps://supportportal.juniper.net/s/article/2025-03-Out-of-Cycle-Security-Bulletin-Junos-OS-A-local-attacker-with-shell-access-can-execute-arbitrary-code-CVE-2025-21590?language=en_US ; https://nvd.nist.gov/vuln/detail/CVE-2025-21590

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Juniper Junos All All All All
Operating System Juniper Junos 21.2 - All All
Operating System Juniper Junos 21.2 r1 All All
Operating System Juniper Junos 21.2 r1-s1 All All
Operating System Juniper Junos 21.2 r1-s2 All All
Operating System Juniper Junos 21.2 r2 All All
Operating System Juniper Junos 21.2 r2-s1 All All
Operating System Juniper Junos 21.2 r2-s2 All All
Operating System Juniper Junos 21.2 r3 All All
Operating System Juniper Junos 21.2 r3-s1 All All
Operating System Juniper Junos 21.2 r3-s2 All All
Operating System Juniper Junos 21.2 r3-s3 All All
Operating System Juniper Junos 21.2 r3-s4 All All
Operating System Juniper Junos 21.2 r3-s5 All All
Operating System Juniper Junos 21.2 r3-s6 All All
Operating System Juniper Junos 21.2 r3-s7 All All
Operating System Juniper Junos 21.2 r3-s8 All All
Operating System Juniper Junos 21.4 - All All
Operating System Juniper Junos 21.4 r1 All All
Operating System Juniper Junos 21.4 r1-s1 All All
Operating System Juniper Junos 21.4 r1-s2 All All
Operating System Juniper Junos 21.4 r2 All All
Operating System Juniper Junos 21.4 r2-s1 All All
Operating System Juniper Junos 21.4 r2-s2 All All
Operating System Juniper Junos 21.4 r3 All All
Operating System Juniper Junos 21.4 r3-s1 All All
Operating System Juniper Junos 21.4 r3-s2 All All
Operating System Juniper Junos 21.4 r3-s3 All All
Operating System Juniper Junos 21.4 r3-s4 All All
Operating System Juniper Junos 21.4 r3-s5 All All
Operating System Juniper Junos 21.4 r3-s6 All All
Operating System Juniper Junos 21.4 r3-s7 All All
Operating System Juniper Junos 21.4 r3-s8 All All
Operating System Juniper Junos 21.4 r3-s9 All All
Operating System Juniper Junos 22.2 - All All
Operating System Juniper Junos 22.2 r1 All All
Operating System Juniper Junos 22.2 r1-s1 All All
Operating System Juniper Junos 22.2 r1-s2 All All
Operating System Juniper Junos 22.2 r2 All All
Operating System Juniper Junos 22.2 r2-s1 All All
Operating System Juniper Junos 22.2 r2-s2 All All
Operating System Juniper Junos 22.2 r3 All All
Operating System Juniper Junos 22.2 r3-s1 All All
Operating System Juniper Junos 22.2 r3-s2 All All
Operating System Juniper Junos 22.2 r3-s3 All All
Operating System Juniper Junos 22.2 r3-s4 All All
Operating System Juniper Junos 22.2 r3-s5 All All
Operating System Juniper Junos 22.4 - All All
Operating System Juniper Junos 22.4 r1 All All
Operating System Juniper Junos 22.4 r1-s1 All All
Operating System Juniper Junos 22.4 r1-s2 All All
Operating System Juniper Junos 22.4 r2 All All
Operating System Juniper Junos 22.4 r2-s1 All All
Operating System Juniper Junos 22.4 r2-s2 All All
Operating System Juniper Junos 22.4 r3 All All
Operating System Juniper Junos 22.4 r3-s1 All All
Operating System Juniper Junos 22.4 r3-s2 All All
Operating System Juniper Junos 22.4 r3-s3 All All
Operating System Juniper Junos 22.4 r3-s4 All All
Operating System Juniper Junos 22.4 r3-s5 All All
Operating System Juniper Junos 23.2 - All All
Operating System Juniper Junos 23.2 r1 All All
Operating System Juniper Junos 23.2 r1-s1 All All
Operating System Juniper Junos 23.2 r1-s2 All All
Operating System Juniper Junos 23.2 r2 All All
Operating System Juniper Junos 23.2 r2-s1 All All
Operating System Juniper Junos 23.2 r2-s2 All All
Operating System Juniper Junos 23.4 - All All
Operating System Juniper Junos 23.4 r1 All All
Operating System Juniper Junos 23.4 r1-s1 All All
Operating System Juniper Junos 23.4 r1-s2 All All
Operating System Juniper Junos 23.4 r2 All All
Operating System Juniper Junos 23.4 r2-s1 All All
Operating System Juniper Junos 23.4 r2-s2 All All
Operating System Juniper Junos 23.4 r2-s3 All All
Operating System Juniper Junos 24.2 - All All
Operating System Juniper Junos 24.2 r1 All All
Operating System Juniper Junos 24.2 r1-s1 All All
Operating System Juniper Junos 24.2 r2 All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Juniper Networks Junos OS affected 21.2R3-S9 semver Not specified
CNA Juniper Networks Junos OS affected 21.4 21.4R3-S10 semver Not specified
CNA Juniper Networks Junos OS affected 22.2 22.2R3-S6 semver Not specified
CNA Juniper Networks Junos OS affected 22.4 22.4R3-S6 semver Not specified
CNA Juniper Networks Junos OS affected 23.2 23.2R2-S3 semver Not specified
CNA Juniper Networks Junos OS affected 23.4 23.4R2-S4 semver Not specified
CNA Juniper Networks Junos OS affected 24.2 24.2R1-S2, 24.2R2 semver Not specified

References

ReferenceSourceLinkTags
supportportal.juniper.net/JSA93446 [email protected] supportportal.juniper.net Vendor Advisory
cloud.google.com/blog/topics/threat-intelligence/china-nexus-espionage-targets... [email protected] cloud.google.com Third Party Advisory
www.cisa.gov/known-exploited-vulnerabilities-catalog 134c704f-9b21-4f2e-91b3-4a467353bcc0 www.cisa.gov US Government Resource
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
CISA Known Exploited Vulnerabilities catalog CISA www.cisa.gov kev

Vendor Comments And Credit

Discovery Credit

CNA: Juniper SIRT would like to acknowledge and thank Matteo Memelli from Amazon for responsibly reporting this issue. Note: Amazon found the issue during internal security research and not due to exploitation. (en)

Additional Advisory Data

SourceTimeEvent
CNA2025-03-12T14:00:00.000ZInitial Publication
CNA2025-03-12T15:16:00.000ZCorrected hotlinks for CVSS assessments
CNA2025-03-14T14:00:00.000ZRephrased sentences on Amazon involvement to reduce the chance for confusion
CNA2025-04-09T08:17:00.000ZUpdated solution section to clarify which platforms are not fixed in all but only in specific releases
CNA2025-04-14T07:15:00.000ZFor the products/platforms specifically mentioned in the solution section: Please note that Junos OS version 21.2R3-S9.20, which was made available last week, does not address the issue completely. We'll publish an updated version with the complete fix and update this advisory as soon as possible.
CNA2025-05-06T08:00:00.000ZFor the products/platforms specifically mentioned in the solution section: Please note that Junos OS version 21.2R3-S9.21 has been publish with the complete fix.
ADP2025-03-13T00:00:00.000ZCVE-2025-21590 added to CISA KEV

Solutions

CNA: The following software releases have been updated to resolve this specific issue: 21.2R3-S9, 21.4R3-S10, 22.2R3-S6, 22.4R3-S6, 23.2R2-S3, 23.4R2-S4, 24.2R1-S2, 24.2R2, 24.4R1, and all subsequent releases.   Please note that this issue is not fixed for all platforms in the releases specified in the solution section. For the following products the fix is only available in these releases: SRX300 Series   21.2R3-S9, 23.4R2-S5*, 24.4R1 SRX550HM    22.2R3-S7* EX4300 Series     21.4R3-S11* (except EX4300-48MP which has fixes available as indicated in the solution) EX4600               21.4R3-S11* (except EX4650 which has fixes available as indicated in the solution) ACX1000, ACX1100, ACX2100, ACX2200, ACX4000, ACX500              21.2R3-S9 MX104               21.2R3-S9 * Future Release

Workarounds

CNA: It is strongly recommended to mitigate the risk of exploitation by restricting shell access to trusted users only.

Exploits

CNA: At least one instance of malicious exploitation has been reported to the Juniper SIRT. Customers are encouraged to upgrade to a fixed release as soon as it's available and in the meantime take steps to mitigate this vulnerability.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report