cve.bz

CVE-2020-14349 SQL Injection

7.1 highEPSS 2.2%

High (7.1). EPSS 2.2% estimated probability of exploitation activity in the next 30 days.

On this page
It was found that PostgreSQL versions before 12.4, before 11.9 and before 10.14 did not properly sanitize the search_path during logical replication. An authenticated attacker could use this flaw in an attack similar to CVE-2018-1058, in order to execute arbitrary SQL command in the context of the user used for replication.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
2.2% (unchanged from 2.2% a week ago; 2.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 83rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
CWE-427 Uncontrolled Search Path Element
OWASP Top 10
A05:2025 Injection, A08:2025 Software or Data Integrity Failures
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-2020-14349 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-14349?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-14349?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-2020-14349 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 10.0 before 10.14
postgresql:postgresqlfrom 11.0 before 11.9
postgresql:postgresqlfrom 12.0 before 12.4
opensuse:leap15.1
opensuse:leap15.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTSpostgresql-9.59.5.23-0ubuntu0.16.04.1USN-4472-1
Ubuntu18.04:LTSpostgresql-1010.14-0ubuntu0.18.04.1UBUNTU-CVE-2020-14349 USN-4472-1
Ubuntu20.04:LTSpostgresql-1212.4-0ubuntu0.20.04.1UBUNTU-CVE-2020-14349 USN-4472-1
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.4.0-4.module+el8.3.0+9042+664538f4RHSA-2020:5620
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.3.0+9042+664538f4RHSA-2020:5620
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:10.14-1.module+el8.2.0+7801+be0fed80RHSA-2020:3669
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:12.5-1.module+el8.3.0+9042+664538f4RHSA-2020:5620
Red Hatrhel_e4s:8.0::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:10.15-1.module+el8.0.0+9155+4a85661aRHSA-2020:5664
Red Hatrhel_eus:8.1::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:10.15-1.module+el8.1.0+9154+cd474635RHSA-2021:0166
Red Hatrhel_eus:8.2::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.4.0-4.module+el8.2.0+9043+1dbb5661RHSA-2021:0163
Red Hatrhel_eus:8.2::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.2.0+9043+1dbb5661RHSA-2021:0163
Red Hatrhel_eus:8.2::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:12.5-1.module+el8.2.0+9043+1dbb5661RHSA-2021:0163
Red Hatrhel_software_collections:3::el7rh-postgresql10-postgresql, rh-postgresql10-postgresql-docs, rh-postgresql10-postgresql-libs and 12 more0:10.14-1.el7RHSA-2020:5110
Red Hatrhel_software_collections:3::el7rh-postgresql12-postgresql, rh-postgresql12-postgresql-docs, rh-postgresql12-postgresql-libs and 12 more0:12.4-1.el7RHSA-2020:5112
Red Hatrhev_hypervisor:4.4::el8rhvm-appliance2:4.4-20210310.0.el8evRHSA-2021:0988
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 15 morepostgresql1010.15-4.9.1SUSE-SU-2020:3464-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 15 morepostgresql1212.5-3.9.3SUSE-SU-2020:3630-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morepostgresql1010.14-4.25.1SUSE-SU-2020:2264-1
SUSELinux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Server Applications 15 SP1 and 1 morepostgresql1010.14-8.19.1SUSE-SU-2020:2355-1
SUSELinux Enterprise Module for Basesystem 15 SP1, Linux Enterprise Module for Server Applications 15 SP1postgresql1212.4-3.11.1SUSE-SU-2020:2271-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Server Applications 15 SP2postgresql1212.4-8.6.1SUSE-SU-2020:2265-1
openSUSELeap 15.1postgresql1010.14-lp151.2.18.1openSUSE-SU-2020:1312-1
openSUSELeap 15.1postgresql1212.4-lp151.6.1openSUSE-SU-2020:1243-1
openSUSELeap 15.2postgresql12.0.1-lp152.3.3.2openSUSE-SU-2020:1228-1
openSUSELeap 15.2postgresql1010.13-lp152.2.3.1openSUSE-SU-2020:1228-1
openSUSELeap 15.2postgresql1010.14-lp152.2.6.2openSUSE-SU-2020:1326-1
openSUSELeap 15.2postgresql1111.9-lp152.3.3.1openSUSE-SU-2020:1228-1
openSUSELeap 15.2postgresql1212.3-lp152.3.4.1openSUSE-SU-2020:1228-1
openSUSELeap 15.2postgresql1212.4-lp152.3.7.1openSUSE-SU-2020:1244-1
openSUSELeap 15.2postgresql969.6.19-lp152.2.3.1openSUSE-SU-2020:1228-1
openSUSETumbleweedpostgresql1010.18-1.3openSUSE-SU-2024:11184-1
openSUSETumbleweedpostgresql1111.13-1.3openSUSE-SU-2024:11185-1
openSUSETumbleweedpostgresql1212.8-1.3openSUSE-SU-2024:11186-1
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2758+4f4474dfALSA-2020:5620
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2020:5620
Rocky Linux8pgaudit0:1.4.0-4.module+el8.4.0+545+ca56da2eRLSA-2020:5620
Rocky Linux8postgres-decoderbufs0:0.10.0-2.module+el8.4.0+424+71d47d9aRLSA-2020:5620
Rocky Linux8postgres-decoderbufs0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2020:5620
Alpinev3.9, v3.10postgresql11.9-r0ALPINE-CVE-2020-14349
Alpinev3.11, v3.12, v3.13 and 1 morepostgresql12.4-r0ALPINE-CVE-2020-14349
Alpinev3.15, v3.16postgresql12, postgresql1412.4-r0ALPINE-CVE-2020-14349
Alpinev3.17, v3.18postgresql12, postgresql14, postgresql1512.4-r0ALPINE-CVE-2020-14349
Alpinev3.19, v3.20postgresql14, postgresql1512.4-r0ALPINE-CVE-2020-14349

From the distributions' data via OSV.dev: 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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

In Red Hat Gluster Storage 3, PostgreSQL was shipped as a part of Red Hat Gluster Storage Console that is no longer supported for use with Red Hat Gluster Storage 3.5. Red Hat Gluster Storage Web Administration is now the recommended monitoring tool for Red Hat Storage Gluster clusters.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8postgresql:10-8020020200825115746.4cda2c84Fixed 2020-09-08RHSA-2020:3669
Red Hat Enterprise Linux 8postgresql:12-8030020201207110000.229f0a1cFixed 2020-12-17RHSA-2020:5620
Red Hat Enterprise Linux 8.0 Update Services for SAP Solutionspostgresql:10-8000020201214113918.f8e95b4eFixed 2020-12-22RHSA-2020:5664
Red Hat Enterprise Linux 8.1 Extended Update Supportpostgresql:10-8010020201214112129.c27ad7f8Fixed 2021-01-18RHSA-2021:0166
Red Hat Enterprise Linux 8.2 Extended Update Supportpostgresql:12-8020020201207110224.4cda2c84Fixed 2021-01-18RHSA-2021:0163
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-postgresql10-postgresql-0:10.14-1.el7Fixed 2020-11-18RHSA-2020:5110
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-postgresql12-postgresql-0:12.4-1.el7Fixed 2020-11-16RHSA-2020:5112
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-postgresql10-postgresql-0:10.14-1.el7Fixed 2020-11-18RHSA-2020:5110
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-postgresql12-postgresql-0:12.4-1.el7Fixed 2020-11-16RHSA-2020:5112
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-postgresql10-postgresql-0:10.14-1.el7Fixed 2020-11-18RHSA-2020:5110
Red Hat build of QuarkuspostgresqlNot affected
Red Hat Decision Manager 7postgresqlNot affected
Red Hat Enterprise Linux 5postgresqlNot affected
Red Hat Enterprise Linux 5postgresql84Not affected
Red Hat Enterprise Linux 6postgresqlNot affected
Red Hat Enterprise Linux 7postgresqlNot affected
Red Hat Enterprise Linux 8libpqNot affected
Red Hat Enterprise Linux 8postgresql:9.6/postgresqlNot affected
Red Hat Enterprise Linux 9postgresqlNot affected
Red Hat Fuse 7postgresqlNot affected
7 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-2020-14349.

Attack patterns (CAPEC)

  • CAPEC-38 Leveraging/Manipulating Configuration File Search Paths Likelihood: High · Severity: Very High
  • CAPEC-471 Search Order Hijacking Severity: Medium
  • 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