SQL Injection Vulnerability in PostgreSQL EXTRACT() Function
CVE-2026-15741

8.8HIGH

Key Information:

Vendor

PostgreSQL

Vendor
CVE Published:
13 August 2026

What is CVE-2026-15741?

An SQL injection vulnerability exists in the PostgreSQL EXTRACT() function, which permits an object owner to execute arbitrary SQL commands as a superuser through a crafted object definition. This flaw broadly impacts users of expression deparse consumers such as pg_dump and psql commands like \sf, along with similar functionalities in non-core tools. It is essential to update to the latest version to mitigate risks associated with this vulnerability.

Affected Version(s)

PostgreSQL 18 < 18.5

PostgreSQL 17 < 17.11

PostgreSQL 16 < 16.15

References

CVSS V3.1

Score:
8.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

The PostgreSQL project thanks Ben Morris (Claude and Anthropic Research) for reporting this problem.
.