CVE-2020-14349: SQL Injection

Published Aug 4, 2020
·
Updated

A flaw was found in PostgreSQL, where it did not properly sanitize the searchpath during logical replication. This flaw allows an authenticated attacker to use this flaw in an attack similar to CVE-2018-1058 to execute an arbitrary SQL command in the user's context for replication. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.

Other sources

It was found that PostgreSQL versions before 12.4, before 11.9 and before 10.14 did not properly sanitize the searchpath 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.

The PostgreSQL searchpath setting determines schemas searched for tables, functions, operators, etc. The CVE-2018-1058 fix caused most PostgreSQL-provided client applications to sanitize searchpath, but logical replication continued to leave searchpath unchanged. Users of a replication publisher or subscriber database can create objects in the "public" schema and harness them to execute arbitrary SQL functions under the identity running replication, often a superuser. Installations having adopted a documented "secure schema usage pattern" are not vulnerable.

Red Hat

Affected Software

14 affected componentsFixes available
redhat/rh-postgresql10-postgresql<0:10.14-1.el7
0:10.14-1.el7
redhat/rh-postgresql12-postgresql<0:12.4-1.el7
0:12.4-1.el7
redhat/rhvm-appliance<0:4.4-20210310.0.el8e
0:4.4-20210310.0.el8e
redhat/postgresql<12.4
12.4
redhat/postgresql<11.9
11.9
redhat/postgresql<10.14
10.14
debian/postgresql-11
debian/postgresql-12
debian/postgresql-9.6
PostgreSQL postgresql>=10.0<10.14
PostgreSQL postgresql>=11.0<11.9
PostgreSQL postgresql>=12.0<12.4
openSUSE Leap=15.1
openSUSE Leap=15.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/rh-postgresql10-postgresql to a version that resolves this vulnerability.

    Fixed in 0:10.14-1.el7
  2. Upgrade

    Upgrade redhat/rh-postgresql12-postgresql to a version that resolves this vulnerability.

    Fixed in 0:12.4-1.el7
  3. Upgrade

    Upgrade redhat/rhvm-appliance to a version that resolves this vulnerability.

    Fixed in 0:4.4-20210310.0.el8e
  4. Upgrade

    Upgrade redhat/postgresql to a version that resolves this vulnerability.

    Fixed in 12.4
  5. Upgrade

    Upgrade redhat/postgresql to a version that resolves this vulnerability.

    Fixed in 11.9
  6. Upgrade

    Upgrade redhat/postgresql to a version that resolves this vulnerability.

    Fixed in 10.14
  7. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 12.4
  8. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 11.9
  9. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 10.14

Event History

Aug 4, 2020
Data Sourced
via Red Hat·03:48 AM
DescriptionSeverityAffected Software
Aug 13, 2020
CVE Published
12:00 AM
Aug 24, 2020
CVE Published
via MITRE·12:32 PM
Data Sourced
via MITRE·12:32 PM
DescriptionWeakness
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·11:40 PM
Description
Feb 23, 2026
Data Sourced
via Ubuntu·07:29 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2020-14349?

CVE-2020-14349 is a vulnerability that affects PostgreSQL versions before 12.4, before 11.9, and before 10.14. It allows an authenticated attacker to execute arbitrary SQL commands in the user's context for replication.

2

How does CVE-2020-14349 impact PostgreSQL?

CVE-2020-14349 impacts PostgreSQL by not properly sanitizing the search_path during logical replication, which allows an attacker to execute arbitrary SQL commands in the user's context for replication.

3

What is the severity of CVE-2020-14349?

CVE-2020-14349 has a severity value of 7 (high).

4

Which versions of PostgreSQL are affected by CVE-2020-14349?

CVE-2020-14349 affects versions before 12.4, before 11.9, and before 10.14 of PostgreSQL.

5

How can I fix the CVE-2020-14349 vulnerability?

To fix the CVE-2020-14349 vulnerability, you should update PostgreSQL to version 12.4, version 11.9, or version 10.14.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203