CVE-2026-120144 PUBLISHED

PostgreSQL type-cache invalidation gap executes arbitrary code

Assigner: PostgreSQL
Reserved: 30.10.2026 Published: 12.11.2026 Updated: 12.11.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 8.8

Product Status

Vendor n/a
Product PostgreSQL
Versions Default: unaffected
  • affected from 18 to 18.7 (excl.)

Affected Configurations

attacker has permission to create objects (temporary objects or non-temporary objects in at least one schema)

Credits

  • The PostgreSQL project thanks Peter Geoghegan for reporting this problem.

References

Problem Types

  • Access of Resource Using Incompatible Type ('Type Confusion') CWE