CVE-2023-2454
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedschema_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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidencePostgreSQL vulnerability where the schema_element function defeats protective search_path changes, allowing an authenticated attacker with elevated database-level privileges to execute arbitrary code on the host system.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 11.0, < 11.20>= 12.0, < 12.15>= 13.0, < 13.11>= 14.0, < 14.8>= 15.0, < 15.3all versions= 8.0= 9.0= 38CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed PostgreSQL versionRun `psql --version` or connect to the database and execute `SELECT version();` to get the exact version numberAffected if The installed version falls within any of these ranges: 11.0-11.19, 12.0-12.14, 13.0-13.10, 14.0-14.7, or 15.0-15.2
-
Check current user privilegesConnect to the database as the target user and execute `SELECT rolname, rolsuper, rolinherit, rolcanlogin, rolcreaterole, rolcreatedb, rolreplication FROM pg_roles WHERE rolname = current_user;` or `\du` in psqlAffected if The current user has superuser, pg_execute_server_program, or similar elevated privileges that allow executing external commands
-
Verify schema_element function accessibilityConnect to any database and execute `SELECT proname FROM pg_proc WHERE proname = 'schema_element';` to confirm the function existsAffected if The function is present and available to the authenticated user
-
Inspect search_path configurationConnect to the database and execute `SHOW search_path;` to view the current search path settingAffected if search_path contains '$user' or public schemas without explicit qualification, or is set to a vulnerable configuration that allows schema hijacking
A user is affected if they run a vulnerable PostgreSQL version (11.x before 11.20, 12.x before 12.15, 13.x before 13.11, 14.x before 14.8, or 15.x before 15.3) AND have an authenticated session with elevated database privileges that could leverage the schema_element function to bypass search_path protections.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped11.2012.1513.11
Update PostgreSQL to the latest patched version and review database user privileges, ensuring that elevated privileges are restricted and search_path is properly configured with defensive settings.
PostgreSQL 11.20, 12.15, 13.11, or 14.8 (upgrade to the next minor version past your current major)
- 1. Backup your PostgreSQL database completely before upgrading
- 2. Stop the PostgreSQL service to prevent data corruption during upgrade
- 3. Upgrade PostgreSQL to the fixed version: 11.20, 12.15, 13.11, or 14.8 (depending on your current major version)
- 4. After upgrade, verify that search_path settings are correctly configured to prevent the schema_element bypass
- 5. Start the PostgreSQL service
- 6. Test that the search_path protective measures work as expected
- 7. Verify application functionality against the upgraded database
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation6.0 h
- Implementation12.0 h
- Testing6.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $7,968.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-2454 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2023-2454 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data