PT-2026-7846 · Unknown+5 · Postgresql+4

Moritz Sanft

+1

·

Published

2026-01-01

·

Updated

2026-05-19

·

CVE-2026-2006

CVSS v2.0

9.0

High

VectorAV:N/AC:L/Au:S/C:C/I:C/A:C
PostgreSQL and Affected Versions PostgreSQL versions prior to 18.3 PostgreSQL versions prior to 17.9 PostgreSQL versions prior to 16.13 PostgreSQL versions prior to 15.17 PostgreSQL versions prior to 14.22 PostgreSQL version 9.3
Description PostgreSQL is susceptible to a buffer overrun due to missing validation of multibyte character length during text manipulation. This allows a database user to craft queries that can overwrite memory, potentially leading to arbitrary code execution with the privileges of the operating system user running the database. The issue is triggered when processing maliciously crafted queries, specifically in the PL/pgsql function compilation when handling CREATE FUNCTION statements. An attacker with CREATE privilege can define a PL/Python user-defined function containing arbitrary Python code that executes with the privileges of the PostgreSQL server process. Approximately 3 million instances are estimated to be exposed globally. The vulnerability affects the substring() function, which may raise an error when processing non-ASCII text values sourced from database columns.
Recommendations PostgreSQL versions prior to 18.3: Upgrade to version 18.3 or later. PostgreSQL versions prior to 17.9: Upgrade to version 17.9 or later. PostgreSQL versions prior to 16.13: Upgrade to version 16.13 or later. PostgreSQL versions prior to 15.17: Upgrade to version 15.17 or later. PostgreSQL versions prior to 14.22: Upgrade to version 14.22 or later. PostgreSQL version 9.3: Upgrade to a supported version of PostgreSQL.

Fix

RCE

Improper Validation of Array Index

Weakness Enumeration

Related Identifiers

ALSA-2026:19009
ALSA-2026:19010
ALSA-2026:3730
ALSA-2026:3887
ALSA-2026:3896
ALSA-2026:4024
ALSA-2026:4059
ALSA-2026:4063
ALSA-2026:4064
ALSA-2026:4110
AZL-77426
AZL-77589
AZL-77643
BDU:2026-01723
BIT-POSTGRESQL-2026-2006
CVE-2026-2006
ECHO-74F8-0C0F-635F
JLSEC-2026-56
MGASA-2026-0041
OESA-2026-1493
OESA-2026-1494
OESA-2026-1495
OESA-2026-1496
OESA-2026-1512
OESA-2026-1513
OESA-2026-1514
OESA-2026-1515
OESA-2026-1531
OPENSUSE-SU-2026:10190-1
OPENSUSE-SU-2026:10191-1
OPENSUSE-SU-2026:10192-1
OPENSUSE-SU-2026:10193-1
OPENSUSE-SU-2026:10197-1
OPENSUSE-SU-2026:20265-1
OPENSUSE-SU-2026:20266-1
OPENSUSE-SU-2026:20388-1
OPENSUSE-SU-2026:20408-1
OPENSUSE-SU-2026:20447-1
RHSA-2026:3730
RHSA-2026:3887
RHSA-2026:3896
RHSA-2026:4024
RHSA-2026:4059
RHSA-2026:4063
RHSA-2026:4064
RHSA-2026:4074
RHSA-2026:4075
RHSA-2026:4110
RHSA-2026:4254
RHSA-2026:4441
RHSA-2026:4475
RHSA-2026:4504
RHSA-2026:4505
RHSA-2026:4506
RHSA-2026:4509
RHSA-2026:4515
RHSA-2026:4516
RHSA-2026:4518
RHSA-2026:4524
RHSA-2026:4528
RHSA-2026:4544
RHSA-2026:4546
RHSA-2026:4547
RHSA-2026:4548
RHSA-2026:8756
SUSE-SU-2026:0584-1
SUSE-SU-2026:0585-1
SUSE-SU-2026:0586-1
SUSE-SU-2026:0588-1
SUSE-SU-2026:0614-1
SUSE-SU-2026:0615-1
SUSE-SU-2026:0616-1
SUSE-SU-2026:0768-1
SUSE-SU-2026:0769-1
SUSE-SU-2026:0770-1
SUSE-SU-2026:0771-1
SUSE-SU-2026:0784-1
SUSE-SU-2026:0785-1
SUSE-SU-2026:0786-1
SUSE-SU-2026:0787-1
SUSE-SU-2026:0881-1
SUSE-SU-2026:0882-1
SUSE-SU-2026:0883-1
SUSE-SU-2026:20587-1
SUSE-SU-2026:20588-1
SUSE-SU-2026:20906-1
SUSE-SU-2026:20921-1
SUSE-SU-2026:20983-1
USN-8072-1

Affected Products

Linuxmint
Postgresql
Red Os
Rocky Linux
Ubuntu