Skip to content
OpenAdvisories

Description

Untrusted search path in PostgreSQL amcheck allows a grantee of amcheck function EXECUTE privilege to execute arbitrary functions as the owners of expression indexes that depend on the search path, via setting a hostile search path before calling the amcheck function. Within major versions 18, 16, 15, and 14, minor versions before PostgreSQL 18.6, 16.15, 15.19, and 14.24 are affected. PostgreSQL 17 is unaffected.

Affected products

VendorProductAffectedFixed
— PostgreSQL 18 – < 18.6, 16 – < 16.15, 15 – < 15.19, < 14.24 18.6

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 postgresql-18 18.6-1 —
Debian 13 postgresql-17 17.11-0+deb13u1 —
Debian 12 postgresql-15 15.19-0+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS postgresql-18 18.6-0ubuntu0.26.04.1 USN-8653-1
Ubuntu 24.04 LTS postgresql-16 16.15-0ubuntu0.24.04.1 USN-8653-1
Ubuntu 22.04 LTS postgresql-14 14.24-0ubuntu0.22.04.1 USN-8653-1
Ubuntu 20.04 LTS postgresql-12 No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS postgresql-10 No fix yet —
Ubuntu Pro 16.04 LTS postgresql-9.5 No fix yet —
Ubuntu Pro 14.04 LTS postgresql-9.3 No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 postgresql +14 18.6-0.1.hum1 RHSA-2026:54751
Red Hat Hardened Images 1 postgresql17 +14 17.11-1.hum1 RHSA-2026:57198
ReleasePackageFixed inAdvisory
SLES 15 SP7 postgresql14 14.24-150600.16.36.1 SUSE-SU-2026:3944-1
SLES 15 SP7 postgresql15 15.19-150600.16.36.1 SUSE-SU-2026:4017-1
SLES 15 SP7 postgresql16 16.15-150600.16.38.1 SUSE-SU-2026:3963-1
SLES 15 SP7 postgresql18 18.6-150600.13.16.1 SUSE-SU-2026:4014-1
SLES 15 SP6 postgresql14 14.24-150600.16.36.1 SUSE-SU-2026:3944-1
SLES 15 SP6 postgresql15 15.19-150600.16.36.1 SUSE-SU-2026:4017-1
SLES 15 SP6 postgresql16 16.15-150600.16.38.1 SUSE-SU-2026:3963-1
SLES 15 SP6 postgresql18 18.6-150600.13.16.1 SUSE-SU-2026:4014-1
SLES 15 SP5 postgresql14 14.24-150200.5.77.1 SUSE-SU-2026:3941-1
SLES 15 SP5 postgresql15 15.19-150200.5.62.1 SUSE-SU-2026:4018-1
SLES 15 SP5 postgresql16 16.15-150200.5.49.1 SUSE-SU-2026:3943-1
SLES 15 SP5 postgresql18 18.6-150200.5.17.1 SUSE-SU-2026:4015-1
SLES 15 SP4 postgresql14 14.24-150200.5.77.1 SUSE-SU-2026:3941-1
SLES 15 SP4 postgresql15 15.19-150200.5.62.1 SUSE-SU-2026:4018-1
SLES 15 SP4 postgresql16 16.15-150200.5.49.1 SUSE-SU-2026:3943-1
SLES 15 SP4 postgresql18 18.6-150200.5.17.1 SUSE-SU-2026:4015-1
SLES 12 SP5 postgresql14 14.24-3.75.1 SUSE-SU-2026:3793-1
SLES 12 SP5 postgresql15 15.19-3.61.1 SUSE-SU-2026:3940-1
SLES 12 SP5 postgresql16 16.15-3.47.1 SUSE-SU-2026:3794-1
SLES 12 SP5 postgresql18 18.6-8.17.1 SUSE-SU-2026:3942-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 postgresql14 14.24-160000.1.1 SUSE-SU-2026:23578-1
SLES for SAP 16.0 postgresql15 15.19-160000.1.1 SUSE-SU-2026:23579-1
SLES for SAP 16.0 postgresql16 16.15-160000.1.1 SUSE-SU-2026:23580-1
SLES for SAP 16.0 postgresql18 18.6-160000.1.1 SUSE-SU-2026:23577-1
SLES for SAP 15 SP6 postgresql14 14.24-150600.16.36.1 SUSE-SU-2026:3944-1
SLES for SAP 15 SP6 postgresql15 15.19-150600.16.36.1 SUSE-SU-2026:4017-1
SLES for SAP 15 SP6 postgresql16 16.15-150600.16.38.1 SUSE-SU-2026:3963-1
SLES for SAP 15 SP6 postgresql18 18.6-150600.13.16.1 SUSE-SU-2026:4014-1
SLES for SAP 15 SP5 postgresql14 14.24-150200.5.77.1 SUSE-SU-2026:3941-1
SLES for SAP 15 SP5 postgresql15 15.19-150200.5.62.1 SUSE-SU-2026:4018-1
SLES for SAP 15 SP5 postgresql16 16.15-150200.5.49.1 SUSE-SU-2026:3943-1
SLES for SAP 15 SP5 postgresql18 18.6-150200.5.17.1 SUSE-SU-2026:4015-1
SLES for SAP 15 SP4 postgresql14 14.24-150200.5.77.1 SUSE-SU-2026:3941-1
SLES for SAP 15 SP4 postgresql15 15.19-150200.5.62.1 SUSE-SU-2026:4018-1
SLES for SAP 15 SP4 postgresql16 16.15-150200.5.49.1 SUSE-SU-2026:3943-1
SLES for SAP 15 SP4 postgresql18 18.6-150200.5.17.1 SUSE-SU-2026:4015-1
SLES 16.0 postgresql14 14.24-160000.1.1 SUSE-SU-2026:23578-1
SLES 16.0 postgresql15 15.19-160000.1.1 SUSE-SU-2026:23579-1
SLES 16.0 postgresql16 16.15-160000.1.1 SUSE-SU-2026:23580-1
SLES 16.0 postgresql18 18.6-160000.1.1 SUSE-SU-2026:23577-1
SLE HPC 15 SP5 postgresql15 15.19-150200.5.62.1 SUSE-SU-2026:4018-1
SLE HPC 15 SP5 postgresql16 16.15-150200.5.49.1 SUSE-SU-2026:3943-1
SLE HPC 15 SP5 postgresql18 18.6-150200.5.17.1 SUSE-SU-2026:4015-1
SLE HPC 15 SP4 postgresql14 14.24-150200.5.77.1 SUSE-SU-2026:3941-1
SLE HPC 15 SP4 postgresql15 15.19-150200.5.62.1 SUSE-SU-2026:4018-1
SLE HPC 15 SP4 postgresql16 16.15-150200.5.49.1 SUSE-SU-2026:3943-1
SLE HPC 15 SP4 postgresql18 18.6-150200.5.17.1 SUSE-SU-2026:4015-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed postgresql14 14.24-1.1 openSUSE-SU-2026:11552-1
openSUSE Tumbleweed postgresql15 15.19-1.1 openSUSE-SU-2026:11553-1
openSUSE Tumbleweed postgresql16 16.15-1.1 openSUSE-SU-2026:11554-1
openSUSE Tumbleweed postgresql18 18.6-1.1 openSUSE-SU-2026:11565-1
openSUSE Leap 16.0 postgresql14 14.24-160000.1.1 openSUSE-SU-2026:21699-1
openSUSE Leap 16.0 postgresql15 15.19-160000.1.1 openSUSE-SU-2026:21700-1
openSUSE Leap 16.0 postgresql16 16.15-160000.1.1 openSUSE-SU-2026:21701-1
openSUSE Leap 16.0 postgresql18 +1 18.6-160000.1.1 openSUSE-SU-2026:21703-1
ReleasePackageFixed inAdvisory
Alpine v3.24 postgresql16 16.15-r0 —
Alpine v3.24 postgresql17 17.11-r0 —
Alpine v3.24 postgresql18 18.5-r0 —
Alpine v3.23 postgresql16 16.15-r0 —
Alpine v3.23 postgresql17 17.11-r0 —
Alpine v3.23 postgresql18 18.5-r0 —
Alpine v3.22 postgresql15 15.19-r0 —
Alpine v3.22 postgresql16 16.15-r0 —
Alpine v3.22 postgresql17 17.11-r0 —
Alpine v3.21 postgresql15 15.19-r0 —
Alpine v3.21 postgresql16 16.15-r0 —
Alpine v3.21 postgresql17 17.11-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 postgresql15 +15 15.19-1.amzn2023.0.1 ALAS2023-2026-2077
Amazon Linux 2023 postgresql16 +15 16.15-1.amzn2023.0.1 ALAS2023-2026-2078
Amazon Linux 2023 postgresql18 +15 18.6-1.amzn2023.0.1 ALAS2023-2026-2079

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 postgresql 16.15-1 —

Advisories 31

References