PostgreSQL corrects CVE-2026-6460 per type confusion in composite types of minor patches published

Author: Published 5 min de lectura 27 reading

The images in this article were generated with artificial intelligence. How we publish

A type-confusion vulnerability in PostgreSQL allows a database user who can create objects to run code on the server with the user privileges of the operating system that hosts PostgreSQL. The failure, identified as CVE-2026-6460 and qualified with an 8.8 CVSS, was corrected in the minor versions published yesterday: 18.7, 17.12, 16.16, 15.20 and 14.25. In addition to this server patch, complete mitigation requires reconstructing any C extension installed on the server, because the extensions compiled against previous versions may remain vulnerable even if the server binary is updated.

In confirmed technical terms, the problem affects composite types (composite types), which group named fields with their own data types. PostgreSQL allows to change the type of one of those columns in running time; if there are old values of that column in other internal structures, the engine could read those old values as if they had the new type, generating a type confusion. The correction introduced reviews and validates the version of the values stored against the definition of the type before using them, so that the server detects discrepancies and avoids interpreting data with an incorrect semantics. These technical details appear in the notes of the official project release ( PostgreSQL launch notes) and in the public register of the EVC ( NVD CVE-2026-6460).

PostgreSQL corrects CVE-2026-6460 per type confusion in composite types of minor patches published
Image generated with IA.

There is also a public explosion demonstration prepared by the researcher Mehmet Ince; he showed a method that works in PostgreSQL 18.6 and described it in a technical report: first he prepares a query that keeps a value in memory, then alters the type of one of the fields of that value and finally runs the query so that the server uses the old value with the new definition, causing a fall (crash) and, in a next step, filtering memory addresses. The report contains the SQL that causes the crash and the pointer filtering phase; it does not publicly include the SQL of the final step that would launch a system order, although Ince describes having been able to get to the execution of commands with a login role of very low privileges. The project credited Ince and other reporters for the chain of errors corrected in this delivery.

As for the necessary scope and privileges, the official sources describe the attacker as "someone who can create objects." The analysis of packers such as Red Hat specifies that a database login with the capacity to create or modify objects is needed. There is no public confirmation that an account with only default privileges can run code until the end; in other words, it is confirmed that the explosion can cause a crash with few guarantees over the final climb without extra privileges, but is not confirmed if a user with fully default permissions can move from fall to execution control. The agencies and the project further point out that, so far, no active attacks have been reported in nature by exploiting this failure and the public entry of the CVE records exploitation as non-existent or not observed.

The practical implications are clear and serious if you consider realistic scenarios: code that runs with the user's permissions of the operating system running PostgreSQL (often 'postgres') can read or modify databases, exfilter data, install back doors, or, in poorly configured environments, pivote from a container or VM to adjacent infrastructure. The fact that the researcher adapted concept tests for managed services and privately shared PoC with suppliers such as AWS, Microsoft, Google and others indicates risk if corrections are not applied to managed services with the same urgency.

What a database manager should do now: first, immediately invent all of your own PostgreSQL instances and know the exact greater / minor version of each. Update the servers to the corresponding minor version: 18.7, 17.12, 16.16, 15.20 or 14.25, according to their larger branch. At the same time, reconstruct or reinstall all the extensions written in C: binary extensions compiled against previous versions may remain unsafe even with the updated server. If you use RPM packages from the project, take into account that the repositories already require the new minor version for the extension packages; if your deployment runs PostgreSQL outside the standard service unit (e.g. with Patroni), restart the service after the update so that all parts load the new libraries.

PostgreSQL corrects CVE-2026-6460 per type confusion in composite types of minor patches published
Image generated with IA.

Also update the client tools (pg _ dump, pg _ restore, reindexdb, vacuumdb and the like) in all the machines that run them; several corrected faults affect pg _ restore and scripts generated by pg _ dump that could be able to run code if the content of the backup or the home machine was compromised. Do not activate the new composite _ type _ mismatch option to disable checks: the project expressly warns that doing so entails security risks. If you cannot update immediately, the official publication does not provide a complete alternative mitigation.

After applying patches and remodel extensions, follow the recommended post-update steps: reindate according to the launch note instructions and, if you use incremental copies, generate a new full backup and base the subsequent increals on it. Review the role permissions and limit the ability to create or alter objects only to trust accounts; if feasible, perform an audit of roles that have CREATE in schemes or CREATE DATABASE, because these privileges are those associated with the threat as described by public assessments.

Finally, it distinguishes between confirmed facts and areas of uncertainty: it is confirmed that there is a type confusion failure in composites, that the correction adds version checks and that there are Crash PoC and memory filtering; it is confirmed that no attacks on nature have been reported according to public sources. It is less clear - not publicly confirmed - if a user with only default privileges can carry the complete explosion to the execution of commands in all environments. Given the potential impact and high CVSS score, treat this as a high priority of patching and coordination with managed service providers, extension reconstruction and privilege review.

Coverage

Related

More news on the same subject.