Cyber Posture

CVE-2025-20138

High

Published: 12 March 2025

Published
12 March 2025
Modified
31 July 2025
KEV Added
Patch
CVSS Score 8.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS Score 0.0013 32.1th percentile
Risk Priority 18 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2025-20138 is a high-severity OS Command Injection (CWE-78) vulnerability in Cisco Ios Xr. Its CVSS base score is 8.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 32.1th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SI-2 (Flaw Remediation).

Threat & Defense at a Glance

What attackers do: exploitation maps to Exploitation for Privilege Escalation (T1068) and 1 other technique. What defenders deploy: see the NIST 800-53 controls recommended below.
Threat & Defense Details

Mitigating Controls (NIST 800-53 r5)AI

prevent

SI-10 mandates information input validation at CLI entry points, directly countering the insufficient validation of user arguments that enables OS command injection and privilege escalation.

prevent

SI-2 requires timely flaw remediation, such as applying vendor patches for this specific CLI vulnerability to prevent exploitation.

prevent

AC-6 enforces least privilege, restricting low-privileged accounts' access to vulnerable CLI commands and limiting potential damage from escalation attempts.

MITRE ATT&CK Enterprise TechniquesAI

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1059.008 Network Device CLI Execution
Adversaries may abuse scripting or built-in command line interpreters (CLI) on network devices to execute malicious command and payloads.
Why these techniques?

Vulnerability enables local authenticated command injection in network device CLI leading to root-level arbitrary command execution, directly mapping to exploitation for privilege escalation and abuse of network device CLI.

Confidence: HIGH · MITRE ATT&CK Enterprise v19.0

NVD Description

A vulnerability in the CLI of Cisco IOS XR Software could allow an authenticated, local attacker to execute arbitrary commands as root on the underlying operating system of an affected device. This vulnerability is due to insufficient validation of user…

more

arguments that are passed to specific CLI commands. An attacker with a low-privileged account could exploit this vulnerability by using crafted commands at the prompt. A successful exploit could allow the attacker to elevate privileges to root and execute arbitrary commands.

Deeper analysisAI

CVE-2025-20138 is a vulnerability in the Command-Line Interface (CLI) of Cisco IOS XR Software. The issue arises from insufficient validation of user arguments passed to specific CLI commands, which could allow an authenticated, local attacker to execute arbitrary commands as root on the underlying operating system of affected devices. Published on 2025-03-12, it is classified under CWE-78 (OS Command Injection) with a CVSS v3.1 base score of 8.8 (AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).

An attacker requires a low-privileged account and local access to the device to exploit this vulnerability by entering crafted commands at the CLI prompt. Successful exploitation enables privilege escalation to root, allowing the execution of arbitrary commands on the operating system with full administrative control, potentially compromising confidentiality, integrity, and availability.

Mitigation details are available in the Cisco Security Advisory at https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-iosxr-priv-esc-GFQjxvOF. An additional reference is provided at https://blog.apnic.net/2024/09/02/crafting-endless-as-paths-in-bgp/.

Details

CWE(s)

Affected Products

cisco
ios xr
≤ 24.2.21 · 24.3 — 24.4

CVEs Like This One

CVE-2025-20115Same product: Cisco Ios Xr
CVE-2025-20349Same vendor: Cisco
CVE-2025-20172Same product: Cisco Ios Xr
CVE-2025-20156Same vendor: Cisco
CVE-2026-30815Shared CWE-78
CVE-2026-0631Shared CWE-78
CVE-2026-20122Same vendor: Cisco
CVE-2025-46117Shared CWE-78
CVE-2026-20126Same vendor: Cisco
CVE-2026-20040Shared CWE-78

References