The Hacker News
PostgreSQL Fixes 12-Year-Old Flaw Allowing Replication Takeover
Part of the CVE-2026-6471 story · since 4 Sep
- Fri 4 Sep, 12:10 UTC. SecurityWeek, first report. PostgreSQL Flaw Lets Low Privilege Users Plant Persistent Backdoors.
- Fri 4 Sep, 14:30 UTC. Security Affairs, its first report on the story. PostGREShell Flaw Lets PostgreSQL Replication Accounts Hijack Servers.
- Fri 4 Sep, 16:17 UTC. The Hacker News, its first report on the story. PostgreSQL Fixes 12-Year-Old Flaw Allowing Replication Takeover. This article, 3rd of 3.
PostgreSQL has issued a security fix for a 12-year-old flaw that could enable a replication account to run arbitrary code as the operating-system user running the database server. Tracked as CVE-2026-6471 (CVSS 7.2), the vulnerability has been present since logical decoding was introduced in PostgreSQL 9.4 in 2014 and affects releases prior to 18.6, 17.11, 16.15, 15.19, and 14.24.
The problem arises because a REPLICATION role can specify a loadable library for logical decoding without the usual path restrictions, which in practice allowed exploitation via backup tools, standby servers, CDC pipelines and similar setups that carry the REPLICATION attribute. Cyera’s research described the flaw as PostGREShell, with evidence that a crafted CREATE_REPLICATION_SLOT command could pass a library name to the loader, bypassing prior protections.
The fix, shipped on 13 August, introduces a new server parameter called output_plugin_libraries, which acts as a whitelist of allowed logical decoding output plugins. By default it permits pgoutput and test_decoding; any other plugin, such as wal2json or decoderbufs, will be refused until an administrator adds the library to the list and reloads the configuration.
Administrators are advised to identify currently used plugins with a SELECT DISTINCT plugin FROM pg_replication_slots WHERE plugin IS NOT NULL; upgrade to the fixed releases (18.6, 17.11, 16.15, 15.19, or 14.24 or their distribution equivalents); and then add non-default plugins to output_plugin_libraries and reload with pg_ctl reload or pg_reload_conf. A restart is not required.
As of 4 September 2026, PostgreSQL notes, advice and patches cover supported branches 14–18, with some distribution advisories flagging additional configuration changes when extensions are involved. In the meantime, Cyera recommends removing the REPLICATION attribute where unnecessary and restricting replication entries, among other mitigations.
How the story developed
3 articles from 3 outlets since 4 Sep. Quiet since 4 Sep. This was the 3rd report, 4 hours after the first.
- Fri 4 Sep, 12:10 UTC. SecurityWeek, first report. PostgreSQL Flaw Lets Low Privilege Users Plant Persistent Backdoors.
- Fri 4 Sep, 14:30 UTC. Security Affairs, its first report on the story. PostGREShell Flaw Lets PostgreSQL Replication Accounts Hijack Servers.
- Fri 4 Sep, 16:17 UTC. The Hacker News, its first report on the story. PostgreSQL Fixes 12-Year-Old Flaw Allowing Replication Takeover. This article, 3rd of 3.
- CVE not in KEV
- No CVE
- Larger: an outlet’s first report
- Coverage over time
- Quiet time, folded
Show all 3 articles as a listHide the list
- Fri 4 SepDay 03
- PostgreSQL Flaw Lets Low Privilege Users Plant Persistent Backdoors12:10 · SecurityWeek · First report
- PostGREShell Flaw Lets PostgreSQL Replication Accounts Hijack Servers14:30 · Security Affairs
- PostgreSQL Fixes 12-Year-Old Flaw Allowing Replication Takeover16:17 · The Hacker News · This article, 3rd of 3