CVE-2023-2454: Input Validation
CVE-2023-2454: CREATE SCHEMA ... schemaelement defeats protective searchpath changes.
Versions Affected: 11 - 15. This problem is quite old.
This enabled an attacker having database-level CREATE privilege to execute arbitrary code as the bootstrap superuser. Database owners have that right by default, and explicit grants may extend it to other users.
https://www.postgresql.org/support/security/CVE-2023-2454/
Other sources
schemaelement defeats protective searchpath changes; It was found that certain database calls in PostgreSQL could permit an authed attacker with elevated database-level privileges to execute arbitrary code.
— Ubuntu
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/postgresql-11to a version that resolves this vulnerability.Fixed in 11.22-0+deb10u2 - Upgrade
Upgrade
debian/postgresql-13to a version that resolves this vulnerability.Fixed in 13.13-0+deb11u1Fixed in 13.14-0+deb11u1 - Upgrade
Upgrade
debian/postgresql-15to a version that resolves this vulnerability.Fixed in 15.5-0+deb12u1Fixed in 15.6-0+deb12u1 - Upgrade
Upgrade
ubuntu/postgresql-10to a version that resolves this vulnerability.Fixed in 10.23-0ubuntu0.18.04.2 - Upgrade
Upgrade
ubuntu/postgresql-12to a version that resolves this vulnerability.Fixed in 12.15-0ubuntu0.20.04.1 - Upgrade
Upgrade
ubuntu/postgresql-14to a version that resolves this vulnerability.Fixed in 14.8-0ubuntu0.22.04.1 - Upgrade
Upgrade
ubuntu/postgresql-14to a version that resolves this vulnerability.Fixed in 14.8-0ubuntu0.22.10.1 - Upgrade
Upgrade
ubuntu/postgresql-15to a version that resolves this vulnerability.Fixed in 15.3-0ubuntu0.23.04.1 - Upgrade
Upgrade
ubuntu/postgresql-9.5to a version that resolves this vulnerability.Fixed in 9.5.25-0ubuntu0.16.04.1+ - Upgrade
Upgrade
redhat/PostgreSQLto a version that resolves this vulnerability.Fixed in 15.3 - Upgrade
Upgrade
redhat/PostgreSQLto a version that resolves this vulnerability.Fixed in 14.8 - Upgrade
Upgrade
redhat/PostgreSQLto a version that resolves this vulnerability.Fixed in 13.11 - Upgrade
Upgrade
redhat/PostgreSQLto a version that resolves this vulnerability.Fixed in 12.15 - Upgrade
Upgrade
redhat/PostgreSQLto a version that resolves this vulnerability.Fixed in 11.20
Event History
Frequently Asked Questions
What is the severity of CVE-2023-2454?
The severity of CVE-2023-2454 is high (7).
How does CVE-2023-2454 affect PostgreSQL?
CVE-2023-2454 can permit an authenticated attacker with elevated database-level privileges to execute arbitrary code in PostgreSQL.
Which versions of PostgreSQL are affected by CVE-2023-2454?
CVE-2023-2454 affects PostgreSQL versions 9.5, 10, 11, 12, 13, 14, and 15.
How can I fix CVE-2023-2454 in PostgreSQL?
To fix CVE-2023-2454 in PostgreSQL, update to the latest available version and apply any necessary patches.
Where can I find more information about CVE-2023-2454?
You can find more information about CVE-2023-2454 at the following references: [1] [2] [3]