CVE-2023-2455
Row security policies disregard user ID changes after inlining; PostgreSQL could permit incorrect policies to be applied in certain cases where role-specific policies are used and a given query is planned under one role and then executed under other roles. This scenario can happen under security definer functions or when a common user and query is planned initially and then re-used across multiple SET ROLEs. Applying an incorrect policy may permit a user to complete otherwise-forbidden reads and modifications. This affects only databases that have used CREATE POLICY to define a row security policy.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | postgresql-14 | Fixed | 14.8-0ubuntu0.22.04.1 | UBUNTU-CVE-2023-2455 |
| Ubuntu 20.04 | postgresql-12 | Fixed | 12.15-0ubuntu0.20.04.1 | UBUNTU-CVE-2023-2455 |
| Ubuntu 18.04 | postgresql-10 | Fixed | 10.23-0ubuntu0.18.04.2 | UBUNTU-CVE-2023-2455 |
| Ubuntu 16.04 | postgresql-9.5 | Will not fix PostgreSQL 9.3 is end of life upstream, and no updates are are available. Marking as deferred in -esm-main releases. PostgreSQL 9.3 is end of life upstream,… | UBUNTU-CVE-2023-2455 | |
| Ubuntu 14.04 | postgresql-9.1 | Will not fix PostgreSQL 9.3 is end of life upstream, and no updates are are available. Marking as deferred in -esm-main releases. PostgreSQL 9.3 is end of life upstream,… | ||
| Ubuntu 14.04 | postgresql-9.3 | Fix pending | UBUNTU-CVE-2023-2455 | |
| Debian 12 | postgresql-15 | Fixed | 15.3-0+deb12u1 | DEBIAN-CVE-2023-2455 |
| Red Hat Enterprise Linux 9 | pg_repack | Fixed | 0:1.4.8-1.module+el9.2.0+17405+aeb9ec60 | RHSA-2023:4327 |
| Red Hat Enterprise Linux 9 | pgaudit | Fixed | 0:1.7.0-1.module+el9.2.0+17405+aeb9ec60 | RHSA-2023:4327 |
| Red Hat Enterprise Linux 9 | postgres-decoderbufs | Fixed | 0:1.9.7-1.Final.module+el9.2.0+17405+aeb9ec60 | RHSA-2023:4327 |
| Red Hat Enterprise Linux 9 | postgresql | Fixed | 0:13.11-1.el9_2 | RHSA-2023:4327 |
| Red Hat Enterprise Linux 9 | postgresql-contrib | Fixed | 0:13.11-1.el9_2 | RHSA-2023:4327 |
| Red Hat Enterprise Linux 9 | postgresql-docs | Fixed | 0:13.11-1.el9_2 | RHSA-2023:4327 |
| Red Hat Enterprise Linux 9 | postgresql-plperl | Fixed | 0:15.3-1.module+el9.2.0.z+19113+6f5d9d63 | RHSA-2023:3714 |
| Red Hat Enterprise Linux 9 | postgresql-plpython3 | Fixed | 0:13.11-1.el9_2 | RHSA-2023:4327 |
| Red Hat Enterprise Linux 9 | postgresql-pltcl | Fixed | 0:13.11-1.el9_2 | RHSA-2023:4327 |
| Red Hat Enterprise Linux 9 | postgresql-private-devel | Fixed | 0:15.3-1.module+el9.2.0.z+19113+6f5d9d63 | RHSA-2023:3714 |
| Red Hat Enterprise Linux 9 | postgresql-private-libs | Fixed | 0:13.11-1.el9_2 | RHSA-2023:4327 |
| Red Hat Enterprise Linux 9 | postgresql-server | Fixed | 0:13.11-1.el9_2 | RHSA-2023:4327 |
| Red Hat Enterprise Linux 9 | postgresql-server-devel | Fixed | 0:13.11-1.el9_2 | RHSA-2023:4327 |
| Red Hat Enterprise Linux 9 | postgresql-static | Fixed | 0:15.3-1.module+el9.2.0.z+19113+6f5d9d63 | RHSA-2023:3714 |
| Red Hat Enterprise Linux 9 | postgresql-test | Fixed | 0:13.11-1.el9_2 | RHSA-2023:4327 |
| Red Hat Enterprise Linux 9 | postgresql-test-rpm-macros | Fixed | 0:15.3-1.module+el9.2.0.z+19113+6f5d9d63 | RHSA-2023:4327 |
| Red Hat Enterprise Linux 9 | postgresql-upgrade | Fixed | 0:15.3-1.module+el9.2.0.z+19113+6f5d9d63 | RHSA-2023:3714 |
| Red Hat Enterprise Linux 9 | postgresql-upgrade-devel | Fixed | 0:15.3-1.module+el9.2.0.z+19113+6f5d9d63 | RHSA-2023:3714 |
| Red Hat Enterprise Linux 8 | pg_repack | Fixed | 0:1.4.6-3.module+el8.5.0+11357+bcc62552 | RHSA-2023:5269 |
| Red Hat Enterprise Linux 8 | pgaudit | Fixed | 0:1.4.0-5.module+el8.5.0+11354+78b3c9c5 | RHSA-2023:5269 |
| Red Hat Enterprise Linux 8 | postgres-decoderbufs | Fixed | 0:1.9.7-1.Final.module+el8.8.0+17071+aaaceaa4 | RHSA-2023:4535 |
| Red Hat Enterprise Linux 8 | postgresql | Fixed | 0:15.3-1.module+el8.8.0+19565+1b0ddae0 | RHSA-2023:4539 |
| Red Hat Enterprise Linux 8 | postgresql-contrib | Fixed | 0:13.11-1.module+el8.8.0+19081+0a277c66 | RHSA-2023:4539 |
| Red Hat Enterprise Linux 8 | postgresql-docs | Fixed | 0:13.11-1.module+el8.8.0+19081+0a277c66 | RHSA-2023:5269 |
| Red Hat Enterprise Linux 8 | postgresql-plperl | Fixed | 0:15.3-1.module+el8.8.0+19565+1b0ddae0 | RHSA-2023:4535 |
| Red Hat Enterprise Linux 8 | postgresql-plpython3 | Fixed | 0:15.3-1.module+el8.8.0+19565+1b0ddae0 | RHSA-2023:4535 |
| Red Hat Enterprise Linux 8 | postgresql-pltcl | Fixed | 0:15.3-1.module+el8.8.0+19565+1b0ddae0 | RHSA-2023:4539 |
| Red Hat Enterprise Linux 8 | postgresql-private-devel | Fixed | 0:15.3-1.module+el8.8.0+19565+1b0ddae0 | RHSA-2023:5269 |
| Red Hat Enterprise Linux 8 | postgresql-private-libs | Fixed | 0:15.3-1.module+el8.8.0+19565+1b0ddae0 | RHSA-2023:5269 |
| Red Hat Enterprise Linux 8 | postgresql-server | Fixed | 0:13.11-1.module+el8.8.0+19081+0a277c66 | RHSA-2023:4535 |
| Red Hat Enterprise Linux 8 | postgresql-server-devel | Fixed | 0:10.23-2.module+el8.8.0+19493+5804baf6 | RHSA-2023:4535 |
| Red Hat Enterprise Linux 8 | postgresql-static | Fixed | 0:10.23-2.module+el8.8.0+19493+5804baf6 | RHSA-2023:5269 |
| Red Hat Enterprise Linux 8 | postgresql-test | Fixed | 0:12.15-1.module+el8.8.0+19427+d1071523 | RHSA-2023:4539 |
| Red Hat Enterprise Linux 8 | postgresql-test-rpm-macros | Fixed | 0:12.15-1.module+el8.8.0+19427+d1071523 | RHSA-2023:4539 |
| Red Hat Enterprise Linux 8 | postgresql-upgrade | Fixed | 0:15.3-1.module+el8.8.0+19565+1b0ddae0 | RHSA-2023:4535 |
| Red Hat Enterprise Linux 8 | postgresql-upgrade-devel | Fixed | 0:12.15-1.module+el8.8.0+19427+d1071523 | RHSA-2023:4527 |
| Red Hat Enterprise Linux 7 | postgresql | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-contrib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-docs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-plperl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-plpython | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-pltcl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-server | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-test | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | postgresql-upgrade | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-contrib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-docs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-plperl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-plpython | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-pltcl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-server | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | postgresql-test | Will not fix Out of support scope | ||
| AlmaLinux 9 | pg_repack | Fixed | 1.4.8-1.module_el9.2.0+22+09653793 | ALSA-2023:4327 |
| AlmaLinux 9 | pgaudit | Fixed | 1.7.0-1.module_el9.2.0+22+09653793 | ALSA-2023:4327 |
| AlmaLinux 9 | postgres-decoderbufs | Fixed | 1.9.7-1.Final.module_el9.2.0+22+09653793 | ALSA-2023:4327 |
| AlmaLinux 9 | postgresql | Fixed | 13.11-1.el9_2 | ALSA-2023:4327 |
| AlmaLinux 9 | postgresql-contrib | Fixed | 13.11-1.el9_2 | ALSA-2023:4327 |
| AlmaLinux 9 | postgresql-docs | Fixed | 15.3-1.module_el9.2.0+32+f3c125b5 | ALSA-2023:3714 |
| AlmaLinux 9 | postgresql-plperl | Fixed | 13.11-1.el9_2 | ALSA-2023:4327 |
| AlmaLinux 9 | postgresql-plpython3 | Fixed | 15.3-1.module_el9.2.0+32+f3c125b5 | ALSA-2023:3714 |
| AlmaLinux 9 | postgresql-pltcl | Fixed | 15.3-1.module_el9.2.0+32+f3c125b5 | ALSA-2023:3714 |
| AlmaLinux 9 | postgresql-private-devel | Fixed | 13.11-1.el9_2 | ALSA-2023:4327 |
| AlmaLinux 9 | postgresql-private-libs | Fixed | 15.3-1.module_el9.2.0+32+f3c125b5 | ALSA-2023:3714 |
| AlmaLinux 9 | postgresql-server | Fixed | 13.11-1.el9_2 | ALSA-2023:4327 |
| AlmaLinux 9 | postgresql-server-devel | Fixed | 13.11-1.el9_2 | ALSA-2023:4327 |
| AlmaLinux 9 | postgresql-static | Fixed | 13.11-1.el9_2 | ALSA-2023:4327 |
| AlmaLinux 9 | postgresql-test | Fixed | 13.11-1.el9_2 | ALSA-2023:4327 |
| AlmaLinux 9 | postgresql-test-rpm-macros | Fixed | 15.3-1.module_el9.2.0+32+f3c125b5 | ALSA-2023:4327 |
| AlmaLinux 9 | postgresql-upgrade | Fixed | 13.11-1.el9_2 | ALSA-2023:4327 |
| AlmaLinux 9 | postgresql-upgrade-devel | Fixed | 15.3-1.module_el9.2.0+32+f3c125b5 | ALSA-2023:3714 |
| AlmaLinux 8 | pg_repack | Fixed | 1.4.6-3.module_el8.6.0+2758+4f4474df | ALSA-2023:4535 |
| AlmaLinux 8 | pgaudit | Fixed | 1.4.0-5.module_el8.6.0+3094+eb237fb8 | ALSA-2023:4527 |
| AlmaLinux 8 | postgres-decoderbufs | Fixed | 1.9.7-1.Final.module_el8.8.0+3487+43ec1b9f | ALSA-2023:4535 |
| AlmaLinux 8 | postgresql | Fixed | 12.15-1.module_el8.8.0+3600+38330172 | ALSA-2023:4527 |
| AlmaLinux 8 | postgresql-contrib | Fixed | 13.11-1.module_el8.8.0+3601+ca64e769 | ALSA-2023:5269 |
| AlmaLinux 8 | postgresql-docs | Fixed | 15.3-1.module_el8.8.0+3610+f1fe5820 | ALSA-2023:4527 |
| AlmaLinux 8 | postgresql-plperl | Fixed | 12.15-1.module_el8.8.0+3600+38330172 | ALSA-2023:4539 |
| AlmaLinux 8 | postgresql-plpython3 | Fixed | 13.11-1.module_el8.8.0+3601+ca64e769 | ALSA-2023:4539 |
| AlmaLinux 8 | postgresql-pltcl | Fixed | 15.3-1.module_el8.8.0+3610+f1fe5820 | ALSA-2023:4539 |
| AlmaLinux 8 | postgresql-private-devel | Fixed | 15.3-1.module_el8.8.0+3610+f1fe5820 | ALSA-2023:5269 |
| AlmaLinux 8 | postgresql-private-libs | Fixed | 15.3-1.module_el8.8.0+3610+f1fe5820 | ALSA-2023:5269 |
| AlmaLinux 8 | postgresql-server | Fixed | 13.11-1.module_el8.8.0+3601+ca64e769 | ALSA-2023:4535 |
| AlmaLinux 8 | postgresql-server-devel | Fixed | 12.15-1.module_el8.8.0+3600+38330172 | ALSA-2023:4539 |
| AlmaLinux 8 | postgresql-static | Fixed | 12.15-1.module_el8.8.0+3600+38330172 | ALSA-2023:4527 |
| AlmaLinux 8 | postgresql-test | Fixed | 15.3-1.module_el8.8.0+3610+f1fe5820 | ALSA-2023:4527 |
| AlmaLinux 8 | postgresql-test-rpm-macros | Fixed | 10.23-2.module_el8.8.0+3599+77865fc6 | ALSA-2023:4527 |
| AlmaLinux 8 | postgresql-upgrade | Fixed | 13.11-1.module_el8.8.0+3601+ca64e769 | ALSA-2023:5269 |
| AlmaLinux 8 | postgresql-upgrade-devel | Fixed | 12.15-1.module_el8.8.0+3600+38330172 | ALSA-2023:4539 |
| Rocky Linux 9 | pgaudit | Fixed | 0:1.7.0-1.module+el9.5.0+30637+4391fcca | RLSA-2023:4327 |
| Rocky Linux 9 | postgres-decoderbufs | Fixed | 0:1.9.7-1.Final.module+el9.5.0+30637+4391fcca | RLSA-2023:4327 |
| Rocky Linux 9 | postgresql | Fixed | 0:13.11-1.el9_2 | RLSA-2023:3714 |
| Rocky Linux 8 | pg_repack | Fixed | 0:1.4.8-1.module+el8.10.0+40056+df351139 | RLSA-2023:5269 |
| Rocky Linux 8 | pgaudit | Fixed | 0:1.5.0-1.module+el8.5.0+684+c3892ef9 | RLSA-2023:4535 |
| Rocky Linux 8 | postgres-decoderbufs | Fixed | 0:0.10.0-2.module+el8.5.0+684+c3892ef9 | RLSA-2023:4527 |
| Rocky Linux 8 | postgresql | Fixed | 0:10.23-2.module+el8.8.0+1440+992378a9 | RLSA-2023:4535 |
| Alpine Linux 3.22 | postgresql15 | Fixed | 15.3-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.21 | postgresql15 | Fixed | 15.3-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.20 | postgresql14 | Fixed | 14.8-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.20 | postgresql15 | Fixed | 15.3-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.19 | postgresql13 | Fixed | 13.11-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.19 | postgresql14 | Fixed | 14.8-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.19 | postgresql15 | Fixed | 15.3-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.18 | postgresql12 | Fixed | 12.15-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.18 | postgresql13 | Fixed | 13.11-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.18 | postgresql14 | Fixed | 14.8-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.18 | postgresql15 | Fixed | 15.3-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.17 | postgresql12 | Fixed | 12.15-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.17 | postgresql13 | Fixed | 13.11-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.17 | postgresql14 | Fixed | 14.8-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.17 | postgresql15 | Fixed | 15.3-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.16 | postgresql12 | Fixed | 12.15-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.16 | postgresql13 | Fixed | 13.11-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.16 | postgresql14 | Fixed | 14.8-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.15 | postgresql12 | Fixed | 12.15-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.15 | postgresql13 | Fixed | 13.11-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.15 | postgresql14 | Fixed | 14.8-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.14 | postgresql | Fixed | 13.11-r0 | ALPINE-CVE-2023-2455 |
| Alpine Linux 3.13 | postgresql | Fixed | 13.11-r0 | ALPINE-CVE-2023-2455 |
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.
- postgresql: affected: PostgreSQL 15.3, PostgreSQL 14.8, PostgreSQL 13.11, PostgreSQL 12.15, PostgreSQL 11.20
References
- https://access.redhat.com/security/cve/CVE-2023-2455
- https://www.postgresql.org/support/security/CVE-2023-2455/
- https://security.netapp.com/advisory/ntap-20230706-0006/
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.