CVE-2025-21590
Junos OS: An local attacker with shell access can execute arbitrary code
In short
A vulnerability in Junos OS allows someone with shell access to run malicious code and take control of the device. This is a serious risk for systems where unauthorized users might gain shell privileges.
Technical detail
An improper kernel compartmentalization vulnerability (CWE-653) in Juniper Junos OS enables local privilege escalation via arbitrary code injection through shell access. Pre-condition: attacker must already have shell-level access; the flaw does not affect Junos CLI access. Impact: complete device compromise with integrity violation.
Summary generated and translated by AI from the official 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.
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
Affected products
Juniper Networks · Junos OSWant to know if your infrastructure is exposed to this?
Talk to TrueHacking →