Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2025-50123

CVE-2025-50123: Code Injection RCE Vulnerability

CVE-2025-50123 is a code injection vulnerability that enables remote command execution when privileged accounts exploit hostname input via server console access. This article covers technical details, attack vectors, and remediation.

Updated:

CVE-2025-50123 Overview

CVE-2025-50123 is a code injection vulnerability [CWE-94] that enables remote command execution through improper handling of hostname input. The flaw affects a Schneider Electric product covered by security notice SEVD-2025-189-01. A privileged account can trigger execution when the server is accessed via a console and the attacker manipulates the hostname input field. Because the attack vector is physical and requires high privileges, exploitation depends on prior console access. Successful exploitation yields high impact on confidentiality, integrity, and availability of the affected system.

Critical Impact

An authenticated privileged user with console access can execute arbitrary commands on the server by injecting payloads through the hostname input.

Affected Products

  • Schneider Electric product referenced in advisory SEVD-2025-189-01
  • Specific product versions listed in the vendor security notice
  • Deployments where the server is exposed to console-based administration

Discovery Timeline

  • 2025-07-11 - CVE-2025-50123 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-50123

Vulnerability Analysis

The vulnerability is classified as Improper Control of Generation of Code [CWE-94]. The affected server accepts a hostname value through a console-accessible interface and passes that value into a code or command context without proper sanitization. An attacker holding a privileged account can craft a hostname string that embeds executable code or shell metacharacters. When the server processes the hostname, the injected content executes with the privileges of the underlying service.

Exploitation requires physical or console access and high privileges, which limits opportunistic attacks. However, in operational technology environments, console interfaces are frequently accessible through jump hosts, KVM switches, and remote management consoles. A compromised administrator account or an insider with console reach is sufficient to trigger the flaw. The impact spans confidentiality, integrity, and availability, and can propagate to adjacent systems that trust the compromised host.

Root Cause

The root cause is missing input validation on the hostname field. The application incorporates user-supplied hostname data into a code execution path, such as a shell command, interpreter call, or configuration script, without escaping or allow-listing acceptable characters. This design allows metacharacters and command separators to break out of the intended string context.

Attack Vector

An attacker with a privileged account accesses the target server through its console interface. The attacker enters a hostname value that contains injected command syntax. When the server processes the hostname during configuration or a related operation, the injected commands execute in the server's runtime context. See the Schneider Electric Security Notice for vendor-specific technical details.

No verified public exploit code is available for CVE-2025-50123. Refer to the Full Disclosure Mailing List Post and the follow-up disclosure post for community discussion of the issue.

Detection Methods for CVE-2025-50123

Indicators of Compromise

  • Hostname values containing shell metacharacters such as ;, |, &, backticks, or $(...) syntax in configuration logs
  • Unexpected child processes spawned by the server management service following a hostname change event
  • Console session activity from privileged accounts followed by outbound network connections initiated by the server process

Detection Strategies

  • Audit configuration change logs for hostname modifications that include non-alphanumeric characters beyond hyphens and dots
  • Correlate console login events with subsequent process creation activity on the affected server
  • Alert on management service processes launching shells, interpreters, or network utilities that are not part of normal operation

Monitoring Recommendations

  • Enable verbose audit logging on console access channels and forward logs to a centralized SIEM
  • Monitor privileged account activity, especially hostname or system identity changes, for out-of-band administrative sessions
  • Track integrity of server configuration files and management scripts using file integrity monitoring

How to Mitigate CVE-2025-50123

Immediate Actions Required

  • Apply the vendor remediation described in Schneider Electric advisory SEVD-2025-189-01
  • Restrict console access to a minimal set of trusted administrators and enforce multi-factor authentication on privileged accounts
  • Review recent hostname changes and administrative console activity for signs of injection attempts

Patch Information

Schneider Electric published remediation guidance in security notice SEVD-2025-189-01. Consult the advisory for the fixed versions and upgrade procedures that apply to your deployment. Where a patch is not immediately deployable, apply the compensating controls described by the vendor.

Workarounds

  • Limit physical and remote console access to the server using network segmentation and out-of-band management controls
  • Enforce strict change management on hostname and system identity fields, requiring peer review of all modifications
  • Reduce the number of accounts holding administrative privileges on the affected servers
bash
# Configuration example: restrict console access at the network layer
# Allow console management only from a dedicated bastion subnet
iptables -A INPUT -p tcp --dport 22 -s 10.10.50.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.