CVE-2026-14673

PostgreSQL amcheck does not clear untrusted search path

Published Aug 13, 2026 CVSS 3.1 · 3.8 Low EPSS < 1% KEV · Not listed
Description
Untrusted search path in PostgreSQL amcheck allows a grantee of amcheck function EXECUTE privilege to execute arbitrary functions as the owners of expression indexes that depend on the search path, via setting a hostile search path before calling the amcheck function. Within major versions 18, 16, 15, and 14, minor versions before PostgreSQL 18.6, 16.15, 15.19, and 14.24 are affected. PostgreSQL 17 is unaffected.

Analysis

AI-generated

Technical impact

The vulnerability arises because PostgreSQL's amcheck extension does not clear an untrusted search path. A user who has been granted EXECUTE privilege on an amcheck function can set a malicious search_path before invoking the function. The function then runs arbitrary code with the privileges of the owner of any expression indexes it references, enabling the attacker to execute arbitrary functions as those owners. This issue is classified as CWE‑426: Untrusted Search Path.

Affected Systems

PostgreSQL database server versions 18, 16, 15, and 14 are impacted. Within each major release, all minor releases before 18.6, 16.15, 15.19, and 14.24 are affected. PostgreSQL 17 is unaffected.

Risk and Exploitability

The CVSS base score is 3.8, indicating low impact. With an EPSS score of < 1% and absent from the CISA KEV list, the likelihood of exploitation is uncertain. The attack vector is local: an attacker must already have EXECUTE privileges on an amcheck function and must be able to set the search_path configuration for the session. Successful exploitation would allow the attacker to run arbitrary functions as the owners of expression indexes, effectively escalating privileges within the database.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade PostgreSQL to a fixed version—18.6, 16.15, 15.19, 14.24, or a newer major release such as 17 that is unaffected.
  • Revoke EXECUTE privilege on the amcheck extension functions from any role that does not require it.
  • Configure the database’s search_path to include only trusted directories or enforce a strict default search_path.

Generated by OpenCVE AI on August 30, 2026 at 02:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4740-1 postgresql-15 security update
Debian DSA Debian DSA DSA-6438-1 postgresql-17 security update
Ubuntu USN Ubuntu USN USN-8653-1 PostgreSQL vulnerabilities
History
Type Values Removed Values Added
Description Untrusted search path in PostgreSQL amcheck allows a grantee of amcheck function EXECUTE privilege to execute arbitrary functions as the owners of expression indexes that depend on the search path, via setting a hostile search path before calling the amcheck function. Within major versions 18, 16, 15, and 14, minor versions before PostgreSQL 18.5, 16.15, 15.19, and 14.24 are affected. PostgreSQL 17 is unaffected. Untrusted search path in PostgreSQL amcheck allows a grantee of amcheck function EXECUTE privilege to execute arbitrary functions as the owners of expression indexes that depend on the search path, via setting a hostile search path before calling the amcheck function. Within major versions 18, 16, 15, and 14, minor versions before PostgreSQL 18.6, 16.15, 15.19, and 14.24 are affected. PostgreSQL 17 is unaffected.
Type Values Removed Values Added
CPEs cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Postgresql
Postgresql postgresql
Vendors & Products Postgresql
Postgresql postgresql
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Untrusted search path in PostgreSQL amcheck allows a grantee of amcheck function EXECUTE privilege to execute arbitrary functions as the owners of expression indexes that depend on the search path, via setting a hostile search path before calling the amcheck function. Within major versions 18, 16, 15, and 14, minor versions before PostgreSQL 18.5, 16.15, 15.19, and 14.24 are affected. PostgreSQL 17 is unaffected.
Title PostgreSQL amcheck does not clear untrusted search path
Weaknesses CWE-426
References
Metrics cvssV3_1

{'score': 3.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Aug 29, 2026, 11:07 PM
Reserved
Jul 3, 2026, 8:28 PM
Status
Modified
Published
Aug 13, 2026, 1:17 PM
Modified
Aug 29, 2026, 11:17 PM