CVE-2023-41117
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 · uneditedAn issue was discovered in EnterpriseDB Postgres Advanced Server (EPAS) before 11.21.32, 12.x before 12.16.20, 13.x before 13.12.16, 14.x before 14.9.0, and 15.x before 15.4.0. It contain packages, standalone packages, and functions that run SECURITY DEFINER but are inadequately secured against search_path attacks.
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 · high confidenceEnterpriseDB Postgres Advanced Server contains packages, standalone packages, and SECURITY DEFINER functions that do not properly set the search_path, allowing attackers to potentially escalate privileges by creating malicious objects in schemas that get resolved before the intended ones.
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.21.32>= 12.0.0, < 12.16.20>= 13.0.0, < 13.12.17>= 14.0.0, < 14.9.0>= 15.0.0, < 15.4.0CVSS 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
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/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 Postgres Advanced Server versionRun 'SELECT version();' or check the product documentation for your installation to determine the exact version number.Affected if The version falls into any of these ranges: < 11.21.32, >= 12.0.0 and < 12.16.20, >= 13.0.0 and < 13.12.17, >= 14.0.0 and < 14.9.0, or >= 15.0.0 and < 15.4.0.
-
Find SECURITY DEFINER functionsQuery the pg_proc catalog: SELECT proname, pronamespace::regnamespace as schema, proiswindow, prosecdef FROM pg_proc WHERE prosecdef = true;Affected if Any functions with SECURITY DEFINER exist in the database.
-
Check search_path configuration in SECURITY DEFINER functionsFor each SECURITY DEFINER function found, examine its definition: SELECT proname, prosrc FROM pg_proc WHERE prosecdef = true AND prosrc LIKE '%search_path%'; or inspect the function definition with \df+ in psql.Affected if SECURITY DEFINER functions do NOT explicitly set search_path to trusted schemas in their definition.
-
Identify installed packagesQuery for packages: SELECT pkgname, pkgschema::regnamespace FROM edb$package; or check the pg_namespace catalog for schemas containing package objects.Affected if Packages exist and were installed with the default search_path not explicitly restricted.
You are affected if your installed version is within the vulnerable ranges AND you have SECURITY DEFINER functions or packages that do not explicitly set search_path to trusted schemas.
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.21.3212.16.2013.12.17
Update to patched versions (11.21.32, 12.16.20, 13.12.16, 14.9.0, or 15.4.0 or later), or for workaround, explicitly set search_path to trusted schemas in all SECURITY DEFINER functions.
Upgrade to the latest patch release in your current major version branch: 11.21.32+, 12.16.20+, 13.12.17+, or 14.9.0+
- 1. Identify the current installed version of EnterpriseDB Postgres Advanced Server using: psql --version or SELECT version();
- 2. Determine which major version branch you are currently on (11, 12, 13, or 14)
- 3. For version 11.x: upgrade to 11.21.32 or later
- 4. For version 12.x: upgrade to 12.16.20 or later
- 5. For version 13.x: upgrade to 13.12.17 or later
- 6. For version 14.x: upgrade to 14.9.0 or later
- 7. Download the appropriate fixed version from www.enterprisedb.com or your enterprise package repository
- 8. Follow EnterpriseDB's standard upgrade procedure for Postgres Advanced Server (pg_upgrade or logical migration recommended)
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing4.0 h
- Review / QA3.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,408.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-41117 — 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-41117 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