cve.bz

CVE-2026-15741 postgresql postgresql: SQL Injection

8.8 highEPSS 0.4%

High (8.8) in postgresql postgresql. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
SQL injection in PostgreSQL EXTRACT() deparse allows an object owner to execute arbitrary SQL as a superuser via a hostile object definition. Attacks affect expression deparse consumers broadly, including pg_dump, psql commands like \sf, and any similar usage in non-core tools. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 39th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-08-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-15741 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-15741?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-15741?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-15741 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresqlfrom 14.0 before 14.24
postgresql:postgresqlfrom 15.0 before 15.19
postgresql:postgresqlfrom 16.0 before 16.15
postgresql:postgresqlfrom 17.0 before 17.11
postgresql:postgresqlfrom 18.0 before 18.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12postgresql-1515.19-0+deb12u1DEBIAN-CVE-2026-15741 DLA-4740-1
Debian13postgresql-1717.11-0+deb13u1DEBIAN-CVE-2026-15741 DSA-6438-1
Debian14postgresql-1818.6-1DEBIAN-CVE-2026-15741
Ubuntu20.04:LTSpostgresql-12no fix listedUBUNTU-CVE-2026-15741
Ubuntu22.04:LTSpostgresql-1414.24-0ubuntu0.22.04.1UBUNTU-CVE-2026-15741 USN-8653-1
Ubuntu24.04:LTSpostgresql-1616.15-0ubuntu0.24.04.1UBUNTU-CVE-2026-15741 USN-8653-1
Ubuntu26.04:LTSpostgresql-1818.6-0ubuntu0.26.04.1UBUNTU-CVE-2026-15741 USN-8653-1
UbuntuPro:14.04:LTSpostgresql-9.3no fix listedUBUNTU-CVE-2026-15741
UbuntuPro:16.04:LTSpostgresql-9.5no fix listedUBUNTU-CVE-2026-15741
UbuntuPro:18.04:LTSpostgresql-10no fix listedUBUNTU-CVE-2026-15741
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.8-1.module+el8.9.0+19797+c4ce5969RHSA-2026:69923
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.5.1-1.module+el8.10.0+22551+c0330dc9RHSA-2026:69876
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.7.0-1.module+el8.9.0+19797+c4ce5969RHSA-2026:69923
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:16.0-1.module+el8.10.0+20413+d8116364RHSA-2026:69876
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:1.9.7-1.Final.module+el8.9.0+19797+c4ce5969RHSA-2026:69923
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:2.4.0-1.Final.module+el8.10.0+20413+d8116364RHSA-2026:69876
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 25 more0:15.19-1.module+el8.10.0+24831+9c841e4eRHSA-2026:69923
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 25 more0:16.15-1.module+el8.10.0+24863+d1dc0d60RHSA-2026:69876
Red Hatenterprise_linux:9::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.8-2.module+el9.8.0+24091+17775505RHSA-2026:69914
Red Hatenterprise_linux:9::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.5.1-1.module+el9.8.0+24090+8f0ee565RHSA-2026:67491
Red Hatenterprise_linux:9::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.5.3-1.module+el9.8.0+23739+1c42644cRHSA-2026:67848
Red Hatenterprise_linux:9::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.7.0-1.module+el9.8.0+24091+17775505RHSA-2026:69914
51 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morepostgresql1515.19-150200.5.62.1SUSE-SU-2026:4018-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morepostgresql1616.15-150200.5.49.1SUSE-SU-2026:3943-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morepostgresql1717.11-150200.5.33.1SUSE-SU-2026:4013-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morepostgresql1818.6-150200.5.17.1SUSE-SU-2026:4015-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 3 morepostgresql1414.24-150200.5.77.1SUSE-SU-2026:3941-1
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Module for Server Applications 15 SP7 and 2 morepostgresql1717.11-150600.13.32.1SUSE-SU-2026:4016-1
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Module for Server Applications 15 SP7 and 2 morepostgresql1818.6-150600.13.16.1SUSE-SU-2026:4014-1
SUSELinux Enterprise Module for Legacy 15 SP7, Linux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Module for Server Applications 15 SP7 and 2 morepostgresql1616.15-150600.16.38.1SUSE-SU-2026:3963-1
SUSELinux Enterprise Module for Legacy 15 SP7, Linux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Server 15 SP6-LTSS and 1 morepostgresql1414.24-150600.16.36.1SUSE-SU-2026:3944-1
SUSELinux Enterprise Module for Legacy 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6postgresql1515.19-150600.16.36.1SUSE-SU-2026:4017-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5postgresql1414.24-3.75.1SUSE-SU-2026:3793-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5postgresql1515.19-3.61.1SUSE-SU-2026:3940-1
7 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 16.0postgresql1414.24-160000.1.1openSUSE-SU-2026:21699-1
openSUSELeap 16.0postgresql1515.19-160000.1.1openSUSE-SU-2026:21700-1
openSUSELeap 16.0postgresql1616.15-160000.1.1openSUSE-SU-2026:21701-1
openSUSELeap 16.0postgresql1717.11-160000.1.1openSUSE-SU-2026:21702-1
openSUSELeap 16.0postgresql18, postgresql18-mini18.6-160000.1.1openSUSE-SU-2026:21703-1
openSUSETumbleweedpostgresql1414.24-1.1openSUSE-SU-2026:11552-1
openSUSETumbleweedpostgresql1515.19-1.1openSUSE-SU-2026:11553-1
openSUSETumbleweedpostgresql1616.15-1.1openSUSE-SU-2026:11554-1
openSUSETumbleweedpostgresql1717.11-1.1openSUSE-SU-2026:11555-1
openSUSETumbleweedpostgresql1818.6-1.1openSUSE-SU-2026:11565-1
AlmaLinux8pg_repack1.4.8-1.module_el8.9.0+3706+885c732eALSA-2026:69923
AlmaLinux8pg_repack1.5.1-1.module_el8.10.0+4125+ceaf7d1bALSA-2026:69876
AlmaLinux8pg_repack1.5.1-1.module_el8.10.0+4199+bf03c564ALSA-2026:69876
AlmaLinux8pg_repack1.5.1-1.module_el8.10.0+4286+3c445f53ALSA-2026:69876
AlmaLinux8pgaudit1.7.0-1.module_el8.9.0+3706+885c732eALSA-2026:69923
AlmaLinux8pgaudit16.0-1.module_el8.10.0+3798+606ebb9fALSA-2026:69876
AlmaLinux8postgres-decoderbufs1.9.7-1.Final.module_el8.9.0+3706+885c732eALSA-2026:69923
AlmaLinux8postgres-decoderbufs2.4.0-1.Final.module_el8.10.0+3798+606ebb9fALSA-2026:69876
AlmaLinux8postgresql, postgresql-docs, postgresql-test and 12 more15.19-1.module_el8.10.0+4287+eeacefccALSA-2026:69923
AlmaLinux8postgresql, postgresql-docs, postgresql-test and 12 more16.15-1.module_el8.10.0+4286+3c445f53ALSA-2026:69876
AlmaLinux9pg_repack1.4.8-2.module_el9.5.0+119+18833d03ALSA-2026:69914
AlmaLinux9pg_repack1.5.1-1.module_el9.6.0+146+c54fdecaALSA-2026:67491
16 more for AlmaLinux in the JSON.
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+1622+bd25b19cRLSA-2026:69923
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+1858+fcc46a79RLSA-2026:69923
Rocky Linux8pg_repack0:1.4.8-1.module+el8.10.0+40056+df351139RLSA-2026:69923
Rocky Linux8pg_repack0:1.4.8-1.module+el8.9.0+1525+fc91df60RLSA-2026:69923
Rocky Linux8pg_repack0:1.5.1-1.module+el8.10.0+1900+d7340343RLSA-2026:69876
Rocky Linux8pg_repack0:1.5.1-1.module+el8.10.0+40057+c37a0e3dRLSA-2026:69876
Rocky Linux8pgaudit0:1.7.0-1.module+el8.10.0+40056+df351139RLSA-2026:69923
Rocky Linux8pgaudit0:1.7.0-1.module+el8.9.0+1525+fc91df60RLSA-2026:69923
Rocky Linux8pgaudit0:16.0-1.module+el8.10.0+1622+bd25b19cRLSA-2026:69876
Rocky Linux8pgaudit0:16.0-1.module+el8.10.0+1858+fcc46a79RLSA-2026:69876
Rocky Linux8pgaudit0:16.0-1.module+el8.10.0+40057+c37a0e3dRLSA-2026:69876
Rocky Linux8postgres-decoderbufs0:1.9.7-1.Final.module+el8.10.0+40056+df351139RLSA-2026:69923
25 more for Rocky Linux in the JSON.
Alpinev3.21, v3.22postgresql1515.19-r0ALPINE-CVE-2026-15741
Alpinev3.21, v3.22, v3.23 and 1 morepostgresql1616.15-r0ALPINE-CVE-2026-15741
Alpinev3.21, v3.22, v3.23 and 1 morepostgresql1717.11-r0ALPINE-CVE-2026-15741
Alpinev3.23, v3.24postgresql1818.5-r0ALPINE-CVE-2026-15741
Azure Linux3postgresql16.15-1AZL-95684
Alpaquita23postgresql1515.20-r0BELL-CVE-2026-15741
Alpaquita25postgresql1717.11-r0BELL-CVE-2026-15741
Alpaquitastreampostgresql1818.6-r0BELL-CVE-2026-15741

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

