CVE-2026-6471·PostgreSQL vulnerability
Missing authorization in PostgreSQL logical decoding allows a non-superuser holding REPLICATION privilege to dlopen any file visible to the operating system account running the server, via the choice of logical decoding plugin. This in turn runs arbitrary code as that account. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.
- Severity
- high
- Software
- PostgreSQL
- Fixed in
- 18.5
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.53% — higher than 43% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-6471 scores 7.2 on CVSS, so a successful attack would be serious — but at 0.53%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 18.0
Until: 18.5
Fixed in: 18.5
How to fix this CVE
Upgrade PostgreSQL immediately to version 18.6 or later to close a privilege escalation gap in logical decoding plugin handling. Organizations running PostgreSQL 18.0–18.5 should prioritize this update, as it prevents users with REPLICATION privileges from loading arbitrary dynamic libraries and executing code with server account permissions.
sudo dnf update postgresql-server-18.6Defensia detects this vulnerability
How to check if you are affected
- Check installed PostgreSQL version: SELECT version();
- Verify REPLICATION privilege holders: SELECT usename FROM pg_user WHERE usesuper = false AND usereplication = true;
- Review logical decoding plugin directory permissions: ls -la /usr/lib/postgresql/18/lib/ | grep decoding
- Confirm patch installation: SELECT version(); should show version 18.6 or higher
FAQ
What is CVE-2026-6471?
This vulnerability allows database users with REPLICATION privileges—but not superuser status—to bypass authorization controls and load arbitrary shared libraries through logical decoding plugins, executing code with the privileges of the PostgreSQL system account.
Is CVE-2026-6471 being actively exploited?
No, according to CISA KEV data, this vulnerability is not currently being actively exploited in the wild, and no public exploits have been disclosed.
What versions of PostgreSQL are affected by CVE-2026-6471?
PostgreSQL versions 14.x before 14.24, 15.x before 15.19, 16.x before 16.15, 17.x before 17.11, and 18.0 through 18.5 are vulnerable.
How do I check if my server is vulnerable to CVE-2026-6471?
Run SELECT version(); in psql—if the output shows PostgreSQL 18.5 or earlier, you are vulnerable. Cross-reference with SELECT usename FROM pg_user WHERE usereplication = true; to identify which non-superuser accounts hold replication privileges.
Does Defensia detect CVE-2026-6471?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If PostgreSQL is installed on a monitored server, CVE-2026-6471 will appear in your dashboard with remediation steps.
Related PostgreSQL CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-6471. Free for 1 server.
Get started free