Quick Answer
PostgreSQL has released emergency updates that fix 52 security flaws, including a type confusion bug tracked as CVE-2026-6460 (CVSS 8.8) that lets a database user who can create objects run code on the server with the operating system rights of the PostgreSQL process. The bug’s roots go back 22 years, to a change made in 2004. Update your server to 18.7, 17.12, 16.16, 15.20 or 14.25 (matching your major version) — and rebuild every C-language extension at the same time, because updating the server alone does not fully protect you. No attacks using the flaw have been reported, but a working exploit has been demonstrated publicly, so patching quickly is the right move.
Introduction
PostgreSQL is the database behind a huge share of the modern internet. Banks, hospitals, government systems, startups and cloud platforms all trust it with their most sensitive data — which is exactly why a serious flaw in it makes headlines.
On November 12, 2026, the PostgreSQL Global Development Group shipped new minor releases for every supported version of the database. The headline fix is CVE-2026-6460, a flaw that has been hiding in the code for more than two decades. A logged-in database user with the ability to create objects could abuse it to execute code on the server itself. In plain terms: someone who only has a database account could potentially escape the database and run commands on the machine underneath it.
The same release fixes 51 other flaws, including one that needs no login at all and several that affect the command-line tools database administrators use every day. This article explains what the bug is, who is affected, and exactly what to do about it.
What Happened: 52 Flaws Fixed in One Release
The PostgreSQL project published new minor versions on November 12, 2026: 18.7, 17.12, 16.16, 15.20 and 14.25. Together they fix 52 security issues. Thirty-two of those flaws carry a CVSS score of 8.8, the highest severity rating in this release.
The most serious of them is CVE-2026-6460. It is a type confusion vulnerability — a class of bug where software reads a piece of data as if it were a different type than it really is. In this case, the confusion happens inside PostgreSQL’s handling of composite types, and it can be turned into remote code execution on the database server.
The flaw was found and reported by security researcher Mehmet Ince, who also demonstrated a working exploit against PostgreSQL 18.6 and published a technical writeup this week. The PostgreSQL project credits more than a dozen reporters for this flaw, and Ince is credited on five other flaws in the same release.
How the Bug Works — In Plain English
To understand the flaw, it helps to know what a composite type is. In PostgreSQL, a composite type is a custom data type built from named fields, where each field has its own data type. Think of it like a small record or a row structure that you can define yourself — for example, an “address” type with a street field (text), a number field (integer) and a postcode field (text).
PostgreSQL has allowed users to change a column’s type since May 5, 2004. That is the date the researcher traces the root of this flaw to — which is why it is being called a 22-year-old bug. The technique for turning it into code execution relies on a later change from May 14, 2015.
Here is the problem in simple terms. A database user can prepare a query that holds a value of a composite type. Then, while the server is still holding that old value, the user changes the type of one of the value’s fields. The server does not notice the mismatch, and it reads the old value as if it had the new type. Reading memory under the wrong type is dangerous: it can crash the server, leak memory contents, and — with the right preparation — be steered into running attacker-chosen code.
Ince’s published writeup shows the SQL that crashes an unpatched server this way, plus a second step that leaks memory addresses. He deliberately did not publish the SQL for the final step that makes the server run a command. He also wrote that he could trigger the crash as a lowest-privileged login role, which means even a lightly privileged account can at least take the database down.
One important detail: the project’s own advisory describes the attacker only as someone who can create objects. Red Hat’s assessment says the attacker needs a database login with the ability to create or modify objects. None of the published sources say whether an account with only default privileges can go beyond crashing the server to actually running code. That uncertainty is not a reason to relax — a reliable crash alone is a denial-of-service weapon, and the full exploit clearly exists.
Who Is Affected
Every PostgreSQL version before the fixed releases is affected by CVE-2026-6460:
| Your version | Update to |
|---|---|
| PostgreSQL 18 | 18.7 |
| PostgreSQL 17 | 17.12 |
| PostgreSQL 16 | 16.16 |
| PostgreSQL 15 | 15.20 |
| PostgreSQL 14 | 14.25 |
There are two pieces of bad news for anyone on an older release. First, PostgreSQL 14 has now reached end of life, and 14.25 is its final release — there will be no more updates for it. Second, older major versions are also affected by this flaw and received no update at all. If you are running PostgreSQL 13 or earlier, the only supported path is to upgrade to a version that still gets fixes.
Managed database services are in scope too. The researcher adapted the exploit for managed PostgreSQL offerings and privately shared proofs of concept with their security teams back in August. The providers involved include AWS (Aurora and RDS), Microsoft (Azure Database for PostgreSQL), Google (AlloyDB), Supabase, Databricks and Ubicloud. The writeup does not state each service’s current patch status, so if you use a managed service, check with your provider — or check your service console — to confirm the fix has been applied to your instances. Cloud databases are attractive targets, as the recent Qubole AWS breach showed: attackers used a trusted vendor’s cloud account to reach customer environments, which is a reminder that database and cloud security cannot be treated as someone else’s problem.
What Else Was Fixed in This Release
CVE-2026-6460 is the headline, but it is not the only flaw worth knowing about:
An unauthenticated flaw. Only one flaw in the server requires neither a login nor any user action. CVE-2026-116322 lets an unauthenticated client trigger a restart of PostgreSQL 18 servers. A restart is not data theft, but an attacker who can restart your database at will can cause repeated outages — and outages are often used as cover for something worse.
Flaws in the client tools. Several fixes sit in the tools administrators run on their own machines, not just on the server. A crafted archive can make pg_restore run code as the user who runs the restore. And a compromised source server can make psql run code through the restore script in pg_dump’s tar output. That means the machines you use to back up and restore databases need their tools updated as well — a backup file or a database server you do not fully trust should be treated with the same suspicion as any other untrusted input.
Is It Being Exploited?
As of the release, no attacks using CVE-2026-6460 have been reported. The PostgreSQL project has not reported any exploitation, and CISA’s assessment in the CVE record lists exploitation as none.
That is reassuring, but it is not a reason to wait. A working exploit has been demonstrated, the crash and memory-leak steps are public, and the history of database flaws shows that the gap between a public proof of concept and real-world exploitation is often measured in days, not months. Attackers move fast when a patch is available — the recent PHP2Shell flaws in Check Point gateways were exploited in live campaigns within days of disclosure, and the same urgency applies here.
What to Do Now: The Checklist
The PostgreSQL project published clear guidance with the release. Work through it in order:
- Update the server. Move to 18.7, 17.12, 16.16, 15.20 or 14.25, matching your major version. Do this first — it is the core fix.
- Rebuild or update every C-language extension at the same time. This is the step most people will miss, and it matters. Extensions built against older releases will still load on the new server, but according to the project’s package maintainers they “may not be protected from the vulnerabilities fixed in this release.” Some extensions will also need source-code changes before they can be rebuilt. Note also that extensions rebuilt for the new releases can fail to load on older servers, and extension packages in the project’s RPM repositories now require the new minor release — so update the server and the extensions together, not one at a time.
- Restart PostgreSQL right after updating if it runs outside its package’s own service unit — for example, under a process manager like Patroni. An update that is installed but never restarted is not actually protecting you.
- Update the client tools on every machine that runs them — pg_dump, pg_restore, reindexdb and vacuumdb included. Do not leave an old pg_restore on a laptop or a backup server.
- Do not disable the new checks. The release adds a setting, composite_type_mismatch, that can turn the new protections off. The project says doing so carries security risks. Leave it alone.
- Follow the reindexing steps in the release announcement after updating. And if you use incremental backups, take a new full backup and base later incremental backups on it.
- Check your managed service. If your database runs on AWS, Azure, Google Cloud, Supabase or another managed platform, confirm the provider has applied the fix to your instances. Do not assume it — verify it.
- If you cannot update yet, know that there is no workaround. The project’s advisory and release notes offer no workaround for servers that cannot be updated. In that case, the practical mitigations are to limit who can create objects in the database, review database accounts and their privileges, restrict network access to the database to only the hosts that need it, and treat the update as urgent rather than routine.
Frequently Asked Questions
What is CVE-2026-6460?
It is a type confusion flaw in PostgreSQL’s handling of composite types. A database user who can create objects can change a field’s type while the server still holds old values of that type, causing the server to read memory as the wrong type. That can crash the server, leak memory, and be developed into code execution on the server.
Which PostgreSQL versions are affected?
All versions before 18.7, 17.12, 16.16, 15.20 and 14.25. PostgreSQL 14 is now end of life, and versions older than 14 are affected but will not receive a fix — they must be upgraded.
Do I need to log in to exploit it?
Yes — the attacker needs a database login with the ability to create or modify objects. It is not an unauthenticated flaw. But a low-privilege login was enough to crash the server in the researcher’s demonstration, so do not assume that limited accounts are safe.
Is CVE-2026-6460 being exploited in the wild?
No attacks have been reported, and CISA lists exploitation as none. However, a working exploit has been publicly demonstrated, so the window for patching before attackers catch up is short.
Why do I have to rebuild my extensions?
The fix adds version checks inside the server, but C-language extensions built against older releases can still carry the vulnerable behaviour. Extensions built against older releases still load, yet may not be protected. Rebuilding them against the fixed release closes that gap.
What if I use a managed PostgreSQL service?
The researcher shared proofs of concept with AWS, Microsoft, Google, Supabase, Databricks and Ubicloud in August. Check with your provider or in your service console that the fix has been applied to your instances.
What is CVE-2026-116322?
A separate flaw in the same release that lets an unauthenticated client trigger a restart of PostgreSQL 18 servers. It is the only flaw in the release that needs no login and no user action.
Key Takeaways
- PostgreSQL fixed 52 flaws on November 12, 2026, led by CVE-2026-6460 (CVSS 8.8), a type confusion bug with roots going back to 2004.
- An authenticated database user who can create objects could use it to run code on the server with the PostgreSQL operating system user’s rights.
- Update to 18.7, 17.12, 16.16, 15.20 or 14.25, matching your major version.
- Rebuild every C-language extension at the same time — updating the server alone is not full protection.
- Update pg_dump, pg_restore and other client tools on every machine, restart the server after updating, and do not turn off the new checks.
- PostgreSQL 14 is end of life; older versions get no fix and must be upgraded.
- No attacks have been reported yet, but a working exploit has been demonstrated — patch now, while the window is still open.
Conclusion
CVE-2026-6460 is a reminder that even the most trusted, battle-tested open-source software can carry a flaw for decades. The bug survived 22 years of review, testing and heavy real-world use — and it took a researcher deliberately probing an old feature to find it. The good news is that the fix is available, the upgrade path is a minor release, and no exploitation has been reported.
The risk now is complacency: treating a minor version update as something that can wait for the next maintenance window, or updating the server and forgetting the extensions. Both mistakes leave the door open. Update the server, rebuild the extensions, update the client tools, restart the service and verify your managed instances. It is a short job — and it is the difference between a patched database and one that a low-privilege login can crash, or worse.
Source: The Hacker News — PostgreSQL Patches 52 Flaws, Including 22-Year-Old Bug Enabling Authenticated RCE
