Unauthenticated Remote Code Execution in pgAdmin 4 by Missing Authentication on Database Endpoints
CVE-2026-12046

9.5CRITICAL

Key Information:

Status
Vendor
CVE Published:
18 June 2026

What is CVE-2026-12046?

CVE-2026-12046 is a vulnerability found in pgAdmin 4, a popular open-source administration and management tool for PostgreSQL databases. This tool is designed to help database administrators manage database operations through a user-friendly graphical interface. The vulnerability arises from a lack of authentication on specific database endpoints, specifically two state-mutating endpoints within the SQL Editor module: DELETE /sqleditor/close/<trans_id> and POST /sqleditor/initialize/sqleditor/update_connection/<sgid>/<sid>/<did>. This oversight allows these endpoints to be accessed without a valid user session when pgAdmin is running in server mode, potentially leading to unauthorized remote code execution.

The technical implications of CVE-2026-12046 center on the ability for malicious actors to manipulate session data by using crafted requests that exploit the deserialization of untrusted data. Exploiting this vulnerability requires an attacker to forge a server-side session file, which necessitates knowledge of the pgAdmin Flask SECRET_KEY and write access to the session storage directory. While these prerequisites mean that exploitation is not trivial or guaranteed, the vulnerability’s existence represents a critical security gap that could allow further intrusions or actions by attackers who have already compromised a system.

Potential impact of CVE-2026-12046

  1. Unauthenticated Remote Code Execution: The most significant impact of this vulnerability is the ability for attackers to execute arbitrary code on the host running pgAdmin 4 without proper authentication. This can create openings for a full system compromise, allowing for unauthorized access to sensitive data and database functions.

  2. Elevation of Privileges: In scenarios where an attacker possesses some level of access to the system, exploiting this vulnerability can facilitate a further escalation of privileges. This elevation can lead to complete control over the database management tool and other connected infrastructures.

  3. Increased Risk of Data Breaches: The potential for unauthorized code execution raises concerns about data breaches. Attackers could use this vulnerability to manipulate, steal, or delete critical database information, leading to catastrophic impacts on data integrity and compliance with data protection regulations.

Affected Version(s)

pgAdmin 4 6.9 < 9.16

References

CVSS V4

Score:
9.5
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Fernando Bortotti <fernando.bortotti@bsd.com.br>
Ashesh Vashi <ashesh.vashi@enterprisedb.com>
.