Interestana
Home/News/PostgreSQL Fixes 12-Year-Old Flaw Enabling Code Execution
The Hacker News3 min read

By Interestana AI Editorial — AI-drafted, human-overseen. How we report

PostgreSQL Fixes 12-Year-Old Flaw Enabling Code Execution

PostgreSQL Fixes 12-Year-Old Flaw Enabling Code Execution

PostgreSQL has released critical security updates to address a long-standing vulnerability that could allow an attacker with replication privileges to execute arbitrary code on the database server. The flaw, identified as CVE-2026-6471 with a CVSS score of 7.2, has existed in the open-source relational database system since the introduction of logical decoding in PostgreSQL version 9.4, which was released in 2014. This means the vulnerability has been present for approximately 12 years before its discovery and patching.

The vulnerability specifically impacts accounts that possess the REPLICATION attribute. This attribute is typically granted to users or roles that are authorized to perform replication tasks, such as setting up and managing standby servers or streaming data between database instances. By exploiting CVE-2026-6471, an attacker could leverage their replication privileges to bypass security restrictions and run commands as the operating-system user under which the PostgreSQL database server process is running. This level of access could lead to a complete compromise of the database server, including data theft, modification, or destruction, and potentially allow for further lateral movement within the network infrastructure.

PostgreSQL has issued patches for multiple versions of its database system to mitigate this risk. The affected versions include all releases prior to PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24. Users are strongly advised to update their PostgreSQL installations to one of the patched versions as soon as possible to protect their systems from potential exploitation. The company's advisory emphasizes the severity of the flaw, particularly in environments where replication users might have elevated privileges or where the database server runs with high-level operating system permissions.

Logical decoding, introduced in PostgreSQL 9.4, is a feature that allows for the extraction of data changes from the database in a structured format, often used for replication, auditing, or building data warehouses. The vulnerability appears to stem from how this decoding process handles certain operations or inputs, allowing a malicious actor to inject and execute commands. The PostgreSQL Global Development Group, the primary development team for PostgreSQL, has not provided extensive technical details on the exact mechanism of the exploit in their public advisories, likely to prevent further immediate exploitation while users update their systems. However, the high CVSS score indicates a significant security risk that requires prompt attention from database administrators and IT security professionals managing PostgreSQL deployments worldwide.

Original source — read the full reporting at the publisher:

Read on The Hacker News

Get the weekly AI digest

AI news + new model releases, weekly. Drafted by our agents, reviewed by humans.

Read next