CVE-2024-12686
High · 7.2 CISA KEVCVSS
7.2
EPSS
32.2%
Published
Dec 18, 2024
CISA due date
Feb 3, 2025
Cloudanix analysis
A flaw in BeyondTrust remote access tools could let someone who already has administrator access run unauthorized commands and potentially take deeper control of the system.
- Exploitation
- Remote Authenticated
- Attacker needs
- High Privilege
- Complexity
- Moderate
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
This is an authenticated command injection vulnerability in BeyondTrust Privileged Remote Access (PRA) and Remote Support (RS). An attacker who already has administrative privileges in the application can inject operating system commands through vulnerable functionality and execute those commands in the context of a site user. Technically, this can turn application-level administrative access into command execution on the underlying appliance or service context, enabling unauthorized command execution, data access, persistence, lateral movement preparation, and manipulation of remote access/support infrastructure.
Why it matters to the business
Because PRA and RS are used to administer and support remote systems, compromise of this platform can have outsized operational impact. An attacker with administrative access could abuse the product to run unauthorized commands, disrupt support operations, access sensitive session data, tamper with remote access workflows, or use the platform as a foothold into managed systems. The vulnerability is listed in CISA KEV, has known in-the-wild exploitation, and had a CISA remediation due date of 2025-02-03, making it a high-priority issue even though it requires existing administrative privileges. No ransomware use is specifically indicated, but exploitation of privileged remote access tooling creates significant risk for broader compromise.
How an attack unfolds
An attacker first obtains or abuses administrative access to a BeyondTrust PRA or RS deployment, commonly through stolen credentials, session hijacking, compromised identity infrastructure, or misuse of an existing privileged account. Once authenticated as an administrator, the attacker interacts with the vulnerable administrative functionality and supplies crafted input that is improperly handled by the application. Instead of being treated only as data, the input is interpreted as part of an operating system command. The injected command executes as a site user on the affected system. From there, the attacker may enumerate the appliance, collect configuration and credential material, modify settings, stage tools, create persistence, or pivot through the remote access platform to systems reachable through PRA/RS. Public reporting and CISA KEV status indicate active exploitation in the wild, so defenders should assume exposed, unpatched instances with suspicious administrative activity may have been targeted.
How to fix it
Upgrade BeyondTrust Privileged Remote Access and Remote Support to vendor-fixed versions or later as specified in BeyondTrust security advisories for CVE-2024-12686. If exact fixed versions are not available in the provided input, consult the vendor advisory and apply the latest supported maintenance release for the affected PRA/RS branch. Because this vulnerability is in CISA KEV and exploitation has been observed in the wild, patching should be treated as urgent. Until patching is complete, restrict administrative access to PRA/RS to trusted networks and hardened administrative workstations, enforce phishing-resistant MFA, review and minimize administrator roles, disable or remove unused admin accounts, rotate credentials associated with the platform, and monitor all administrative activity closely. If compromise is suspected, perform incident response before simply upgrading, because patching does not remove attacker-created persistence or stolen credentials.
How to confirm the fix worked
Confirm the installed PRA/RS version is at or above the vendor-fixed version listed in the current BeyondTrust advisory. Validate that all nodes, appliances, failover peers, and managed instances are upgraded, not only the primary interface. Review administrative functionality that previously accepted command-like input to ensure payloads containing shell metacharacters are rejected, escaped, or logged without execution. Confirm that administrative access is restricted and MFA is enforced. Run vulnerability scans or configuration checks using authenticated product version detection where available. Review system and application logs after upgrade to ensure no unexpected command execution, new administrative accounts, configuration changes, or suspicious remote support sessions occurred before remediation.
Typical attack path
- Gain administrative access to a BeyondTrust PRA or RS deployment through stolen credentials, compromised accounts, or another prior intrusion path.
- Authenticate to the PRA/RS administrative interface or API.
- Identify and access the vulnerable administrative function that passes attacker-controlled input to command execution logic.
- Submit a crafted payload containing operating system command syntax.
- Execute commands as a site user on the underlying system or service context.
- Enumerate the appliance, users, sessions, configuration, network reachability, and integration points.
- Collect sensitive data or credentials, alter remote access/support configuration, create persistence, or use the platform to support lateral movement.
How to detect it
To determine whether this was already exploited, review BeyondTrust PRA/RS application audit logs, administrator activity logs, API logs, web access logs, authentication logs, system logs, and any available appliance command or process execution telemetry. Focus on the period before patching and around suspicious administrator logins. Look for administrative actions containing shell metacharacters or command syntax, unexpected configuration changes, creation of new admin users, changes to authentication providers, new API keys or integration tokens, unusual support sessions, and administrative logins from unfamiliar IP addresses, geographies, user agents, or times of day. On the underlying appliance or host, look for unexpected child processes spawned by PRA/RS services, shell execution, file writes in temporary directories, added scheduled jobs, modified startup scripts, suspicious outbound network connections, and tools used for discovery or staging. Because this vulnerability requires existing administrative privileges, correlate possible exploitation with evidence of credential theft, MFA fatigue, impossible travel, reused session cookies, or successful logins after repeated failures. Threat intelligence indicates active in-the-wild exploitation of BeyondTrust PRA/RS command injection, so unexplained administrative activity on unpatched systems should be escalated for incident response.
- ; whoami
- ; id
- ; uname -a
- ; cat /etc/passwd
- ; curl
- ; wget
- | whoami
- | id
- && whoami
- && id
- `whoami`
- $(whoami)
- /bin/sh
- /bin/bash
- cmd.exe
- powershell.exe
- /tmp/
- /var/tmp/
- /etc/cron
- crontab
- authorized_keys
What your security team should do
- Treat this as a priority remediation item because it is CISA KEV-listed and has active in-the-wild exploitation; verify remediation even if the initial CISA due date of 2025-02-03 has passed.
- Inventory all BeyondTrust PRA and RS deployments, including standby nodes and isolated appliances, and identify versions and exposure paths.
- Upgrade to the vendor-fixed release or latest supported release for the deployed branch.
- Restrict PRA/RS administrative interfaces to trusted management networks or VPNs and block direct internet exposure where possible.
- Enforce phishing-resistant MFA and least-privilege roles for all PRA/RS administrative accounts.
- Audit administrator accounts, API keys, integrations, jump clients, support sessions, and recent configuration changes for unauthorized activity.
- Rotate credentials, tokens, and integration secrets associated with PRA/RS if exploitation is suspected or administrative account compromise cannot be ruled out.
- Hunt for suspicious command execution, appliance-level changes, unexpected outbound connections, and anomalous administrative login patterns.
- Preserve logs and forensic artifacts before rebuilding or upgrading systems where compromise is suspected.
- Create SIEM detections for unusual PRA/RS administrative actions, shell metacharacters in request parameters, and unexpected processes or network connections from PRA/RS infrastructure.
The record
A vulnerability has been discovered in Privileged Remote Access (PRA) and Remote Support (RS) which can allow an attacker with existing administrative privileges to inject commands and run as a site user.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|