---
id: "CVE-2026-116326"
page: "https://infrastack.ai/live/CVE-2026-116326"
kind: "vulnerability"
aliases: ["CVE-2026-116326"]
title: "PostgreSQL: plperl exception handling lets a Perl object run code"
severity: "high"
cvss: 8.8
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["database", "plperl", "postgresql", "runtime", "self-hosted"]
not_affected_if: ["managed-hosting", "plperl-not-installed"]
published_at: "2026-11-12T15:17:41+00:00"
first_seen_at: "2026-11-12T15:41:55+00:00"
updated_at: "2026-11-12T15:43:29+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-116326", "first_seen_at": "2026-11-12T15:41:55+00:00"}]
exploit_sources: []
---

# PostgreSQL: plperl exception handling lets a Perl object run code

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

PostgreSQL's plperl extension mishandles uncaught exceptions raised by tied or overloaded Perl objects, which can leave a stale jump buffer in use. The sources say arbitrary code execution on some platforms has not been ruled out.

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

## How to check

- Run `SELECT version();` in psql and compare against the fixed versions below.
- Check whether the `plperl` or `plperlu` extension is installed with `SELECT * FROM pg_extension WHERE extname LIKE 'plperl%';`

## Fix

- PostgreSQL `18.7`
- PostgreSQL `17.12`
- PostgreSQL `16.16`
- PostgreSQL `15.20`
- PostgreSQL `14.25`

## Timeline

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

## From the sources

Uncaught exceptions in PostgreSQL plperl allow an object creator to cause use of a stale sigjmp_buf, via a tied Perl object, or a Perl object whose overloaded conversion throws while plperl is handling another error.  We have not ruled out arbitrary code execution on some platform.  Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

---

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