CVE-2025-21590: Junos OS: An local attacker with shell access can execute arbitrary code
CVE-2025-21590 affects 142 listed versions of Juniper Junos OS in the Dawnsentry catalogue. It is known to be exploited in the wild.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Juniper Junos OS
142 of 250 listed versions are affected. Fixed in 24.2R1-S2, 24.2R2, 23.4R2-S4, 23.2R2-S3, 22.4R3-S6, 22.2R3-S6, 21.4R3-S10, 21.2R3-S9. The newest release, 26.2R1-S2, is not affected.
24.2R1-S1 24.2R1 24.2 23.4R2-S3 23.4R2-S2 23.4R2-S1 23.4R2 23.4R1-S2 23.4R1-S1 23.4R1 23.4 23.2R2-S2 23.2R2-S1 23.2R2 23.2R1-S2 23.2R1-S1 23.2R1 23.2 22.4R3-S5 22.4R3-S4 22.4R3-S3 22.4R3-S2 22.4R3-S1 22.4R3 22.4R2-S2 22.4R2-S1 22.4R2 22.4R1-S2 22.2R3-S5 22.2R3-S4.11 22.2R3-S4 22.2R3-S3 22.2R3-S2 22.2R3-S1 22.2R3 22.2R2-S2 22.2R2-S1 22.2R2 22.2R1-S2 22.2R1-S1 21.4R3-S9 21.4R3-S8 21.4R3-S7.9 21.4R3-S7 21.4R3-S6 21.4R3-S5 21.4R3-S4 21.4R3-S3 21.4R3-S2 21.4R3-S1 21.4R3 21.4R2-S2 21.2R3-S8 21.2R3-S7 21.2R3-S6 21.2R3-S5 21.2R3-S4 21.2R3-S3 21.2R3-S2 21.2R3-S1 and 82 more
What it is
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.
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N (Juniper Networks)
Published by Juniper Networks on 12 March 2025. Last changed 1 October 2026.
Sources
Check one version you run: look CVE-2025-21590 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.