CVEfocus › CVE database › CVE-2023-2454

CVE-2023-2454

CVSS 7.2 HighEPSS 1.5% (higher than 75% of CVEs)Published 2023-06-09Updated 2025-06-04Assigner: redhat

schema_element defeats protective search_path changes; It was found that certain database calls in PostgreSQL could permit an authed attacker with elevated database-level privileges to execute arbitrary code.

CWE-20

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

106Fixed
3Fix pending
22Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04postgresql-14Fixed14.8-0ubuntu0.22.04.1UBUNTU-CVE-2023-2454
Ubuntu 20.04postgresql-12Fixed12.15-0ubuntu0.20.04.1UBUNTU-CVE-2023-2454
Ubuntu 18.04postgresql-10Fixed10.23-0ubuntu0.18.04.2UBUNTU-CVE-2023-2454
Ubuntu 16.04postgresql-9.5Fix pending9.5.25-0ubuntu0.16.04.1+esm4 (Ubuntu Pro)UBUNTU-CVE-2023-2454
Ubuntu 14.04postgresql-9.1Fix pending
Ubuntu 14.04postgresql-9.3Fix pendingUBUNTU-CVE-2023-2454
Debian 12postgresql-15Fixed15.3-0+deb12u1DEBIAN-CVE-2023-2454
Red Hat Enterprise Linux 9pg_repackFixed0:1.4.8-1.module+el9.2.0+17405+aeb9ec60RHSA-2023:4327
Red Hat Enterprise Linux 9pgauditFixed0:1.7.0-1.module+el9.2.0+17405+aeb9ec60RHSA-2023:4327
Red Hat Enterprise Linux 9postgres-decoderbufsFixed0:1.9.7-1.Final.module+el9.2.0+17405+aeb9ec60RHSA-2023:4327
Red Hat Enterprise Linux 9postgresqlFixed0:13.11-1.el9_2RHSA-2023:4327
Red Hat Enterprise Linux 9postgresql-contribFixed0:13.11-1.el9_2RHSA-2023:4327
Red Hat Enterprise Linux 9postgresql-docsFixed0:13.11-1.el9_2RHSA-2023:4327
Red Hat Enterprise Linux 9postgresql-plperlFixed0:15.3-1.module+el9.2.0.z+19113+6f5d9d63RHSA-2023:3714
Red Hat Enterprise Linux 9postgresql-plpython3Fixed0:13.11-1.el9_2RHSA-2023:4327
Red Hat Enterprise Linux 9postgresql-pltclFixed0:13.11-1.el9_2RHSA-2023:4327
Red Hat Enterprise Linux 9postgresql-private-develFixed0:15.3-1.module+el9.2.0.z+19113+6f5d9d63RHSA-2023:3714
Red Hat Enterprise Linux 9postgresql-private-libsFixed0:13.11-1.el9_2RHSA-2023:4327
Red Hat Enterprise Linux 9postgresql-serverFixed0:13.11-1.el9_2RHSA-2023:4327
Red Hat Enterprise Linux 9postgresql-server-develFixed0:13.11-1.el9_2RHSA-2023:4327
Red Hat Enterprise Linux 9postgresql-staticFixed0:15.3-1.module+el9.2.0.z+19113+6f5d9d63RHSA-2023:3714
Red Hat Enterprise Linux 9postgresql-testFixed0:13.11-1.el9_2RHSA-2023:4327
Red Hat Enterprise Linux 9postgresql-test-rpm-macrosFixed0:15.3-1.module+el9.2.0.z+19113+6f5d9d63RHSA-2023:4327
Red Hat Enterprise Linux 9postgresql-upgradeFixed0:15.3-1.module+el9.2.0.z+19113+6f5d9d63RHSA-2023:3714
Red Hat Enterprise Linux 9postgresql-upgrade-develFixed0:15.3-1.module+el9.2.0.z+19113+6f5d9d63RHSA-2023:3714
Red Hat Enterprise Linux 8pg_repackFixed0:1.4.6-3.module+el8.5.0+11357+bcc62552RHSA-2023:5269
Red Hat Enterprise Linux 8pgauditFixed0:1.4.0-5.module+el8.5.0+11354+78b3c9c5RHSA-2023:5269
Red Hat Enterprise Linux 8postgres-decoderbufsFixed0:1.9.7-1.Final.module+el8.8.0+17071+aaaceaa4RHSA-2023:4535
Red Hat Enterprise Linux 8postgresqlFixed0:15.3-1.module+el8.8.0+19565+1b0ddae0RHSA-2023:4539
Red Hat Enterprise Linux 8postgresql-contribFixed0:13.11-1.module+el8.8.0+19081+0a277c66RHSA-2023:4539
Red Hat Enterprise Linux 8postgresql-docsFixed0:13.11-1.module+el8.8.0+19081+0a277c66RHSA-2023:5269
Red Hat Enterprise Linux 8postgresql-plperlFixed0:15.3-1.module+el8.8.0+19565+1b0ddae0RHSA-2023:4535
Red Hat Enterprise Linux 8postgresql-plpython3Fixed0:15.3-1.module+el8.8.0+19565+1b0ddae0RHSA-2023:4535
Red Hat Enterprise Linux 8postgresql-pltclFixed0:15.3-1.module+el8.8.0+19565+1b0ddae0RHSA-2023:4539
Red Hat Enterprise Linux 8postgresql-private-develFixed0:15.3-1.module+el8.8.0+19565+1b0ddae0RHSA-2023:5269
Red Hat Enterprise Linux 8postgresql-private-libsFixed0:15.3-1.module+el8.8.0+19565+1b0ddae0RHSA-2023:5269
Red Hat Enterprise Linux 8postgresql-serverFixed0:13.11-1.module+el8.8.0+19081+0a277c66RHSA-2023:4535
Red Hat Enterprise Linux 8postgresql-server-develFixed0:10.23-2.module+el8.8.0+19493+5804baf6RHSA-2023:4535
Red Hat Enterprise Linux 8postgresql-staticFixed0:10.23-2.module+el8.8.0+19493+5804baf6RHSA-2023:5269
Red Hat Enterprise Linux 8postgresql-testFixed0:12.15-1.module+el8.8.0+19427+d1071523RHSA-2023:4539
Red Hat Enterprise Linux 8postgresql-test-rpm-macrosFixed0:12.15-1.module+el8.8.0+19427+d1071523RHSA-2023:4539
Red Hat Enterprise Linux 8postgresql-upgradeFixed0:15.3-1.module+el8.8.0+19565+1b0ddae0RHSA-2023:4535
Red Hat Enterprise Linux 8postgresql-upgrade-develFixed0:12.15-1.module+el8.8.0+19427+d1071523RHSA-2023:4527
Red Hat Enterprise Linux 7postgresqlWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-contribWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-plperlWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-plpythonWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-pltclWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-staticWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-testWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-upgradeWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresqlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-contribWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plperlWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-plpythonWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-pltclWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-serverWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-testWill not fix
Out of support scope
AlmaLinux 9pg_repackFixed1.4.8-1.module_el9.2.0+22+09653793ALSA-2023:4327
AlmaLinux 9pgauditFixed1.7.0-1.module_el9.2.0+22+09653793ALSA-2023:4327
AlmaLinux 9postgres-decoderbufsFixed1.9.7-1.Final.module_el9.2.0+22+09653793ALSA-2023:4327
AlmaLinux 9postgresqlFixed13.11-1.el9_2ALSA-2023:4327
AlmaLinux 9postgresql-contribFixed13.11-1.el9_2ALSA-2023:4327
AlmaLinux 9postgresql-docsFixed15.3-1.module_el9.2.0+32+f3c125b5ALSA-2023:3714
AlmaLinux 9postgresql-plperlFixed13.11-1.el9_2ALSA-2023:4327
AlmaLinux 9postgresql-plpython3Fixed15.3-1.module_el9.2.0+32+f3c125b5ALSA-2023:3714
AlmaLinux 9postgresql-pltclFixed15.3-1.module_el9.2.0+32+f3c125b5ALSA-2023:3714
AlmaLinux 9postgresql-private-develFixed13.11-1.el9_2ALSA-2023:4327
AlmaLinux 9postgresql-private-libsFixed15.3-1.module_el9.2.0+32+f3c125b5ALSA-2023:3714
AlmaLinux 9postgresql-serverFixed13.11-1.el9_2ALSA-2023:4327
AlmaLinux 9postgresql-server-develFixed13.11-1.el9_2ALSA-2023:4327
AlmaLinux 9postgresql-staticFixed13.11-1.el9_2ALSA-2023:4327
AlmaLinux 9postgresql-testFixed13.11-1.el9_2ALSA-2023:4327
AlmaLinux 9postgresql-test-rpm-macrosFixed15.3-1.module_el9.2.0+32+f3c125b5ALSA-2023:4327
AlmaLinux 9postgresql-upgradeFixed13.11-1.el9_2ALSA-2023:4327
AlmaLinux 9postgresql-upgrade-develFixed15.3-1.module_el9.2.0+32+f3c125b5ALSA-2023:3714
AlmaLinux 8pg_repackFixed1.4.6-3.module_el8.6.0+2758+4f4474dfALSA-2023:4535
AlmaLinux 8pgauditFixed1.4.0-5.module_el8.6.0+3094+eb237fb8ALSA-2023:4527
AlmaLinux 8postgres-decoderbufsFixed1.9.7-1.Final.module_el8.8.0+3487+43ec1b9fALSA-2023:4535
AlmaLinux 8postgresqlFixed12.15-1.module_el8.8.0+3600+38330172ALSA-2023:4527
AlmaLinux 8postgresql-contribFixed13.11-1.module_el8.8.0+3601+ca64e769ALSA-2023:5269
AlmaLinux 8postgresql-docsFixed15.3-1.module_el8.8.0+3610+f1fe5820ALSA-2023:4527
AlmaLinux 8postgresql-plperlFixed12.15-1.module_el8.8.0+3600+38330172ALSA-2023:4539
AlmaLinux 8postgresql-plpython3Fixed13.11-1.module_el8.8.0+3601+ca64e769ALSA-2023:4539
AlmaLinux 8postgresql-pltclFixed15.3-1.module_el8.8.0+3610+f1fe5820ALSA-2023:4539
AlmaLinux 8postgresql-private-develFixed15.3-1.module_el8.8.0+3610+f1fe5820ALSA-2023:5269
AlmaLinux 8postgresql-private-libsFixed15.3-1.module_el8.8.0+3610+f1fe5820ALSA-2023:5269
AlmaLinux 8postgresql-serverFixed13.11-1.module_el8.8.0+3601+ca64e769ALSA-2023:4535
AlmaLinux 8postgresql-server-develFixed12.15-1.module_el8.8.0+3600+38330172ALSA-2023:4539
AlmaLinux 8postgresql-staticFixed12.15-1.module_el8.8.0+3600+38330172ALSA-2023:4527
AlmaLinux 8postgresql-testFixed15.3-1.module_el8.8.0+3610+f1fe5820ALSA-2023:4527
AlmaLinux 8postgresql-test-rpm-macrosFixed10.23-2.module_el8.8.0+3599+77865fc6ALSA-2023:4527
AlmaLinux 8postgresql-upgradeFixed13.11-1.module_el8.8.0+3601+ca64e769ALSA-2023:5269
AlmaLinux 8postgresql-upgrade-develFixed12.15-1.module_el8.8.0+3600+38330172ALSA-2023:4539
Rocky Linux 9pgauditFixed0:1.7.0-1.module+el9.5.0+30637+4391fccaRLSA-2023:4327
Rocky Linux 9postgres-decoderbufsFixed0:1.9.7-1.Final.module+el9.5.0+30637+4391fccaRLSA-2023:4327
Rocky Linux 9postgresqlFixed0:13.11-1.el9_2RLSA-2023:3714
Rocky Linux 8pg_repackFixed0:1.4.8-1.module+el8.10.0+40056+df351139RLSA-2023:5269
Rocky Linux 8pgauditFixed0:1.5.0-1.module+el8.5.0+684+c3892ef9RLSA-2023:4535
Rocky Linux 8postgres-decoderbufsFixed0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2023:4527
Rocky Linux 8postgresqlFixed0:10.23-2.module+el8.8.0+1440+992378a9RLSA-2023:4535
Alpine Linux 3.22postgresql15Fixed15.3-r0ALPINE-CVE-2023-2454
Alpine Linux 3.21postgresql15Fixed15.3-r0ALPINE-CVE-2023-2454
Alpine Linux 3.20postgresql14Fixed14.8-r0ALPINE-CVE-2023-2454
Alpine Linux 3.20postgresql15Fixed15.3-r0ALPINE-CVE-2023-2454
Alpine Linux 3.19postgresql13Fixed13.11-r0ALPINE-CVE-2023-2454
Alpine Linux 3.19postgresql14Fixed14.8-r0ALPINE-CVE-2023-2454
Alpine Linux 3.19postgresql15Fixed15.3-r0ALPINE-CVE-2023-2454
Alpine Linux 3.18postgresql12Fixed12.15-r0ALPINE-CVE-2023-2454
Alpine Linux 3.18postgresql13Fixed13.11-r0ALPINE-CVE-2023-2454
Alpine Linux 3.18postgresql14Fixed14.8-r0ALPINE-CVE-2023-2454
Alpine Linux 3.18postgresql15Fixed15.3-r0ALPINE-CVE-2023-2454
Alpine Linux 3.17postgresql12Fixed12.15-r0ALPINE-CVE-2023-2454
Alpine Linux 3.17postgresql13Fixed13.11-r0ALPINE-CVE-2023-2454
Alpine Linux 3.17postgresql14Fixed14.8-r0ALPINE-CVE-2023-2454
Alpine Linux 3.17postgresql15Fixed15.3-r0ALPINE-CVE-2023-2454
Alpine Linux 3.16postgresql12Fixed12.15-r0ALPINE-CVE-2023-2454
Alpine Linux 3.16postgresql13Fixed13.11-r0ALPINE-CVE-2023-2454
Alpine Linux 3.16postgresql14Fixed14.8-r0ALPINE-CVE-2023-2454
Alpine Linux 3.15postgresql12Fixed12.15-r0ALPINE-CVE-2023-2454
Alpine Linux 3.15postgresql13Fixed13.11-r0ALPINE-CVE-2023-2454
Alpine Linux 3.15postgresql14Fixed14.8-r0ALPINE-CVE-2023-2454
Alpine Linux 3.14postgresqlFixed13.11-r0ALPINE-CVE-2023-2454
Alpine Linux 3.13postgresqlFixed13.11-r0ALPINE-CVE-2023-2454

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.