CVE-2021-27878: Veritas Backup Exec Agent Command Execution Vulnerability
Veritas Backup Exec (BE) Agent contains a command execution vulnerability that could allow an attacker to use a data management protocol command to execute a command on the BE Agent machine.
CVE-2021-27878 is a command execution vulnerability in the Veritas Backup Exec Agent. An attacker can abuse a data management protocol command to run commands on the machine hosting the agent. The underlying weakness is improper authentication (CWE-287). This matters because Backup Exec Agents commonly sit on servers that hold or protect critical data; successful exploitation can give an attacker a foothold for further activity. Public reporting also indicates known ransomware use of this vulnerability, raising the priority for defenders who run the product.
How it works
The vulnerability is classified as CWE-287, improper authentication. In practice this means the Backup Exec Agent does not adequately verify the legitimacy of certain requests that arrive over its data management protocol. An attacker who can reach the agent can craft or replay a protocol command that the agent accepts and then executes on the host. The result is arbitrary command execution under the privileges of the agent process. Exact protocol details, required network access, and any authentication bypass steps are not fully specified in the public summary; teams should treat the issue as remote command execution enabled by weak authentication and confirm the precise attack surface against the vendor advisory.
Because the agent is designed to perform backup and recovery operations, it often runs with elevated rights and has broad access to local storage and network shares. Command execution in that context can lead to data theft, ransomware deployment, or lateral movement. No public exploit code or version-specific mechanics are provided here; defenders should assume a network-reachable agent is at risk until proven otherwise by inventory and patching status.
Am I affected? How to find it in your systems
Veritas Backup Exec Agents are typically installed on Windows or other servers that need to be backed up by a Backup Exec media server. They may appear as services, scheduled tasks, or listening processes associated with the Backup Exec product family. Inventory steps include:
- Query software inventory, CMDB, or endpoint management tools for any Veritas Backup Exec Agent packages or related services.
- Scan for hosts listening on ports commonly used by Backup Exec agents (confirm exact ports in vendor documentation) and cross-reference with known Backup Exec deployments.
- Review configuration management or golden-image baselines for the presence of the agent.
Because exact affected versions are not listed in the provided facts, compare every discovered installation against the vendor advisory for CVE-2021-27878. Look for unpatched agents, agents exposed beyond trusted backup networks, and any instances still running default or weak authentication settings. For signs of exploitation, examine agent and system logs for unexpected command execution, anomalous protocol traffic, or process creation events originating from the Backup Exec agent process. Network telemetry showing unusual connections to agent ports from untrusted sources is also worth investigating. Confirm log sources and indicators against the vendor advisory and your own environment baselines.
How to remediate
The primary action is to apply the updates published by Veritas for the Backup Exec Agent, following the vendor instructions exactly as required by CISA. After patching, verify that the agent version matches the fixed release and that the service restarts cleanly. Additional hardening appropriate to this class of weakness includes:
- Enforcing strong authentication and encryption for all agent-to-media-server communication where the product supports it.
- Restricting the agent’s network exposure to only the necessary backup infrastructure.
- Running the agent under the least privilege practical for its backup duties.
- Validating that any residual management interfaces require multi-factor or certificate-based authentication.
Document the patch status and re-scan the environment to confirm no unpatched agents remain. Specifics of the update package and any configuration changes must be taken from the vendor advisory.
If you can't patch immediately
Until the vendor update can be applied, reduce risk with compensating controls:
- Network segmentation: place Backup Exec Agents in a restricted backup VLAN or security zone reachable only from authorized media servers; block agent ports from general user and internet networks.
- Virtual patching or WAF/IPS rules: if a network security device can inspect the data management protocol, deploy temporary signatures that drop or alert on anomalous command patterns (confirm rule efficacy with the vendor or your security team).
- Disable or stop the agent service on non-critical systems where backup can be deferred.
- Heighten monitoring: enable detailed process creation and network connection logging around the agent, and alert on unexpected child processes or outbound connections.
These measures do not eliminate the vulnerability but shrink the attack surface and improve detection until the official update is installed.
If your data may have been exposed
Vulnerabilities that enable command execution and that have been used by ransomware operators frequently lead to data theft or encryption. If you discover unpatched agents that were reachable by untrusted parties, treat the hosts as potentially compromised: isolate them, collect forensic images, and hunt for persistence or data staging. As a quick personal check, you can run a free exposure scan of your email address against known breach data sets to see whether credentials or other information associated with your accounts have already appeared in public dumps. Organizational incident response should follow your normal playbooks for ransomware-linked activity.
AICompiled with AI assistance from public sources and published under our editorial standards.