PostgreSQL
CVE-2026-21708
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as privileged user
-
ExploitUpload malicious backup file
-
ExecutionTrigger backup restoration process
-
ImpactExecute arbitrary code as postgres user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Authenticated access to Backup Viewer with privileges to upload or restore backup files. Requires PR:L (low privilege user account) on the backup management system. |
| Impact | CVSS 9.9 (Critical). Low privileges (Viewer role), network vector, low complexity, scope change. The postgres user often has broad system access. EPSS 0.54%. |
| Exploit ScenarioDerived | An attacker gains access to a Viewer account (e.g., through social engineering of a junior operator), then escalates to code execution as postgres. From there, they can access all backup metadata and potentially the backup data itself. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
Veeam Backup & Replication allows a user with the Backup Viewer role (read-only) to escalate to remote code execution as the postgres database user. A read-only role achieving RCE represents a severe privilege escalation with scope change.
Earlier versions of this analysis (1)
Veeam Backup Viewer role can escalate to RCE as the postgres user, breaking the read-only access boundary.
RemediationAI
Patch Veeam immediately. Audit all Viewer role assignments. Monitor postgres process execution for anomalous commands.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
A user assigned the Backup Viewer role (intended to be read-only) can exploit access control weaknesses to execute arbitrary code as the postgres database user on the Veeam server (CWE-284 implied). This breaks the principle of least privilege and the scope change reflects execution outside the Veeam application.
Know when PostgreSQL gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
A vulnerability allowing a Backup Viewer to perform remote code execution (RCE) as the postgres user.
Executive ViewAI
A critical vulnerability in Backup Viewer software allows attackers to execute arbitrary code with database administrator privileges, potentially leading to complete compromise of PostgreSQL databases and sensitive data theft or destruction. This poses an immediate threat to any organization using this backup tool and requires urgent remediation to prevent active exploitation.
Restrict Backup Viewer network access to trusted IP addresses via firewall rules; require multi-factor authentication for Backup Viewer access; implement WAF rules blocking suspicious Backup Viewer input patterns if web-based; disable Backup Viewer service entirely if operationally feasible and use alternative backup restoration methods; deploy host-based intrusion detection on systems running Backup Viewer; run Backup Viewer process with least-privilege account isolation; maintain real-time file integrity monitoring on backup storage locations.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)CVE.org
More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB