CVE-2026-15741: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in PostgreSQL
CVE-2026-15741 is a high severity SQL injection vulnerability in PostgreSQL's EXTRACT() deparse functionality. It allows an object owner to execute arbitrary SQL commands with superuser privileges via a malicious object definition. This affects expression deparse consumers broadly, including tools like pg_dump and psql commands such as \sf. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.
AI Analysis
Technical Summary
This vulnerability involves improper neutralization of special elements used in SQL commands within PostgreSQL's EXTRACT() deparse process. An attacker who owns an object can craft a hostile object definition that leads to execution of arbitrary SQL commands as a superuser. This impacts various expression deparse consumers, including core and non-core tools like pg_dump and psql's \sf command. The vulnerability affects multiple major PostgreSQL versions prior to the specified patch levels.
Potential Impact
Successful exploitation allows an object owner to execute arbitrary SQL commands with superuser privileges, potentially leading to full system compromise, data disclosure, and data manipulation. The vulnerability affects multiple PostgreSQL versions and impacts both core and non-core tools that rely on expression deparse functionality.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until official patches or fixes are released, restrict object creation privileges to trusted users only and monitor for suspicious activity involving expression deparse consumers.
CVE-2026-15741: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in PostgreSQL
Description
CVE-2026-15741 is a high severity SQL injection vulnerability in PostgreSQL's EXTRACT() deparse functionality. It allows an object owner to execute arbitrary SQL commands with superuser privileges via a malicious object definition. This affects expression deparse consumers broadly, including tools like pg_dump and psql commands such as \sf. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.
CVSS v3.1
Score 8.8high
Affected software
pkg:deb/postgresql/postgresqlRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves improper neutralization of special elements used in SQL commands within PostgreSQL's EXTRACT() deparse process. An attacker who owns an object can craft a hostile object definition that leads to execution of arbitrary SQL commands as a superuser. This impacts various expression deparse consumers, including core and non-core tools like pg_dump and psql's \sf command. The vulnerability affects multiple major PostgreSQL versions prior to the specified patch levels.
Potential Impact
Successful exploitation allows an object owner to execute arbitrary SQL commands with superuser privileges, potentially leading to full system compromise, data disclosure, and data manipulation. The vulnerability affects multiple PostgreSQL versions and impacts both core and non-core tools that rely on expression deparse functionality.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until official patches or fixes are released, restrict object creation privileges to trusted users only and monitor for suspicious activity involving expression deparse consumers.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PostgreSQL
- Date Reserved
- 2026-07-14T14:24:10.232Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7dc617bf8831d5393e53b3
Added to database: 08/13/2026, 13:26:47 UTC
Last enriched: 08/13/2026, 13:43:58 UTC
Last updated: 08/13/2026, 13:43:58 UTC
Views: 3
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.
External Links
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.