---
id: "CVE-2026-120144"
page: "https://infrastack.ai/live/CVE-2026-120144"
kind: "vulnerability"
aliases: ["CVE-2026-120144"]
title: "PostgreSQL: type-cache bug lets an object creator run OS commands"
severity: "high"
cvss: 8.8
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["database", "postgresql", "runtime", "self-hosted"]
not_affected_if: ["patched-18.7-or-later", "postgresql-below-18"]
published_at: "2026-11-12T15:17:42+00:00"
first_seen_at: "2026-11-12T15:41:56+00:00"
updated_at: "2026-11-12T15:43:13+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-120144", "first_seen_at": "2026-11-12T15:41:56+00:00"}]
exploit_sources: []
---

# PostgreSQL: type-cache bug lets an object creator run OS commands

Link for people: https://infrastack.ai/live/CVE-2026-120144 (this .md is for agents)

PostgreSQL mishandles a composite type change while its type-cache entry is being populated, causing type confusion. A user who can create database objects can execute arbitrary code as the operating system user running the database.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Run `psql -c 'SHOW server_version;'` and confirm the version is inside major 18 and below `18.7`
- Confirm the running major version with `postgres --version`

## Fix

- PostgreSQL 18: upgrade to `18.7` or later

## Timeline

- 2026-11-12T15:41:56+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-120144

## From the sources

Type confusion from incomplete PostgreSQL type-cache invalidation allows an object creator to execute arbitrary code as the operating system user running the database, via a composite type change while its cache entry is being populated.  Within major version 18, minor versions before PostgreSQL 18.7 are affected.  Versions before PostgreSQL 18 are unaffected.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
