DEV Community

Ioneyrezende
Ioneyrezende

Posted on

Veeam backup peers turn CVE-2026-106076 into a cross-tenant SQL problem

Veeam backup peers turn CVE-2026-106076 into a cross-tenant SQL problem

Backup infrastructure is often trusted more broadly than the systems it protects. Veeam Backup for Microsoft 365 connects to mail data, configuration databases and other backup servers. CVE-2026-106076 affects that trust boundary through the organization-transfer workflow.

The public vulnerability description says an authenticated organization-transfer peer can inject SQL into the source server's configuration database. The result can include cross-tenant read and write of configuration data and remote code execution as the PostgreSQL service account. Veeam KB4957 documents the release matrix and fixed build.

Why this is not just a database bug

SQL injection is usually described as an input-validation defect. In a backup product, the database holds job definitions, tenant relationships, credentials and retention state. A cross-tenant write primitive can alter which organization data a job processes or where results are sent.

The attacker must first be an authenticated organization-transfer peer. That requirement narrows the initial path but raises the value of peer registration, certificate handling and service-account control. A compromised backup server or a misissued peer identity may become a route into another tenant.

The service account context matters as well. Code execution as the PostgreSQL service account may not equal operating-system root, but it is still a powerful position beside backup data and configuration.

Inventory the transfer topology

List every Veeam Backup for Microsoft 365 server, its version, its peer relationships, the organizations it manages and the source and target roles. Compare the installed build with the fixed version in KB4957.

Review who can create or approve an organization-transfer connection. Require named administrators and separate duties where possible. Check whether old peers remain registered after a migration, acquisition or tenant consolidation.

Back up the configuration database before changing peer relationships. Test the restore path, not only the backup job. A configuration rollback that has never been exercised can extend an incident.

Remediate and monitor

Upgrade to the fixed build identified by Veeam, then verify the installed version and restart the affected services. Re-register only the peers that still have a documented business purpose.

Search database and application logs for failed SQL syntax, unexpected configuration changes and organization-transfer activity outside approved windows. Correlate the database event with the authenticated peer and the source address.

Rotate credentials that the affected server used for mail access, database access and peer communication if compromise is suspected. Preserve logs and configuration before rotating, because rebuilding a clean service can destroy the evidence needed to determine which tenants were touched.

Finally, review backup restore permissions. A product that can read an entire tenant and restore into another location should have an approval path that does not depend on one administrator account.

References

Top comments (1)

Collapse
 
mariosfong profile image
Mario Fang •

The part I would underline is the peer list, because it is the one inventory nobody owns. Peers get created for a migration, a tenant consolidation or an acquisition, and then the project ends and the registration stays, still holding an authenticated relationship to a server that has been rebuilt twice since.

Your point about backing up the configuration database before touching peer relationships is the one that bit me on a different appliance. Restoring that database is the restore nobody has ever rehearsed, and after it comes back the credentials stored inside are as old as the backup. Jobs then fail in two different ways: some break loudly, and some keep running against whatever tenant the restored mapping names, which is the quiet half. We now treat the config restore as part of the test schedule rather than a disaster-only path.

Also worth saying out loud: if the config database holds per-tenant job definitions and the credentials those jobs use, then the PostgreSQL service account is effectively a cross-tenant credential store. That is why I would rotate the mail credentials too, not just the database one, and why preserving logs before any rebuild has to come first. Rebuilding clean destroys the only record of which tenants were touched.