CVE-2026-116307
Received Received - Intake

Use After Free in PostgreSQL plperl

Vulnerability report for CVE-2026-116307, 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 plperl allows an object creator to execute arbitrary code as the operating system user running the database, via re-entering plperl and freeing a prepared query while an outer invocation is executing it. 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 5 associated CPEs
Vendor Product Version / Range
postgresql postgresql to 18.7 (exc)
postgresql postgresql to 17.12 (exc)
postgresql postgresql to 16.16 (exc)
postgresql postgresql to 15.20 (exc)
postgresql postgresql to 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's plperl extension. It allows an attacker who can create database objects to execute arbitrary code as the operating system user running the database. The issue occurs when a prepared query is freed while an outer invocation is still executing, enabling re-entry into plperl.

Detection Guidance

To detect this vulnerability, check your PostgreSQL version against the affected releases (before 18.7, 17.12, 16.16, 15.20, 14.25). Run 'psql --version' to verify the installed version. If using plperl, inspect logs for crashes or unusual activity during query execution.

Impact Analysis

An attacker could gain control of the database server, leading to potential data theft, modification, or deletion. They could also escalate privileges to the underlying operating system, compromising the entire server.

Compliance Impact

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

Mitigation Strategies

Upgrade PostgreSQL to a patched version (18.7 or later, 17.12, 16.16, 15.20, 14.25). If immediate upgrade isn't possible, disable the plperl extension by setting 'shared_preload_libraries' to exclude 'plperl' in postgresql.conf and restart the service.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-116307. 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...