CVE-2024-39520: Junos OS Evolved: CLI parameter processing issue allows privilege escalation

Published Jul 11, 2024
·
Updated

An Improper Neutralization of Special Elements vulnerability in Juniper Networks Junos OS Evolved commands allows a local, authenticated attacker with low privileges to escalate their privileges to 'root' leading to a full compromise of the system.

The Junos OS Evolved CLI doesn't properly handle command options in some cases, allowing users which execute specific CLI commands with a crafted set of parameters to escalate their privileges to root on shell level.

This issue affects Junos OS Evolved:

All version before 20.4R3-S6-EVO,  21.2-EVO versions before 21.2R3-S4-EVO, 21.4-EVO versions before 21.4R3-S6-EVO,  22.2-EVO versions before 22.2R2-S1-EVO, 22.2R3-EVO,  22.3-EVO versions before 22.3R2-EVO.

Affected Software

48 affected components
Juniper Junos OS Evolved<20.4
Juniper Junos OS Evolved=20.4
Juniper Junos OS Evolved=20.4-r1
Juniper Junos OS Evolved=20.4-r1-s1
Juniper Junos OS Evolved=20.4-r1-s2
Juniper Junos OS Evolved=20.4-r2
Juniper Junos OS Evolved=20.4-r2-s1
Juniper Junos OS Evolved=20.4-r2-s2
Juniper Junos OS Evolved=20.4-r2-s3
Juniper Junos OS Evolved=20.4-r3
Juniper Junos OS Evolved=20.4-r3-s1
Juniper Junos OS Evolved=20.4-r3-s2
Juniper Junos OS Evolved=20.4-r3-s3
Juniper Junos OS Evolved=20.4-r3-s4
Juniper Junos OS Evolved=20.4-r3-s5
Juniper Junos OS Evolved=21.2
Juniper Junos OS Evolved=21.2-r1
Juniper Junos OS Evolved=21.2-r1-s1
Juniper Junos OS Evolved=21.2-r1-s2
Juniper Junos OS Evolved=21.2-r2
Juniper Junos OS Evolved=21.2-r2-s1
Juniper Junos OS Evolved=21.2-r2-s2
Juniper Junos OS Evolved=21.2-r3
Juniper Junos OS Evolved=21.2-r3-s1
Juniper Junos OS Evolved=21.2-r3-s2
Juniper Junos OS Evolved=21.2-r3-s3
Juniper Junos OS Evolved=21.2-r3-s4
Juniper Junos OS Evolved=21.4
Juniper Junos OS Evolved=21.4-r1
Juniper Junos OS Evolved=21.4-r1-s1
Juniper Junos OS Evolved=21.4-r1-s2
Juniper Junos OS Evolved=21.4-r2
Juniper Junos OS Evolved=21.4-r2-s1
Juniper Junos OS Evolved=21.4-r2-s2
Juniper Junos OS Evolved=21.4-r3
Juniper Junos OS Evolved=21.4-r3-s1
Juniper Junos OS Evolved=21.4-r3-s2
Juniper Junos OS Evolved=21.4-r3-s3
Juniper Junos OS Evolved=21.4-r3-s4
Juniper Junos OS Evolved=21.4-r3-s5
Juniper Junos OS Evolved=22.2
Juniper Junos OS Evolved=22.2-r1
Juniper Junos OS Evolved=22.2-r1-s1
Juniper Junos OS Evolved=22.2-r2
Juniper Junos OS Evolved=22.3
Juniper Junos OS Evolved=22.3-r1
Juniper Junos OS Evolved=22.3-r1-s1
Juniper Junos OS Evolved=22.3-r1-s2

Remediation

Information

The following software releases have been updated to resolve this specific issue: 20.4R3-S6-EVO, 21.2R3-S4-EVO, 21.4R3-S6-EVO, 22.2R2-S1-EVO, 22.2R3-EVO, 22.3R2-EVO, 22.4R1-EVO, and all subsequent releases.

Event History

Jul 11, 2024
CVE Published
via MITRE·03:56 PM
Data Sourced
via MITRE·03:56 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2024-39520?

CVE-2024-39520 has a high severity rating due to its potential to allow local authenticated attackers to escalate privileges to root.

2

How do I fix CVE-2024-39520?

To remediate CVE-2024-39520, you should update the Junos OS Evolved to the latest version that is not affected by this vulnerability.

3

What type of attack can exploit CVE-2024-39520?

CVE-2024-39520 can be exploited by local, authenticated attackers to conduct privilege escalation on affected systems.

4

Which versions of Junos OS Evolved are affected by CVE-2024-39520?

CVE-2024-39520 affects multiple versions of Junos OS Evolved up to version 20.4 and includes certain releases from the 21.x and 22.x versions prior to necessary patches.

5

Is there a workaround for CVE-2024-39520 until I can apply a fix?

There is no documented workaround for CVE-2024-39520; applying the appropriate software update is recommended to mitigate the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203