Skip to main content
Mallory
← Back to News
widely-deployed-product-advisoryopen-source-dependency-vulnerabilityprivilege-escalation-method

PostgreSQL Patches Code Execution, Privilege Escalation and Row-Security Bypass Flaws

Patch & Detection Intelligence · 32 sources · Updated 1d ago · First seen Nov 26, 2026

PostgreSQL Patches Code Execution, Privilege Escalation and Row-Security Bypass Flaws

PostgreSQL released 18.7, 17.12, 16.16, 15.20 and 14.25 on November 12 to address vulnerabilities spanning database execution, authorization, procedural languages, extensions and client utilities. Affected branches vary by issue, with reported CVSS scores reaching 8.8. Multiple memory-safety flaws allow database users or object creators to execute code as the operating-system account running PostgreSQL, including defects in parallel record handling, text-search processing and record-field assignment. Other attack paths involve compromised logical-replication publishers or foreign servers. PostgreSQL’s reporting credits include Claude and Ada Logics on nine CVEs and Anthropic’s OSS program on twenty fixes, including one without a CVE identifier in the supplied reporting; the program’s model version was not identified (Bugflation).

The release also closes material data-isolation and administrative-tool risks. CVE-2026-16237 permits users with insert and update privileges on an auto-updatable view to read and modify underlying rows despite the view’s filter, even with a security barrier; CVE-2026-120154 separately permits row-security bypass for reads under specified table privileges. Extension-related flaws can enable bootstrap-superuser execution, while CVE-2026-116314 allows a crafted archive to execute operating-system code as the user running pg_restore, beyond expected SQL execution at the restore destination (Alpine tracker). Administrators should upgrade affected servers and client utilities, prioritizing environments with untrusted database users, third-party extensions, external replication publishers or externally supplied backups. Review privileged maintenance and restore workflows alongside patch deployment. The supplied reporting does not describe active exploitation, and code-execution potential remains unconfirmed for two PL/Perl issues, CVE-2026-116309 and CVE-2026-116326.

Why it matters

PostgreSQL deployments and administrative clients face potential database-host or client-host code execution, privilege escalation, memory disclosure and failures of row-level data isolation; reported CVSS scores reach 8.8. Exposure spans multiple release branches, but practical risk depends on database-user privileges, object-creation rights, extension and language use, external data relationships, and backup or maintenance workflows. The supplied reporting describes no active exploitation or confirmed victim incidents; this is a potentially broad product exposure, not an observed campaign. Release reporting, additional release reporting

  • Business consequences: compromise can cross database-to-OS trust boundaries, while view and row-security bypasses can expose data separated by application or tenant policy. CVE-2026-16237 permits unauthorized reads and writes across a view's base table; CVE-2026-120154 permits unauthorized reads but not improper writes. View bypass, row-security bypass
  • Administrative exposure: an untrusted archive can compromise the OS account running pg_restore, independently of expected SQL execution at the restore destination. Restore vulnerability
  • Industry-specific impact: Industry-specific impact is not established. The supplied content identifies products and technical conditions, not affected organizations or targeted sectors.
  • Geography-specific impact: Geography-specific impact is not established. No affected population, operation, geographic targeting or jurisdiction-specific obligation is identified.
Patch this, or something else?See real exploitation activity before you spend the cycle.
Triage this advisory
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

31 events · Nov 12, 2026
  1. Nov 12, 202616d ago

    PostgreSQL releases security updates across five supported branches

    PostgreSQL released versions 18.7, 17.12, 16.16, 15.20, and 14.25, addressing vulnerabilities with reported CVSS scores up to 8.8. Reporting credits included nine CVEs attributed to Claude and Ada Logics, twenty fixes attributed to Anthropic’s OSS program, and two additional fixes with independent AI reporting credits.

    PostgreSQL credits Claude and Ada Logics on nine further fixes - Bugflation
  2. Date unknown

    CVE-2026-116310 exposes server memory through COPY FROM error reporting

    A longer input row following an ignored or nullified conversion error can trigger a use-after-free that discloses server memory. PostgreSQL 17 and 18 are affected, and file_fdw also reaches the vulnerable path in affected PostgreSQL 18 releases.

    CVE-2026-116310 - Alpine Security Tracker
  3. Date unknown

    CVE-2026-16237 reveals read and write bypasses through updatable views

    An attacker with INSERT and UPDATE privileges on an auto-updatable view can repeatedly use INSERT ... ON CONFLICT DO UPDATE to read and modify every row in its base table. The flaw bypasses the view’s WHERE condition even when security_barrier is enabled.

    CVE-2026-16237 - Alpine Security Tracker
  4. Date unknown

    CVE-2026-6467 exposes bootstrap-superuser execution through extension search paths

    An attacker with database-level CREATE privilege can manipulate schema resolution so a trusted-extension script executes attacker-chosen SQL, enabling arbitrary code execution as the bootstrap superuser. CREATE EXTENSION and ALTER EXTENSION are affected.

    CVE-2026-6467 - Alpine Security Tracker
  5. Date unknown

    CVE-2026-120147 reveals a code-execution use-after-free in dblink

    Type conversion code can re-enter dblink and close a connection while an outer dblink call is still reading its results. An object creator can exploit the resulting use-after-free to execute code as the operating system user running PostgreSQL.

    CVE-2026-120147 - Alpine Security Tracker
  6. Date unknown

    CVE-2026-120148 exposes code execution through extended statistics

    An object creator can exploit type confusion involving an anonymous RECORD statistics expression whose backend-local type identifier denotes a different row type in another session. Successful exploitation executes code as the operating system user running PostgreSQL.

    CVE-2026-120148 - Alpine Security Tracker
  7. Date unknown

    CVE-2026-120153 reveals SQL injection in extension-script substitutions

    An attacker with database-level CREATE privilege can use a specially crafted schema or owner name to execute arbitrary code as the bootstrap superuser. Exploitation requires a non-bundled extension with a vulnerable script pattern.

    CVE-2026-120153 - Alpine Security Tracker
  8. Date unknown

    CVE-2026-120149 exposes code execution through foreign batch inserts

    A foreign server can trigger a heap-based buffer overflow by reporting that it inserted more rows than PostgreSQL supplied. The same condition can arise legitimately in postgres_fdw when a remote-table rule expands an INSERT into additional rows.

    CVE-2026-120149 - Alpine Security Tracker
  9. Date unknown

    CVE-2026-16240 reveals a format-string memory disclosure in pg_basebackup

    A compromised server can supply backup manifest bytes that cause pg_basebackup to disclose client-memory contents. Those bytes are not returned to the server, so successful exploitation requires separate implementation-specific secrets; integrity impact is considered unlikely.

    CVE-2026-16240 - Alpine Security Tracker
  10. Date unknown

    CVE-2026-120151 exposes code execution in PL/pgSQL record-field assignment

    A reentrant domain CHECK can change a RECORD variable’s row type while a value is being cast. The resulting type confusion allows an object creator to execute code as the operating system user running PostgreSQL.

    CVE-2026-120151 - Alpine Security Tracker
  11. Date unknown

    CVE-2026-120152 reveals memory disclosure in pg_show_all_settings()

    A database user can retrieve memory contents when a module loads while pg_show_all_settings() scans custom-variable placeholders that the module replaces and frees. The use-after-free affects PostgreSQL 16–18.

    CVE-2026-120152 - Alpine Security Tracker
  12. Date unknown

    CVE-2026-120154 exposes a row-security read bypass through insert conflicts

    An attacker with INSERT, UPDATE, and applicable SELECT privileges can repeatedly use INSERT ... ON CONFLICT DO UPDATE to read every row despite row security policies. Unlike CVE-2026-16237, this flaw does not enable improper writes.

    CVE-2026-120154 - Alpine Security Tracker
  13. Date unknown

    CVE-2026-120150 reveals a use-after-free in expanded-record domain checks

    Repeated checks of a domain over a composite type can reuse a dangling memory-context pointer. An object creator can exploit the flaw to execute code as the operating system user running PostgreSQL.

    CVE-2026-120150 - Alpine Security Tracker
  14. Date unknown

    CVE-2026-116331 exposes code execution in min/max aggregate optimization

    An object creator can exploit a user-defined aggregate’s SORTOP option to make the planner treat differing input and result types as identical. The resulting type confusion allows code execution as the operating system user running PostgreSQL.

    CVE-2026-116331 - Alpine Security Tracker
  15. Date unknown

    CVE-2026-120146 reveals authorization bypasses in REASSIGN OWNED

    Missing authorization checks allow a role granted INHERIT but not SET to transfer objects to the granted role and allow database ownership reassignment without CREATEDB. Equivalent ALTER ... OWNER commands enforce the restrictions bypassed by REASSIGN OWNED.

    CVE-2026-120146 - Alpine Security Tracker
  16. Date unknown

    CVE-2026-116315 reveals a code-execution flaw in tsvector_delete()

    A heap-based buffer overflow allows a database user to execute code as the operating system account running PostgreSQL. The trigger is a tsvector with nonstandard but valid lexeme ordering that requires additional alignment padding in the result.

    CVE-2026-116315 - Alpine Security Tracker
  17. Date unknown

    CVE-2026-120145 exposes code execution through logical replication

    A compromised publisher can name a system catalog as a replication target to execute code as the operating system user running a superuser-owned subscription. Only subscriptions owned by a superuser are vulnerable.

    CVE-2026-120145 - Alpine Security Tracker
  18. Date unknown

    CVE-2026-116326 reveals stale jump-buffer use in PL/Perl error handling

    An object creator can trigger use of a stale sigjmp_buf through a tied Perl object or an overloaded conversion that throws while PL/Perl handles another error. Arbitrary code execution on some platforms has not been ruled out but is unconfirmed.

    CVE-2026-116326 - Alpine Security Tracker
  19. Date unknown

    CVE-2026-116330 identifies a gap in the CVE-2025-8714 fix

    A predictable restriction key in restore.sql generated for pg_dump tar-format dumps allows a compromised origin server to execute code on the client. Code runs as the operating system account executing psql.

    CVE-2026-116330 - Alpine Security Tracker
  20. Date unknown

    CVE-2026-116333 exposes attacker-chosen memory reads in parallel B-tree scans

    An object creator can read attacker-chosen server-memory addresses by using a function incorrectly marked PARALLEL SAFE or STABLE to make workers build different scan-key arrays. The buffer over-read affects PostgreSQL 17 and 18.

    CVE-2026-116333 - Alpine Security Tracker
  21. Date unknown

    CVE-2026-116323 reveals a PL/Tcl use-after-free enabling code execution

    An object creator can execute code as the database operating system user through a domain CHECK that re-enters the Tcl interpreter. The reentrant operation frees or changes a string still used by the outer result conversion.

    CVE-2026-116323 - Alpine Security Tracker
  22. Date unknown

    CVE-2026-116321 exposes server memory through array element assignment

    Improper null termination allows a database user to disclose server memory by changing the final byte of a fixed-length name value and passing it to code that interprets it as a C string.

    CVE-2026-116321 - Alpine Security Tracker
  23. Date unknown

    CVE-2026-116328 reveals code execution through memory-context integer wraparound

    A database user can exploit integer wraparound in generation memory contexts to execute code as the operating system user running PostgreSQL. The flaw involves reusing a freed allocation larger than 1 GB for smaller chunks and affects PostgreSQL 16–18.

    CVE-2026-116328 - Alpine Security Tracker
  24. Date unknown

    CVE-2026-116325 exposes SQL injection in parallel reindexdb operations

    A crafted index name can inject SQL when reindexdb uses --jobs and --index together, executing with the privileges of the database user running the utility. The flaw affects PostgreSQL 17 and 18.

    CVE-2026-116325 - Alpine Security Tracker
  25. Date unknown

    CVE-2026-116316 reveals a bypass in security-restricted operations

    An object creator can use a domain, enum, or range type in pg_temp to execute SQL as the caller of a security-restricted operation if the victim session subsequently queries an unqualified type name. Autovacuum and other common users of these operations are unaffected because they do not execute the required queries.

    CVE-2026-116316 - Alpine Security Tracker
  26. Date unknown

    CVE-2026-116309 identifies potentially exploitable PL/Perl type confusion

    An object creator can trigger type confusion by blessing a non-hash reference into PostgreSQL::InServer::ARRAY. Arbitrary code execution is considered possible, but sufficient attacker control of the pointer has neither been confirmed nor ruled out.

    CVE-2026-116309 - Alpine Security Tracker
  27. Date unknown

    CVE-2026-116313 exposes SQL execution through vacuumdb search-path handling

    A database owner can shadow operators in the vacuumdb --missing-stats-only catalog query to execute SQL as the user running the utility. The issue affects PostgreSQL 18 and an invocation recommended by the pg_upgrade documentation.

    CVE-2026-116313 - Alpine Security Tracker
  28. Date unknown

    CVE-2026-116312 reveals incorrect MERGE trigger transition handling

    A MERGE on a partitioned table that performs an INSERT before an UPDATE can cause an AFTER trigger to process the wrong new row. The flaw affects PostgreSQL 15–18; earlier major versions are unaffected.

    CVE-2026-116312 - Alpine Security Tracker
  29. Date unknown

    CVE-2026-116304 reveals code execution in parallel RECORD coordination

    A use-after-free in coordination of anonymous RECORD type identifiers allows a database user to execute code as the operating system account running PostgreSQL. One process can free a shared tuple descriptor while another retains and later uses its address.

    CVE-2026-116304 - Alpine Security Tracker
  30. Date unknown

    CVE-2026-116314 exposes code execution through crafted pg_restore archives

    Improper input validation allows a crafted non-plain archive to execute arbitrary code as the operating system user running pg_restore. This exceeds the legitimate ability of archive contents to execute SQL at the restore destination.

    CVE-2026-116314 - Alpine Security Tracker
  31. Date unknown

    CVE-2026-116303 details reveal a PostgreSQL cast authorization bypass

    A missing authorization check allows database users to invoke cast functions without EXECUTE privilege through foreign keys, to_json(), and other mechanisms. Exploitation requires finding restricted cast functions with implementation-specific confidentiality impacts, for which the advisory notes few or no practical examples.

    CVE-2026-116303 - Alpine Security Tracker
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.