4.4Medium KEV

CVE-2025-21590Junos OS: An local attacker with shell access can execute arbitrary code

Juniper Networks Junos OS Published: (1 year ago)

Known exploited — Juniper Junos OS Improper Isolation or Compartmentalization Vulnerability

CISA confirmed this vulnerability is used in real attacks on 13.03.2025. Remediation deadline for US federal agencies: 03.04.2025.

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. 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

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.

Weakness (CWE): CWE-653

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
juniper junos < 21.2
Juniper Networks Junos OS < 21.2R3-S9, 21.4 – < 21.4R3-S10, 22.2 – < 22.2R3-S6, 22.4 – < 22.4R3-S6, 23.2 – < 23.2R2-S3, 23.4 – < 23.4R2-S4, 24.2 – < 24.2R1-S2, 24.2R2

References and patches

CPE matches (NVD) (60)

  • cpe:2.3:o:juniper:junos:*:*:*:*:*:*:*:* < 21.2
  • cpe:2.3:o:juniper:junos:21.2:-:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.2:r1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.2:r1-s1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.2:r1-s2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.2:r2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.2:r2-s1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.2:r2-s2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.2:r3:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.2:r3-s1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.2:r3-s2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.2:r3-s3:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.2:r3-s4:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.2:r3-s5:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.2:r3-s6:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.2:r3-s7:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.2:r3-s8:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:-:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r1-s1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r1-s2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r2-s1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r2-s2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r3:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r3-s1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r3-s2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r3-s3:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r3-s4:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r3-s5:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r3-s6:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r3-s7:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r3-s8:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:21.4:r3-s9:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.2:-:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.2:r1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.2:r1-s1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.2:r1-s2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.2:r2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.2:r2-s1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.2:r2-s2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.2:r3:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.2:r3-s1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.2:r3-s2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.2:r3-s3:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.2:r3-s4:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.2:r3-s5:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.4:-:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.4:r1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.4:r1-s1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.4:r1-s2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.4:r2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.4:r2-s1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.4:r2-s2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.4:r3:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.4:r3-s1:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.4:r3-s2:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.4:r3-s3:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.4:r3-s4:*:*:*:*:*:*
  • cpe:2.3:o:juniper:junos:22.4:r3-s5:*:*:*:*:*:*