Skip to main content

PostgreSQL amcheck EUVDEUVD-2026-57839

| CVE-2026-14673 LOW
Untrusted Search Path (CWE-426)
2026-08-13 f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 GHSA-qp83-ppf3-v924
3.8
CVSS 3.1 · Vendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to PostgreSQL with amcheck EXECUTE privilege
  2. Delivery
    Issue SET search_path to inject hostile schema
  3. Exploit
    Call amcheck function targeting expression index
  4. Execution
    amcheck resolves index function via attacker-controlled search_path
  5. Persist
    Attacker function executes as index owner
  6. Impact
    Access or modify data within index owner's privilege scope

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path verification
Exploitation Conditions

Exploitation requires that the attacking database account has been explicitly granted EXECUTE privilege on one or more amcheck functions (e.g., bt_index_check) - this is a non-default configuration that a superuser or function owner must deliberately configure. The target database must also contain at least one expression index whose underlying function call is resolvable through search_path, providing a privilege escalation target. PostgreSQL 17 is entirely exempt. On branches 14, 15, 16, and 18, only instances running minor versions prior to 14.24, 15.19, 16.15, and 18.5 respectively are vulnerable. Exploitation is constrained to within-database privilege escalation to the identity of the expression index owner; no OS-level impact is established from the available data. Authentication to the database instance is inherently required given PR:H in the CVSS vector.

Impact

The official CVSS 3.1 score of 3.8 (Low) accurately reflects the constrained real-world risk. PR:H is the decisive limiting factor: exploitation requires EXECUTE privilege on amcheck functions, which is a non-default grant requiring explicit superuser or ownership action - the vast majority of PostgreSQL deployments do not expose this privilege broadly. AV:N confirms the attack is reachable over a standard database connection, but this does not lower the privilege bar. Impact is bounded at C:L/I:L/A:N, consistent with intra-database privilege escalation to the index owner role rather than OS-level access. No EPSS score was provided in the input data, and the absence of a KEV listing or any POC reference further reduces urgency. This vulnerability is a genuine concern primarily in environments that grant amcheck access to auditing, read-replica, or lower-trust database roles - an uncommon but real deployment pattern. For standard configurations where amcheck is restricted to superusers, practical risk is negligible.

Exploit ScenarioDerived

A database account explicitly granted EXECUTE privilege on bt_index_check connects to a PostgreSQL instance and issues SET search_path = attacker_schema, pg_catalog to shadow a function used by an expression index. The attacker then calls bt_index_check against a table with that expression index; amcheck resolves the path-dependent function through the manipulated search_path and executes the attacker-supplied function in the security context of the index owner, potentially exposing data or modifying objects accessible to that owner. No public proof-of-concept exploit has been identified at time of analysis.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 13, 2026

Untrusted search path in PostgreSQL's amcheck extension allows a database user holding EXECUTE privilege on amcheck functions to execute arbitrary functions as the owners of expression indexes by injecting a hostile search_path before calling amcheck. Affected are PostgreSQL major versions 14, 15, 16, and 18 in releases prior to 14.24, 15.19, 16.15, and 18.5 respectively; version 17 is entirely unaffected. No public exploit has been identified at time of analysis, and the vulnerability is not listed in CISA KEV, consistent with the niche exploitation prerequisite of an explicitly granted amcheck EXECUTE privilege.

RemediationAI

Upgrade to PostgreSQL 18.5, 16.15, 15.19, or 14.24 depending on the major version branch in use; these are the fixed releases confirmed by the vendor advisory at https://www.postgresql.org/support/security/CVE-2026-14673/. Until patching is feasible, the most effective compensating control is to revoke all non-essential EXECUTE privileges on amcheck functions (bt_index_check, bt_index_parent_check, heap_page_items, etc.) from any role that does not strictly require index verification capabilities - this eliminates the exploitation prerequisite entirely with no functional impact on normal workloads. If amcheck access cannot be revoked, restrict the ability of grantee roles to alter session-level search_path by enforcing a fixed path at role creation time via ALTER ROLE <role> SET search_path = pg_catalog, public, which significantly reduces the attack surface, though with the trade-off that any application relying on dynamic schema resolution for that role may be affected.

Affected VersionsENISA

PostgreSQL 15 <15.19
PostgreSQL 18 <18.5
PostgreSQL 16 <16.15
PostgreSQL 0 <14.24

Affected Packages

euvd postgresql fix: 14.24, 15.19, 16.15, 18.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PostgreSQL's amcheck module (Access Method Check) provides SQL-callable functions - such as bt_index_check and heap_page_items - for verifying the structural and logical integrity of B-tree indexes and heap tables. The root cause is CWE-426 (Untrusted Search Path): amcheck functions resolve function references at execution time using the session's active search_path. Expression indexes (e.g., CREATE INDEX ON t(lower(name))) embed function calls whose resolution is path-dependent and whose execution context is the index owner's privilege level. Because PostgreSQL allows any session-level SET search_path, a grantee of amcheck EXECUTE can substitute a hostile schema entry that shadows the legitimate function, causing amcheck to execute attacker-supplied code under the index owner's identity. The flaw is absent in PostgreSQL 17, suggesting it was addressed during that major-version development cycle but not backported until the targeted minor releases.

Know when PostgreSQL gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007) PRIMARY 3.8 LOW
AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 3.8 LOW

PR:H reflects the mandatory explicit EXECUTE grant on amcheck; impact capped at L/L/N as escalation stays within the database trust boundary.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007).

CVSS VectorVendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Aug 13, 2026 - 14:02 EUVD
CVE Published
Aug 13, 2026 - 13:17 cve.org
LOW 3.8

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
High
PostgreSQL is a dominant open-source RDBMS with broad enterprise and cloud deployment.
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

19
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +19
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy