
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-18447 is a type confusion vulnerability in PostgreSQL SQL-language functions that allows an authenticated database user (object creator) to execute arbitrary code as the operating system user running the database process, via an output parameter of type "any". It affects PostgreSQL versions 14.x before 14.25, 15.x before 15.20, 16.x before 16.16, 17.x before 17.12, and 18.x before 18.7. The vulnerability was published on November 12, 2026, with patches released simultaneously. It carries a CVSS v3.1 base score of 8.8 (High) (GitHub Advisory, PostgreSQL Security).
The root cause is classified as CWE-843 (Access of Resource Using Incompatible Type / Type Confusion), where PostgreSQL's handling of SQL-language function output parameters fails to enforce type safety when the declared output type is "any". An attacker who has the ability to create database objects (e.g., functions) can define a SQL-language function with an output parameter typed as "any", causing the database engine to misinterpret memory at runtime and redirect execution to attacker-controlled code. Exploitation requires network access and low-privilege database credentials, but no user interaction or elevated database roles beyond the ability to create functions (GitHub Advisory, Red Hat Bugzilla). A patch commit is available in the PostgreSQL git repository (PostgreSQL Git).
Successful exploitation grants an attacker arbitrary code execution with the privileges of the OS user running the PostgreSQL database process (typically postgres), resulting in full compromise of confidentiality, integrity, and availability of the database host. An attacker could read or exfiltrate all data stored in the database, modify or destroy data, install backdoors, and potentially pivot to other systems accessible from the database server. The impact is scoped to the affected database host but can enable significant lateral movement in environments where the database server has broad network access (GitHub Advisory, Red Hat Bugzilla).
As of the time of disclosure, there is no public proof-of-concept exploit code and no evidence of in-the-wild exploitation (GitHub Advisory). The EPSS score is approximately 0.59%, placing it in the 49th percentile for exploitation likelihood within 30 days. The NVD SSVC assessment indicates exploitation is currently "none" and the attack is not automatable. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported (GitHub Advisory).
psql or a compatible client."any" that embeds a crafted payload exploiting the type confusion flaw, causing the database engine to misinterpret memory and execute attacker-controlled code.postgres).postgresql.log) showing creation of SQL-language functions with output parameters of type "any" by non-administrative users; unexpected CREATE FUNCTION statements from low-privilege accounts.pg_proc with prorettype or argument types referencing "any" (pg_type.typname = 'any'); functions created by unexpected users.postgres OS process (e.g., /bin/sh, bash, curl, wget, python) visible in process trees.postgres OS user, including cron jobs, SSH authorized keys, or web shells (Red Hat Bugzilla, PostgreSQL Security).Upgrade PostgreSQL to the patched versions: 14.25, 15.20, 16.16, 17.12, or 18.7 (PostgreSQL News). As a workaround where immediate patching is not possible, restrict the CREATE FUNCTION privilege to trusted users only by revoking it from untrusted roles (REVOKE CREATE ON SCHEMA public FROM PUBLIC). Additionally, audit existing SQL-language functions for suspicious output parameters of type "any" using SELECT proname, proargtypes FROM pg_proc WHERE prolang = (SELECT oid FROM pg_language WHERE lanname = 'sql'). Red Hat has issued errata RHSA-2026:100123 for affected RHEL packages (Red Hat Errata), and Amazon Linux advisories are also available (Amazon Linux).
The PostgreSQL project released a coordinated security update alongside the November 2026 patch release, addressing this and other CVEs simultaneously (PostgreSQL News). Security coverage from outlets such as Security Online and Brandefense highlighted the release as a significant multi-CVE update (Security Online, Brandefense). The pganalyze blog and HeroDevs also published technical summaries of the November 2026 security release for the PostgreSQL community (pganalyze, HeroDevs). Red Hat and Microsoft both acknowledged the vulnerability through their respective advisory channels (Red Hat CVE, Microsoft MSRC).
Fix availability across major Linux distributions and their releases.
bookworm
postgresql-15: 15.20-0+deb12u1
sid
postgresql-18: 18.7-1
trixie
postgresql-17: 17.12-0+deb13u1
bionic (esm-infra)
postgresql-10
devel
postgresql-18
focal (esm-infra)
postgresql-12
jammy
postgresql-14
noble
postgresql-16
resolute
postgresql-18
trusty (esm-infra-legacy)
postgresql-9.3
xenial (esm-infra-legacy)
postgresql-9.5
RHEL 8
postgresql:12/postgresql.src
RHEL 9
postgresql.src
RHEL 10
postgresql16.src
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."