Postgres Advanced ServerDatabase / datastore · Enterprisedb

CVE-2023-41120

MEDIUM · 6.5 CVSS v3.1 Published 2023-12-12
Fix available
A fix is available. Upgrade to 11.21.32 / 12.16.20 or later.
See remediation →
71/100
Remediation priority · Elevated
Remotely reachable Zero-click

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 · unedited
An 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 permits an authenticated user to use DBMS_PROFILER to remove all accumulated profiling data on a system-wide basis, regardless of that user's permissions.

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 confidence

EnterpriseDB Postgres Advanced Server contains an improper authorization vulnerability in DBMS_PROFILER where an authenticated user (regardless of privilege level) can delete all accumulated profiling data system-wide, rather than being restricted to only their own data.

MitigationApply the vendor patches for affected versions (11.21.32, 12.16.20, 13.12.16, 14.9.0, 15.4.0 or later) to restore proper authorization controls on DBMS_PROFILER data deletion.

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
Postgres Advanced ServerDatabase / datastore
Affected:< 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.0

CVSS 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
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

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 checks

Work through these to decide whether this CVE applies to you.

  1. Identify Postgres Advanced Server installation
    Connect to the database and run 'SELECT version();' to confirm this is EnterpriseDB Postgres Advanced Server rather than standard PostgreSQL
    Affected if The output shows 'EnterpriseDB' or 'Postgres Advanced Server' as the database product
  2. Check installed version
    Run 'SELECT pg_catalog.pg_postmaster_start_time();' and query the version from system catalogs, or use edb-psql --version at the OS level
    Affected if Version is less than 11.21.32, OR between 12.0.0 and 12.16.20, OR between 13.0.0 and 13.12.17, OR between 14.0.0 and 14.9.0, OR between 15.0.0 and 15.4.0
  3. Verify DBMS_PROFILER is available
    Check if DBMS_PROFILER package exists by querying 'SELECT * FROM pg_namespace WHERE nspname = 'dbms_profiler';' or attempt to access profiler-related tables/functions
    Affected if DBMS_PROFILER schema exists in the database
  4. Confirm user access to profiler delete function
    Test whether an authenticated user (even without elevated privileges) can execute the profiler data deletion routine - query system catalogs for profiler cleanup procedures and check user permissions with 'SELECT grantee, privilege_type FROM information_schema.usage_privileges WHERE routine_schema = 'dbms_profiler';'
    Affected if User has EXECUTE permission on profiler cleanup routines without proper ownership restrictions

Environment is affected if running a vulnerable version of EnterpriseDB Postgres Advanced Server (as listed above) with DBMS_PROFILER enabled and users have unrestricted access to delete profiling data across the system.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 · scoped
Upgrade available Upgrade to 11.21.32 / 12.16.20 / 13.12.17 or later
Fixed in 11.21.3212.16.2013.12.17
Interim mitigation

Apply the vendor patches for affected versions (11.21.32, 12.16.20, 13.12.16, 14.9.0, 15.4.0 or later) to restore proper authorization controls on DBMS_PROFILER data deletion.

Recommended fix High confidence

Upgrade to EPAS 11.21.32 (for 11.x), 12.16.20 (for 12.x), 13.12.17 (for 13.x), 14.9.0 (for 14.x), or 15.4.0 (for 15.x)

  1. Identify the currently installed EnterpriseDB Postgres Advanced Server version using: psql --version or SELECT version();
  2. Determine which upgrade path applies based on current version: 11.x -> 11.21.32, 12.x -> 12.16.20, 13.x -> 13.12.17, 14.x -> 14.9.0, or 15.x -> 15.4.0
  3. Download the appropriate EnterpriseDB Postgres Advanced Server installer or packages from www.enterprisedb.com
  4. Back up all existing databases and configuration files before proceeding
  5. Stop the PostgreSQL/EPAS service using: systemctl stop edb-as-<version> or pg_ctl stop
  6. Install the upgraded version following EnterpriseDB's standard upgrade procedures
  7. Verify the DBMS_PROFILER permission fix by testing that unprivileged users can no longer remove system-wide profiling data
  8. Start the service and confirm normal operation
Caveat Same-major-version upgrades typically have minimal breaking changes; however, review EnterpriseDB release notes for any deprecation notices or migration requirements

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Postgres Advanced Server Scoped from the published advisory
  • Consultation2.0 h
  • Implementation3.0 h
  • Testing2.0 h
  • Review / QA1.0 h
8.0 hours of engineering $1,420
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,272.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2023-41120 — 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2023-41120 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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