---
title: "CVE-2023-2454"
canonical_url: "https://pkgseek.com/security/CVE-2023-2454"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2023-2454

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.

CVE-2023-2454 is rated HIGH (7.2), with 101 indexed affected package builds across 6 distributions.

- **Severity / Score**: HIGH (7.2)
- **Affected builds**: 101
- **Affected distros**: 6
- **Distros with fixed_in**: Alibaba Cloud Linux, AlmaLinux, Oracle Linux, Red Hat Enterprise Linux, Rocky Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | postgresql | 13.10-1.0.1.al8 | 13.11-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-contrib | 13.10-1.0.1.al8 | 13.11-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-docs | 13.10-1.0.1.al8 | 13.11-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-plperl | 13.10-1.0.1.al8 | 13.11-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-plpython3 | 13.10-1.0.1.al8 | 13.11-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-pltcl | 13.10-1.0.1.al8 | 13.11-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-server | 13.10-1.0.1.al8 | 13.11-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-server-devel | 13.10-1.0.1.al8 | 13.11-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-static | 13.10-1.0.1.al8 | 13.11-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-test | 13.10-1.0.1.al8 | 13.11-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-test-rpm-macros | 13.10-1.0.1.al8 | 13.11-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-upgrade | 13.10-1.0.1.al8 | 13.11-1.0.1.al8 |
| Alibaba Cloud Linux | 3 | postgresql-upgrade-devel | 13.10-1.0.1.al8 | 13.11-1.0.1.al8 |
| AlmaLinux | 9 | pgaudit | 1.5.0-6.el9 | 1.7.0-1.module_el9.2.0+22+09653793 |
| AlmaLinux | 9 | pg_repack | 1.4.6-4.el9 | 1.4.8-1.module_el9.2.0+22+09653793 |
| AlmaLinux | 9 | postgres-decoderbufs | 1.4.0-4.Final.el9 | 1.9.7-1.Final.module_el9.2.0+22+09653793 |
| AlmaLinux | 9 | postgresql | 13.23-9.el9_9 | 15.3-1.module_el9.2.0+32+f3c125b5 |
| AlmaLinux | 9 | postgresql-contrib | 13.23-9.el9_9 | 15.3-1.module_el9.2.0+32+f3c125b5 |
| AlmaLinux | 9 | postgresql-plperl | 13.23-9.el9_9 | 15.3-1.module_el9.2.0+32+f3c125b5 |
| AlmaLinux | 9 | postgresql-plpython3 | 13.23-9.el9_9 | 15.3-1.module_el9.2.0+32+f3c125b5 |
| AlmaLinux | 9 | postgresql-pltcl | 13.23-9.el9_9 | 15.3-1.module_el9.2.0+32+f3c125b5 |
| AlmaLinux | 9 | postgresql-private-libs | 13.23-9.el9_9 | 15.3-1.module_el9.2.0+32+f3c125b5 |
| AlmaLinux | 9 | postgresql-server | 13.23-9.el9_9 | 15.3-1.module_el9.2.0+32+f3c125b5 |
| AlmaLinux | 9 | postgresql-upgrade | 13.23-9.el9_9 | 15.3-1.module_el9.2.0+32+f3c125b5 |
| Oracle Linux | 8 | pgaudit | 1.4.0-7.module+el8.10.0+90397+67dad74f | 1.7.0-1.module+el8.8.0+20973+992b6275 |
| Oracle Linux | 8 | pg_repack | 1.4.8-1.module+el8.10.0+90275+c15b12cb | 1.5.1-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 8 | postgres-decoderbufs | 1.9.7-1.Final.module+el8.9.0+90110+d8a562d5 | 2.4.0-1.Final.module+el8.10.0+90275+c15b12cb |
| Oracle Linux | 8 | postgresql | 12.22-12.module+el8.10.0+91045+f9258fff | 16.6-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 8 | postgresql-contrib | 12.22-12.module+el8.10.0+91045+f9258fff | 16.6-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 8 | postgresql-docs | 12.22-12.module+el8.10.0+91045+f9258fff | 16.6-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 8 | postgresql-plperl | 12.22-12.module+el8.10.0+91045+f9258fff | 16.6-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 8 | postgresql-plpython3 | 12.22-12.module+el8.10.0+91045+f9258fff | 16.6-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 8 | postgresql-pltcl | 12.22-12.module+el8.10.0+91045+f9258fff | 16.6-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 8 | postgresql-private-devel | 15.19-1.module+el8.10.0+91041+3270c1ae | 16.6-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 8 | postgresql-private-libs | 15.19-1.module+el8.10.0+91041+3270c1ae | 16.6-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 8 | postgresql-server | 12.22-12.module+el8.10.0+91045+f9258fff | 16.6-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 8 | postgresql-server-devel | 12.22-12.module+el8.10.0+91045+f9258fff | 16.6-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 8 | postgresql-static | 12.22-12.module+el8.10.0+91045+f9258fff | 16.6-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 8 | postgresql-test | 12.22-12.module+el8.10.0+91045+f9258fff | 16.6-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 8 | postgresql-test-rpm-macros | 12.22-12.module+el8.10.0+91045+f9258fff | 16.6-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 8 | postgresql-upgrade | 12.22-12.module+el8.10.0+91045+f9258fff | 16.6-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 8 | postgresql-upgrade-devel | 12.22-12.module+el8.10.0+91045+f9258fff | 16.6-1.module+el8.10.0+90451+109c7b24 |
| Oracle Linux | 9 | pgaudit | 1.7.0-1.module+el9.9.0+91112+4e060aac | 1.7.0-1.module+el9.2.0+21134+ceb95ed9 |
| Oracle Linux | 9 | pg_repack | 1.4.8-2.module+el9.9.0+91112+4e060aac | 1.5.1-1.module+el9.5.0+90450+cb2feb1d |
| Oracle Linux | 9 | postgres-decoderbufs | 1.9.7-1.Final.module+el9.9.0+91112+4e060aac | 2.4.0-1.Final.module+el9.4.0+90394+9e4f3cba |
| Oracle Linux | 9 | postgresql | 15.19-1.module+el9.9.0+91112+4e060aac | 16.6-1.module+el9.5.0+90450+cb2feb1d |
| Oracle Linux | 9 | postgresql-contrib | 15.19-1.module+el9.9.0+91112+4e060aac | 16.6-1.module+el9.5.0+90450+cb2feb1d |
| Oracle Linux | 9 | postgresql-docs | 15.19-1.module+el9.9.0+91112+4e060aac | 16.6-1.module+el9.5.0+90450+cb2feb1d |
| Oracle Linux | 9 | postgresql-plperl | 15.19-1.module+el9.9.0+91112+4e060aac | 16.6-1.module+el9.5.0+90450+cb2feb1d |
| Oracle Linux | 9 | postgresql-plpython3 | 15.19-1.module+el9.9.0+91112+4e060aac | 16.6-1.module+el9.5.0+90450+cb2feb1d |
| Oracle Linux | 9 | postgresql-pltcl | 15.19-1.module+el9.9.0+91112+4e060aac | 16.6-1.module+el9.5.0+90450+cb2feb1d |
| Oracle Linux | 9 | postgresql-private-devel | 15.19-1.module+el9.9.0+91112+4e060aac | 16.6-1.module+el9.5.0+90450+cb2feb1d |
| Oracle Linux | 9 | postgresql-private-libs | 15.19-1.module+el9.9.0+91112+4e060aac | 16.6-1.module+el9.5.0+90450+cb2feb1d |
| Oracle Linux | 9 | postgresql-server | 15.19-1.module+el9.9.0+91112+4e060aac | 16.6-1.module+el9.5.0+90450+cb2feb1d |
| Oracle Linux | 9 | postgresql-server-devel | 15.19-1.module+el9.9.0+91112+4e060aac | 16.6-1.module+el9.5.0+90450+cb2feb1d |
| Oracle Linux | 9 | postgresql-static | 15.19-1.module+el9.9.0+91112+4e060aac | 16.6-1.module+el9.5.0+90450+cb2feb1d |
| Oracle Linux | 9 | postgresql-test | 15.19-1.module+el9.9.0+91112+4e060aac | 16.6-1.module+el9.5.0+90450+cb2feb1d |
| Oracle Linux | 9 | postgresql-test-rpm-macros | 15.19-1.module+el9.9.0+91112+4e060aac | 16.6-1.module+el9.5.0+90450+cb2feb1d |
| Oracle Linux | 9 | postgresql-upgrade | 15.19-1.module+el9.9.0+91112+4e060aac | 16.6-1.module+el9.5.0+90450+cb2feb1d |
| Oracle Linux | 9 | postgresql-upgrade-devel | 15.19-1.module+el9.9.0+91112+4e060aac | 16.6-1.module+el9.5.0+90450+cb2feb1d |
| Red Hat Enterprise Linux | 9.8 | pgaudit | 1.5.0-6.el9 | 1.7.0-1.module+el9.2.0+17405+aeb9ec60 |
| Red Hat Enterprise Linux | 9.8 | pg_repack | 1.4.6-4.el9 | 1.4.8-1.module+el9.2.0+17405+aeb9ec60 |
| Red Hat Enterprise Linux | 9.8 | postgres-decoderbufs | 1.4.0-4.Final.el9 | 1.9.7-1.Final.module+el9.2.0+17405+aeb9ec60 |
| Red Hat Enterprise Linux | 9.8 | postgresql | 13.23-3.el9_8 | 15.3-1.module+el9.2.0.z+19113+6f5d9d63 |
| Red Hat Enterprise Linux | 9.8 | postgresql-contrib | 13.23-3.el9_8 | 15.3-1.module+el9.2.0.z+19113+6f5d9d63 |
| Red Hat Enterprise Linux | 9.8 | postgresql-docs | 15.2-1.module+el9.2.0+18159+266a3926 | 15.3-1.module+el9.2.0.z+19113+6f5d9d63 |
| Red Hat Enterprise Linux | 9.8 | postgresql-plperl | 13.23-3.el9_8 | 15.3-1.module+el9.2.0.z+19113+6f5d9d63 |
| Red Hat Enterprise Linux | 9.8 | postgresql-plpython3 | 13.23-3.el9_8 | 15.3-1.module+el9.2.0.z+19113+6f5d9d63 |
| Red Hat Enterprise Linux | 9.8 | postgresql-pltcl | 13.23-3.el9_8 | 15.3-1.module+el9.2.0.z+19113+6f5d9d63 |
| Red Hat Enterprise Linux | 9.8 | postgresql-private-devel | 15.2-1.module+el9.2.0+18159+266a3926 | 15.3-1.module+el9.2.0.z+19113+6f5d9d63 |
| Red Hat Enterprise Linux | 9.8 | postgresql-private-libs | 13.23-3.el9_8 | 15.3-1.module+el9.2.0.z+19113+6f5d9d63 |
| Red Hat Enterprise Linux | 9.8 | postgresql-server | 13.23-3.el9_8 | 15.3-1.module+el9.2.0.z+19113+6f5d9d63 |
| Red Hat Enterprise Linux | 9.8 | postgresql-server-devel | 15.2-1.module+el9.2.0+18159+266a3926 | 15.3-1.module+el9.2.0.z+19113+6f5d9d63 |
| Red Hat Enterprise Linux | 9.8 | postgresql-static | 15.2-1.module+el9.2.0+18159+266a3926 | 15.3-1.module+el9.2.0.z+19113+6f5d9d63 |
| Red Hat Enterprise Linux | 9.8 | postgresql-test | 15.2-1.module+el9.2.0+18159+266a3926 | 15.3-1.module+el9.2.0.z+19113+6f5d9d63 |
| Red Hat Enterprise Linux | 9.8 | postgresql-test-rpm-macros | 15.2-1.module+el9.2.0+18159+266a3926 | 15.3-1.module+el9.2.0.z+19113+6f5d9d63 |
| Red Hat Enterprise Linux | 9.8 | postgresql-upgrade | 13.23-3.el9_8 | 15.3-1.module+el9.2.0.z+19113+6f5d9d63 |
| Red Hat Enterprise Linux | 9.8 | postgresql-upgrade-devel | 15.2-1.module+el9.2.0+18159+266a3926 | 15.3-1.module+el9.2.0.z+19113+6f5d9d63 |
| Rocky Linux | 9 | pgaudit | 1.5.0-6.el9 | 0:1.7.0-1.module+el9.5.0+30637+4391fcca |
| Rocky Linux | 9 | postgres-decoderbufs | 1.4.0-4.Final.el9 | 0:1.9.7-1.Final.module+el9.5.0+30637+4391fcca |
| Ubuntu | focal | libecpg6 | 12.2-4 | 12.15-0ubuntu0.20.04.1 |
| Ubuntu | focal | libecpg-compat3 | 12.2-4 | 12.15-0ubuntu0.20.04.1 |
| Ubuntu | focal | libecpg-dev | 12.2-4 | 12.15-0ubuntu0.20.04.1 |
| Ubuntu | focal | libpgtypes3 | 12.2-4 | 12.15-0ubuntu0.20.04.1 |
| Ubuntu | focal | libpq5 | 12.2-4 | 12.15-0ubuntu0.20.04.1 |
| Ubuntu | focal | libpq-dev | 12.2-4 | 12.15-0ubuntu0.20.04.1 |
| Ubuntu | focal | postgresql-12 | 12.2-4 | 12.15-0ubuntu0.20.04.1 |
| Ubuntu | focal | postgresql-client-12 | 12.2-4 | 12.15-0ubuntu0.20.04.1 |
| Ubuntu | focal | postgresql-doc-12 | 12.2-4 | 12.15-0ubuntu0.20.04.1 |
| Ubuntu | jammy | libecpg6 | 14.2-1ubuntu1 | 14.8-0ubuntu0.22.04.1 |
| Ubuntu | jammy | libecpg-compat3 | 14.2-1ubuntu1 | 14.8-0ubuntu0.22.04.1 |
| Ubuntu | jammy | libecpg-dev | 14.2-1ubuntu1 | 14.8-0ubuntu0.22.04.1 |
| Ubuntu | jammy | libpgtypes3 | 14.2-1ubuntu1 | 14.8-0ubuntu0.22.04.1 |
| Ubuntu | jammy | libpq5 | 14.2-1ubuntu1 | 14.8-0ubuntu0.22.04.1 |
| Ubuntu | jammy | libpq-dev | 14.2-1ubuntu1 | 14.8-0ubuntu0.22.04.1 |
| Ubuntu | jammy | postgresql-14 | 14.2-1ubuntu1 | 14.8-0ubuntu0.22.04.1 |
| Ubuntu | jammy | postgresql-client-14 | 14.2-1ubuntu1 | 14.8-0ubuntu0.22.04.1 |
| Ubuntu | jammy | postgresql-doc-14 | 14.2-1ubuntu1 | 14.8-0ubuntu0.22.04.1 |
| Ubuntu | jammy | postgresql-plperl-14 | 14.2-1ubuntu1 | 14.8-0ubuntu0.22.04.1 |
| Ubuntu | jammy | postgresql-plpython3-14 | 14.2-1ubuntu1 | 14.8-0ubuntu0.22.04.1 |

_Showing 100 of 101 total affected builds._
