CVE-2025-30661
Junos OS: Low-privileged user can cause script to run as root, leading to privilege escalation
Mitigation
- Vendor workaround: Use access lists or firewall filters to limit access to the device via CLI only from trusted hosts and administrators.
Who should check
- Anyone running Juniper Networks Junos OS >= 23.2, < 23.2R2-S4; >= 23.4, < 23.4R2-S5; >= 24.2, < 24.2R2-S1; >= 24.4, < 24.4R1-S3, 24.4R2
Vulnerability facts
- Affected
- Juniper Networks Junos OS >= 23.2, < 23.2R2-S4; >= 23.4, < 23.4R2-S5; >= 24.2, < 24.2R2-S1; >= 24.4, < 24.4R1-S3, 24.4R2
- Fixed in
- Juniper Networks Junos OS 23.2R2-S4, Juniper Networks Junos OS 23.4R2-S5, Juniper Networks Junos OS 24.2R2-S1, Juniper Networks Junos OS 24.4R1-S3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 8.5 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/AU:N/R:U/RE:M/U:AmberOpen in CVSS calculator
Show all 15 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- AU: N
- R: U
- RE: M
- U: Amber
- EPSS
- 0.24% chance of exploitation in 30 days (percentile 9, 2026-11-26)
- CWE
- CWE-732
- Modified
Description
An Incorrect Permission Assignment for Critical Resource vulnerability in line card script processing of Juniper Networks Junos OS allows a local, low-privileged user to install scripts to be executed as root, leading to privilege escalation. A local user with access to the local file system can copy a script to the router in a way that will be executed as root, as the system boots. Execution of the script as root can lead to privilege escalation, potentially providing the adversary complete control of the system. This issue only affects specific line cards, such as the MPC10, MPC11, LC4800, LC9600, MX304-LMIC16, SRX4700, and EX9200-15C. This issue affects Junos OS: * from 23.2 before 23.2R2-S4, * from 23.4 before 23.4R2-S5, * from 24.2 before 24.2R2-S1, * from 24.4 before 24.4R1-S3, 24.4R2. This issue does not affect versions prior to 23.1R2.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Juniper Networks Junos OS | >= 23.2, < 23.2R2-S4; >= 23.4, < 23.4R2-S5; >= 24.2, < 24.2R2-S1; >= 24.4, < 24.4R1-S3, 24.4R2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-30661. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-30661.md Affected: Juniper Networks Junos OS >= 23.2, < 23.2R2-S4; >= 23.4, < 23.4R2-S5; >= 24.2, < 24.2R2-S1; >= 24.4, < 24.4R1-S3, 24.4R2 Fixed in: Juniper Networks Junos OS 23.2R2-S4, Juniper Networks Junos OS 23.4R2-S5, Juniper Networks Junos OS 24.2R2-S1, Juniper Networks Junos OS 24.4R1-S3 Steps: 1. Search this machine and project for Juniper Networks Junos OS: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2025-30661 being exploited?
There is no confirmed exploitation: CVE-2025-30661 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-30661?
High: CVSS 8.5 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2025-30661?
Juniper Networks Junos OS >= 23.2, < 23.2R2-S4; >= 23.4, < 23.4R2-S5; >= 24.2, < 24.2R2-S1; >= 24.4, < 24.4R1-S3, 24.4R2.
Is there a fix for CVE-2025-30661?
Yes. Fixed in Juniper Networks Junos OS 23.2R2-S4, Juniper Networks Junos OS 23.4R2-S5, Juniper Networks Junos OS 24.2R2-S1, Juniper Networks Junos OS 24.4R1-S3. Vendor workaround: Use access lists or firewall filters to limit access to the device via CLI only from trusted hosts and administrators.
How do I check if I'm affected by CVE-2025-30661?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.