PostgreSQL expression deparse allows SQL injection via EXTRACT argument (CVE-2026-15741)
A SQL injection vulnerability exists in PostgreSQL's EXTRACT() expression deparse functionality, allowing an object owner to execute arbitrary SQL commands with superuser privileges via a malicious object definition. This affects various tools that consume expression deparse output, including pg_dump and psql commands like \sf. The vulnerability impacts multiple PostgreSQL versions prior to 14.24, 15.19, 16.15, 17.11, and 18.6.
AI Analysis
Technical Summary
CVE-2026-15741 is a SQL injection vulnerability in PostgreSQL's EXTRACT() expression deparse. An attacker with object owner privileges can craft a hostile object definition that leads to arbitrary SQL execution as a superuser. This vulnerability affects expression deparse consumers broadly, including core tools such as pg_dump and psql commands (e.g., \sf), as well as non-core tools that use similar functionality. Versions before PostgreSQL 14.24, 15.19, 16.15, 17.11, and 18.6 are affected. A patch is available to address this issue.
Potential Impact
Successful exploitation allows an object owner to execute arbitrary SQL commands with superuser privileges, potentially leading to full database compromise. The vulnerability affects multiple PostgreSQL versions and impacts core database tools and utilities that rely on expression deparse, increasing the risk of privilege escalation and unauthorized actions within the database environment.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade PostgreSQL to versions 14.24 or later, 15.19 or later, 16.15 or later, 17.11 or later, or 18.6 or later to remediate the issue. Applying these official fixes will prevent exploitation of the SQL injection vulnerability in the EXTRACT() expression deparse functionality.
PostgreSQL expression deparse allows SQL injection via EXTRACT argument (CVE-2026-15741)
Description
A SQL injection vulnerability exists in PostgreSQL's EXTRACT() expression deparse functionality, allowing an object owner to execute arbitrary SQL commands with superuser privileges via a malicious object definition. This affects various tools that consume expression deparse output, including pg_dump and psql commands like \sf. The vulnerability impacts multiple PostgreSQL versions prior to 14.24, 15.19, 16.15, 17.11, and 18.6.
Affected software
pkg:deb/postgresql/postgresqlRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-15741 is a SQL injection vulnerability in PostgreSQL's EXTRACT() expression deparse. An attacker with object owner privileges can craft a hostile object definition that leads to arbitrary SQL execution as a superuser. This vulnerability affects expression deparse consumers broadly, including core tools such as pg_dump and psql commands (e.g., \sf), as well as non-core tools that use similar functionality. Versions before PostgreSQL 14.24, 15.19, 16.15, 17.11, and 18.6 are affected. A patch is available to address this issue.
Potential Impact
Successful exploitation allows an object owner to execute arbitrary SQL commands with superuser privileges, potentially leading to full database compromise. The vulnerability affects multiple PostgreSQL versions and impacts core database tools and utilities that rely on expression deparse, increasing the risk of privilege escalation and unauthorized actions within the database environment.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade PostgreSQL to versions 14.24 or later, 15.19 or later, 16.15 or later, 17.11 or later, or 18.6 or later to remediate the issue. Applying these official fixes will prevent exploitation of the SQL injection vulnerability in the EXTRACT() expression deparse functionality.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-3v2h-jgrj-9jmm
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-15741"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7e0366bf8831d5398f8681
Added to database: 08/13/2026, 17:48:22 UTC
Last enriched: 09/08/2026, 15:14:40 UTC
Last updated: 09/28/2026, 13:47:42 UTC
Views: 55
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.