---
title: CVE-2026-61781
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2026-61781
---

# CVE-2026-61781

Publication date 18 September 2026

Last updated 23 September 2026

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**9.9 · Critical**

[Score breakdown](https://ubuntu.com/security/CVE-2026-61781#impact-score)

Toggle side navigation

## Description

pg\_partman is a PostgreSQL extension that manages partitioned tables by
time or ID. Prior to 5.5.0, create\_partition\_time() reads the writable
part\_config.time\_encoder text value and interpolates it without identifier
quoting into a dynamically executed SELECT statement. A role with the
documented partman\_user INSERT and UPDATE privileges can store SQL rather
than a function name. When pg\_partman\_bgw later creates a child partition
for a text- or UUID-keyed set, the worker executes the stored SQL with
pg\_partman\_bgw.role privileges, which default to PostgreSQL superuser. The
persistent configuration row can repeatedly restore elevated access on
later maintenance ticks, and successful exploitation can permit
database-wide compromise and operating-system command execution as the
PostgreSQL service account. This issue is fixed in version 5.5.0.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| pg-partman | 26.10 stonking | Not affected |
| 26.04 LTS resolute | Needs evaluation |
| 24.04 LTS noble | Needs evaluation |
| 22.04 LTS jammy | Needs evaluation |
| 20.04 LTS focal | Needs evaluation |
| 18.04 LTS bionic | Needs evaluation |
| 16.04 LTS xenial | Needs evaluation |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

9.9 · Critical

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | Low |
  | User interaction | None |
  | Scope | Changed |
  | Confidentiality impact | High |
  | Integrity impact | High |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 9.9 · Critical |
  | Exploitability score | - |
  | Impact score | - |

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

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-61781)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-61781)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2026-61781)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2026-61781)

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2026-61781>
* <https://github.com/pgpartman/pg_partman/security/advisories/GHSA-742w-3j7c-qwvp>
* <https://github.com/pgpartman/pg_partman/commit/ba9405542acf24dd881845b935cab8b165854361>
* <https://github.com/pgpartman/pg_partman/releases/tag/v5.5.0>
