CVE-2025-52988 Junos OS and Junos OS Evolved: Privilege escalation to root via CLI command 'request system logout'

High 8.4 Published Updated

A local high-privileged attacker can escalate to root via OS command injection in the 'request system logout' CLI command on Juniper devices.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-52988?

CVE-2025-52988 is a high-severity command injection vulnerability in Juniper Junos, published on 11 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

An Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in the CLI of Juniper Networks Junos OS and Junos OS Evolved allows a high privileged, local attacker to escalated their privileges to root.

When a user provides specifically crafted arguments to the 'request system logout' command, these will be executed as root on the shell, which can completely compromise the device. This issue affects:

Junos OS: 

* all versions before 21.2R3-S9, * 21.4 versions before 21.4R3-S8, * 22.2 versions before 22.2R3-S6, * 22.3 versions before 22.3R3-S3, * 22.4 versions before 22.4R3-S6, * 23.2 versions before 23.2R2-S1, * 23.4 versions before 23.4R1-S2, 23.4R2;

Junos OS Evolved:

* all versions before 22.4R3-S6-EVO, * 23.2-EVO versions before 23.2R2-S1-EVO, * 23.4-EVO versions before 23.4R1-S2-EVO, 23.4R2-EVO.

Weakness: CWE-78

Which versions are affected by CVE-2025-52988?

It affects 2 products.

Products include Juniper Junos, Juniper Junos Os Evolved.

How do I fix CVE-2025-52988?

No fix has been published for CVE-2025-52988 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-52988 being exploited?

There is no known exploitation of CVE-2025-52988 in the wild and no public exploit code.

All Juniper Junos vulnerabilities

Sources

Also known as GHSA-w3xh-4xq9-g5fm.

Is CVE-2025-52988 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free