CVE-2026-120143
Received Received - Intake

Use After Free in PostgreSQL Trigger Functions

Vulnerability report for CVE-2026-120143, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-12

Last updated on: 2026-11-12

Assigner: PostgreSQL

Description

Use after free in PostgreSQL trigger functions allows an object creator to execute arbitrary code as the operating system user running the database, via a cursor over a transition table. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-12
Last Modified
2026-11-12
Generated
2026-11-12
AI Q&A
2026-11-12
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
postgresql postgresql to 18.7|end_excluding=17.12|end_excluding=16.16|end_excluding=15.20|end_excluding=14.25 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-416 The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a use-after-free vulnerability in PostgreSQL trigger functions. It allows an object creator to execute arbitrary code as the operating system user running the database by using a cursor over a transition table.

Detection Guidance

Detecting this vulnerability requires checking PostgreSQL versions against affected releases. Run 'psql --version' to check your PostgreSQL version. If your version is below 18.7, 17.12, 16.16, 15.20, or 14.25, the system is vulnerable. Additionally, review database logs for unusual activity involving trigger functions or cursor operations.

Impact Analysis

An attacker with object creation privileges could exploit this to run malicious code on the database server, potentially gaining control over the system or accessing sensitive data.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating GDPR's data protection requirements and HIPAA's security rules for protected health information.

Mitigation Strategies

Immediately update PostgreSQL to a fixed version: 18.7, 17.12, 16.16, 15.20, or 14.25 or later. Restrict database access to trusted users and avoid using untrusted objects in trigger functions. Monitor for suspicious activity in database logs.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-120143. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...