Junos OS: An local attacker with shell access can execute arbitrary code
Summary
| CVE | CVE-2025-21590 |
|---|---|
| State | PUBLISHED |
| Assigner | juniper |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-03-12 14:15:15 UTC |
| Updated | 2026-10-01 18:23:34 UTC |
| 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. |
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
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 6.7 | MEDIUM | 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/C... |
| 4.0 | CNA | CVSS | 6.7 | MEDIUM | 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 |
| 3.1 | [email protected] | Secondary | 4.4 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N |
| 3.1 | CNA | CVSS | 4.4 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N |
CVSS v4.0 Breakdown
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
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
CISA Known Exploited Vulnerability
| Vendor | Juniper |
|---|---|
| Product | Junos OS |
| Name | Juniper Junos OS Improper Isolation or Compartmentalization Vulnerability |
| Required Action | Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. |
| Notes | https://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)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| 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
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| 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
| Reference | Source | Link | Tags |
|---|---|---|---|
| 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
| Source | Time | Event |
|---|---|---|
| CNA | 2025-03-12T14:00:00.000Z | Initial Publication |
| CNA | 2025-03-12T15:16:00.000Z | Corrected hotlinks for CVSS assessments |
| CNA | 2025-03-14T14:00:00.000Z | Rephrased sentences on Amazon involvement to reduce the chance for confusion |
| CNA | 2025-04-09T08:17:00.000Z | Updated solution section to clarify which platforms are not fixed in all but only in specific releases |
| CNA | 2025-04-14T07:15:00.000Z | For 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. |
| CNA | 2025-05-06T08:00:00.000Z | For 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. |
| ADP | 2025-03-13T00:00:00.000Z | CVE-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.