# CVE-2026-120147: PostgreSQL dblink reentrant disconnect use-after-free executes arbitrary code

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-12 · Modified: 2026-11-14
- Aliases: DEBIAN-CVE-2026-120147, ALPINE-CVE-2026-120147, UBUNTU-CVE-2026-120147
- Record: https://cvemate.com/vulnerability/CVE-2026-120147 · JSON: https://cvemate.com/vulnerability/CVE-2026-120147/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.555%, percentile 47.756%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine postgresql15 (Alpine Linux): \< 15.20-r0
- alpine postgresql16 (Alpine Linux): \< 16.16-r0
- alpine postgresql17 (Alpine Linux): \< 17.12-r0
- alpine postgresql18 (Alpine Linux): \< 18.7-r0
- debian postgresql-15 (Debian): All versions (No fix recorded) \| \< 15.20-0+deb12u1
- debian postgresql-17 (Debian): All versions (No fix recorded) \| \< 17.12-0+deb13u1
- debian postgresql-18 (Debian): All versions (No fix recorded) \| \< 18.7-1
- ubuntu postgresql-10 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-12 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-14 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-16 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-18 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-9.3 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-9.5 (Ubuntu): All versions (No fix recorded)

## References

- <https://www.postgresql.org/support/security/CVE-2026-120147/>
- <https://security-tracker.debian.org/tracker/CVE-2026-120147>
- <https://security.alpinelinux.org/vuln/CVE-2026-120147>
- <https://ubuntu.com/security/CVE-2026-120147>
- <https://www.cve.org/CVERecord?id=CVE-2026-120147>
- <https://www.postgresql.org/about/news/postgresql-187-1712-1616-1520-1425-and-19-rc-2-released-3442/>

---

Data as of 2026-12-05T03:35:43.622Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
