CVE-2026-120147
NVDCVSS scored by f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
Vulnerability Summary
Use after free in the PostgreSQL dblink extension allows an object creator to execute arbitrary code as the operating system user running the database, via type conversion code that re-enters dblink and closes a connection whose results an outer dblink call is reading. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
CVSS v3.1 Base Metrics — Score 8.8 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- PostgreSQL >= 18 and < 18.7
- PostgreSQL >= 17 and < 17.12
- PostgreSQL >= 16 and < 16.16
- PostgreSQL >= 15 and < 15.20
- PostgreSQL < 14.25
- PostgreSQL 18.7
- PostgreSQL 17.12
- PostgreSQL 16.16
- PostgreSQL 15.20
- PostgreSQL 14.25
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run PostgreSQL and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 12, 2026Published
- Nov 14, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new PostgreSQL CVEsYou are reading CVE-2026-120147. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Vendor Advisoryhttps://www.postgresql.org/support/security/CVE-2026-120147/
Data last checked: Dec 5, 2026 04:06 UTC