An Important-rated SQL injection vulnerability in PostgreSQL's EXTRACT() expression deparser allows an authenticated object owner to execute arbitrary SQL commands with superuser privileges. By crafting a hostile database object, an attacker can trigger privilege escalation when administrative tools like pg_dump or psql process the object. This poses a significant risk to environments where non-administrative users are granted object creation rights.

Red Hat's mitigation

To mitigate this vulnerability, administrators should strictly limit database object creation privileges to highly trusted users. When performing backups or database introspection using pg_dump or psql, exercise caution when operating on databases that allow untrusted users to define objects,

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10postgresql18-0:18.6-1.el10_2Fixed 2026-09-14RHSA-2026:67280
Red Hat Enterprise Linux 10postgresql16-0:16.15-1.el10_2Fixed 2026-09-22RHSA-2026:70186
Red Hat Enterprise Linux 10.0 Extended Update Supportpostgresql16-0:16.15-1.el10_0Fixed 2026-09-28RHSA-2026:72282
Red Hat Enterprise Linux 8postgresql:16-8100020260910192321.489197e6Fixed 2026-09-22RHSA-2026:69876
Red Hat Enterprise Linux 8postgresql:15-8100020260906175012.489197e6Fixed 2026-09-22RHSA-2026:69923
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpostgresql:12-8040020260924163759.522a0ee4Fixed 2026-09-30RHSA-2026:73912
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onpostgresql:12-8040020260924163759.522a0ee4Fixed 2026-09-30RHSA-2026:73912
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpostgresql:12-8060020260923144955.ad008a3aFixed 2026-09-28RHSA-2026:72363
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onpostgresql:12-8060020260923144955.ad008a3aFixed 2026-09-28RHSA-2026:72363
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicepostgresql:15-8080020260921162003.63b34585Fixed 2026-09-23RHSA-2026:70602
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicepostgresql:12-8080020260923144922.63b34585Fixed 2026-09-28RHSA-2026:72362
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionspostgresql:15-8080020260921162003.63b34585Fixed 2026-09-23RHSA-2026:70602
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionspostgresql:12-8080020260923144922.63b34585Fixed 2026-09-28RHSA-2026:72362
Red Hat Enterprise Linux 9postgresql:16-9080020260907191505.rhel9Fixed 2026-09-15RHSA-2026:67491
Red Hat Enterprise Linux 6postgresqlOut of support scope
Red Hat Enterprise Linux 7postgresqlNot affected
Red Hat Enterprise Linux 8postgresql:12/postgresqlAffected
Red Hat Enterprise Linux 9postgresqlNot affected
Red Hat Hardened Imagespostgresql17Not affected
Red Hat Hardened Imagespostgresql18Not affected
9 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-15741.

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
  • CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON