CVE-2026-14673 PUBLISHED

PostgreSQL amcheck does not clear untrusted search path

Assigner: PostgreSQL
Reserved: 03.07.2026 Published: 13.08.2026 Updated: 13.08.2026

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.

Metrics

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

Product Status

Vendor n/a
Product PostgreSQL
Versions Default: unaffected
  • affected from 18 to 18.5 (excl.)
  • affected from 16 to 16.15 (excl.)
  • affected from 15 to 15.19 (excl.)
  • affected from 0 to 14.24 (excl.)

Affected Configurations

Superuser previously issued "CREATE EXTENSION amcheck" and granted the attacker EXECUTE privilege on an extension function.

Credits

  • The PostgreSQL project thanks 王跃林 and Jacob Brazeal for reporting this problem.

References

Problem Types

  • Untrusted Search Path CWE