
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-6471 is a missing authorization vulnerability in PostgreSQL's logical decoding subsystem that allows an authenticated non-superuser holding the REPLICATION privilege to load arbitrary shared libraries (via dlopen) by specifying a malicious logical decoding plugin, resulting in arbitrary code execution as the OS account running the PostgreSQL server. Affected versions span PostgreSQL 14.x before 14.24, 15.x before 15.19, 16.x before 16.15, 17.x before 17.11, and 18.x before 18.5. The vulnerability was published on August 13, 2026, with patches released the same day. It carries a CVSS v3.1 base score of 7.2 (High) (PostgreSQL Advisory).
The root cause is CWE-862 (Missing Authorization): PostgreSQL's logical decoding plugin selection mechanism does not enforce sufficient privilege checks beyond the REPLICATION role, allowing a non-superuser to specify an arbitrary shared library path as a decoding plugin. When the server processes this request, it calls dlopen() on the attacker-supplied path, loading and executing the library as the OS user running the PostgreSQL process. Exploitation requires network access to the PostgreSQL instance and a valid database account with REPLICATION privilege granted — a privilege that is not superuser-level but is still considered elevated. No public proof-of-concept code has been reported at this time (PostgreSQL Advisory, PostgreSQL Release Notes).
Successful exploitation grants an attacker arbitrary code execution as the operating system account running the PostgreSQL server (typically postgres), resulting in full compromise of confidentiality, integrity, and availability of the database server and any data it hosts. An attacker could exfiltrate all database contents, modify or destroy data, install persistent backdoors, and potentially pivot to other systems accessible from the database server's OS account. The scope is limited to the server's OS account (unchanged scope per CVSS), but the practical impact is severe given the typical sensitivity of database workloads (PostgreSQL Advisory).
No public proof-of-concept exploit code has been reported, and there is no evidence of in-the-wild exploitation as of the time of publication (PostgreSQL Advisory). The EPSS score is approximately 0.51%, reflecting a currently low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires an authenticated account with REPLICATION privilege, which limits the attacker pool but does not require superuser access. The NVD SSVC assessment classifies exploitation as "none" at this time, though technical impact is rated "total" (PostgreSQL Advisory).
.so on Linux, .dll on Windows) that executes attacker-controlled code (e.g., a reverse shell) when loaded. Place this file in a path readable by the OS account running PostgreSQL.psql "replication=database" or a custom client) with the compromised REPLICATION-privileged account.CREATE_REPLICATION_SLOT or START_REPLICATION command specifying the path to the malicious shared library as the logical decoding plugin name.dlopen() on the attacker-supplied path, loading the malicious library and executing its initialization code as the PostgreSQL OS account, achieving remote code execution (PostgreSQL Advisory).replication=database parameter) from unfamiliar client IPs on port 5432; outbound connections from the PostgreSQL server process to unknown external hosts.postgresql.log) showing CREATE_REPLICATION_SLOT or START_REPLICATION commands referencing unusual or absolute file paths as plugin names; authentication log entries for REPLICATION-privileged accounts from unexpected source addresses..so or shared library files in directories accessible to the postgres OS account; new files created in /tmp, /var/lib/postgresql, or other writable directories by the postgres user.curl, wget, nc); unusual CPU or network activity originating from the postgres OS account.PostgreSQL has released patched versions addressing this vulnerability: 14.24, 15.19, 16.15, 17.11, and 18.5. Administrators should upgrade to the appropriate patched version for their major release branch as the primary remediation (PostgreSQL Advisory, PostgreSQL Release Notes). As an interim workaround, audit and revoke REPLICATION privilege from any accounts that do not strictly require it (REVOKE REPLICATION FROM <role>;), and restrict network access to the PostgreSQL port to trusted hosts only. Debian, Ubuntu, SUSE, openSUSE, Alpine, and FreeBSD have all issued updated packages (Debian Advisory, Ubuntu Advisory, SUSE Advisory).
PostgreSQL released the fix as part of a coordinated multi-version security update on August 13, 2026, covering versions 14 through 18 (PostgreSQL Release). Major Linux distributions including Debian, Ubuntu, SUSE, openSUSE, Alpine, and FreeBSD promptly issued updated packages. Security scanning vendors Tenable (Nessus) and Qualys released detection plugins shortly after disclosure. Community commentary noted the significance of the vulnerability for organizations that grant REPLICATION privilege to non-superuser accounts, with HeroDevs highlighting the broader context of PostgreSQL 14 approaching end-of-life in November 2026 (HeroDevs Blog).
Fix availability across major Linux distributions and their releases.
bookworm
postgresql-15: 15.19-0+deb12u1
sid
postgresql-18: 18.6-1
trixie
postgresql-17: 17.11-0+deb13u1
bionic (esm-infra)
postgresql-10
devel
postgresql-18: 18.6-3
focal (esm-infra)
postgresql-12
jammy
postgresql-14: 14.24-0ubuntu0.22.04.1
noble
postgresql-16: 16.15-0ubuntu0.24.04.1
resolute
postgresql-18: 18.6-0ubuntu0.26.04.1
trusty (esm-infra-legacy)
postgresql-9.3
xenial (esm-infra-legacy)
postgresql-9.5
RHEL 8
:appstream:postgresql:12/postgresql/postgresql-0:15.19-1.module%2Bel8.10.0%2B24831%2B9c841e4e
RHEL 9
:appstream:postgresql/pg_repack-0:1.5.1-1.module%2Bel9.8.0%2B24090%2B8f0ee565
RHEL 10
postgresql18/postgresql18-0:18.6-1.el10_2
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."