LiveActive security incident?Get immediate response
CVE Record

CVE-2025-21590: Junos OS: An local attacker with shell access can execute arbitrary code

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.

MediumCVSS 6.7Known exploitedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2025-21590 lets someone who already has high-privilege shell access on affected Junos OS devices inject arbitrary code and compromise device integrity. It is not reachable through the Junos CLI, but CISA KEV status means defenders should treat exposed vulnerable Juniper infrastructure as urgent.

Executive priority

Prioritize remediation for internet-critical or high-trust Juniper devices. The vulnerability requires high privileges, but KEV status raises urgency because compromised network infrastructure can support persistence, traffic control, and broader operational disruption.

Technical view

Juniper describes a CWE-653 kernel isolation issue in Junos OS. Attack vector is local, complexity low, privileges high, no user interaction, with high integrity impact. Affected releases are before specified fixed trains across 21.2, 21.4, 22.2, 22.4, 23.2, 23.4, and 24.2.

Likely exposure

Exposure is limited to Juniper Networks Junos OS devices on affected versions where an attacker can obtain high-privilege shell access. Environments with weak management-plane controls, shared admin access, or prior credential compromise carry higher practical risk.

Exploitation context

Active exploitation is supported by the CISA KEV flag in the provided bundle. The Google threat-intelligence reference indicates Juniper routers have been targeted in China-nexus espionage activity, but this analysis cannot infer details beyond the cited sources.

Researcher notes

Do not model this as a remote CLI exploit. Focus validation on vulnerable Junos versions, privilege boundaries between CLI and shell, kernel isolation impact, and evidence of suspicious local shell activity. Public source detail is limited.

Mitigation direction

  • Upgrade affected Junos OS systems to the vendor-fixed release for each train.
  • Review Juniper JSA93446 before changing production network devices.
  • Restrict shell access to named, approved administrators only.
  • Harden management-plane access with MFA, segmentation, and logging.
  • Investigate devices where high-privilege shell access may have been exposed.

Validation and detection

  • Inventory all Junos OS devices and record exact release trains.
  • Compare versions against the affected ranges in Juniper’s advisory.
  • Confirm whether shell access is enabled and who can use it.
  • Review privileged access logs for unexpected shell sessions.
  • Track remediation against CISA KEV-driven operational deadlines.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-653: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2025-21590 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.7 (4.0)
Known Exploited
Yes
Published

Vector: 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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CISA KEV status

Status
Known exploited
Source
CISA / ADP
Date added
Not provided

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.7CVSS 4.0MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NPrimary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

6.7Medium
CVSS 4.0 vector shape for CVE-2025-21590Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: 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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
Juniper NetworksJunos OS0, 21.4, 22.2, 22.4, 23.2, 23.4, 24.2unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-653 · source CWE mapping

Improper Isolation or Compartmentalization

Improper Isolation or Compartmentalization represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.