{"schemaVersion":3,"id":"CVE-2020-14349","aliases":["ALPINE-CVE-2020-14349","UBUNTU-CVE-2020-14349"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2020-08-24T12:32:13.000Z","modified":"2024-08-04T12:39:36.599Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":3.1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":3.1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.6,"severity":"medium","vector":"AV:N/AC:H/Au:S/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02235,"percentile":0.82531,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02235},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02235,"percentile":0.82531}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02235,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02235,"percentile":0.82531}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-427","name":"Uncontrolled Search Path Element","description":"The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/427.html"}],"affected":[{"vendor":"alpine","product":"postgresql","name":"postgresql","label":"postgresql","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql","purlType":"apk","versions":[{"text":"≥ 10.0, < 11.9-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 10.0, < 12.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 10.0, < 11.9-r0 | ≥ 10.0, < 12.4-r0","eol":null,"hubHref":null},{"vendor":"alpine","product":"postgresql14","name":"postgresql14","label":"postgresql14","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql14","purlType":"apk","versions":[{"text":"< 12.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 12.4-r0","eol":null,"hubHref":null},{"vendor":"alpine","product":"postgresql15","name":"postgresql15","label":"postgresql15","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql15","purlType":"apk","versions":[{"text":"< 12.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 12.4-r0","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-10","name":"postgresql-10","label":"postgresql-10","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-10","purlType":"deb","versions":[{"text":"< 10.14-0ubuntu0.18.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.14-0ubuntu0.18.04.1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-12","name":"postgresql-12","label":"postgresql-12","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-12","purlType":"deb","versions":[{"text":"< 12.4-0ubuntu0.20.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 12.4-0ubuntu0.20.04.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"leap","name":"leap","label":"leap","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"15.1","noFixRecorded":false,"fixedIn":null},{"text":"15.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"15.1 | 15.2","eol":{"isEol":true,"eolDate":"2021-02-02T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"15.1","label":"Leap 15.1","eolFrom":"2021-02-02T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"opensuse","label":"openSUSE","category":"os"}},"hubHref":"/vendor/opensuse/leap"},{"vendor":"postgresql","product":"postgresql","name":"postgresql","label":"postgresql","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 10.0, < 10.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 11.0, < 11.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 12.0, < 12.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 10.0, < 10.14 | ≥ 11.0, < 11.9 | ≥ 12.0, < 12.4","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"postgresql","label":"PostgreSQL","category":"database"}},"hubHref":"/vendor/postgresql/postgresql"}],"affectedCount":7,"eol":{"hasEol":true,"count":1},"references":[{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00044.html","label":"lists.opensuse.org/opensuse-security-announce/2020-08/msg00044.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Broken Link","Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00049.html","label":"lists.opensuse.org/opensuse-security-announce/2020-08/msg00049.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-08/msg00050.html","label":"lists.opensuse.org/opensuse-security-announce/2020-08/msg00050.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1865744","label":"bugzilla.redhat.com/show_bug.cgi?id=1865744","hostname":"bugzilla.redhat.com","tags":["X Refsource MISC","Issue Tracking","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/202008-13","label":"security.gentoo.org/glsa/202008-13","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]},{"url":"https://usn.ubuntu.com/4472-1/","label":"usn.ubuntu.com/4472-1/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00003.html","label":"lists.opensuse.org/opensuse-security-announce/2020-09/msg00003.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00008.html","label":"lists.opensuse.org/opensuse-security-announce/2020-09/msg00008.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20200918-0002/","label":"security.netapp.com/advisory/ntap-20200918-0002/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2020-14349","label":"security.alpinelinux.org/vuln/CVE-2020-14349","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-14349","label":"ubuntu.com/security/CVE-2020-14349","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.postgresql.org/about/news/2060/","label":"www.postgresql.org/about/news/2060/","hostname":"www.postgresql.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4472-1","label":"ubuntu.com/security/notices/USN-4472-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-14349","label":"www.cve.org/CVERecord?id=CVE-2020-14349","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-14349","label":"nvd.nist.gov/vuln/detail/CVE-2020-14349","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2020-0365","OPENSUSE-SU-2020:1228-1","OPENSUSE-SU-2020:1243-1","OPENSUSE-SU-2020:1244-1","OPENSUSE-SU-2020:1312-1","OPENSUSE-SU-2020:1326-1","OPENSUSE-SU-2024:11184-1","OPENSUSE-SU-2024:11185-1","OPENSUSE-SU-2024:11186-1","RHSA-2020:3669","RHSA-2020:5110","RHSA-2020:5112","RHSA-2020:5620","RHSA-2020:5664","RHSA-2021:0163","RHSA-2021:0166","RHSA-2021:0988","SUSE-SU-2020:2264-1","SUSE-SU-2020:2265-1","SUSE-SU-2020:2271-1","SUSE-SU-2020:2355-1","SUSE-SU-2020:3464-1","SUSE-SU-2020:3630-1","USN-4472-1"],"duplicates":[],"related":["OPENSUSE-SU-2020:1228-1","OPENSUSE-SU-2020:1243-1","OPENSUSE-SU-2020:1244-1","OPENSUSE-SU-2020:1312-1","OPENSUSE-SU-2020:1326-1","OPENSUSE-SU-2024:11184-1","OPENSUSE-SU-2024:11185-1","OPENSUSE-SU-2024:11186-1","SUSE-SU-2020:2264-1","SUSE-SU-2020:2265-1","SUSE-SU-2020:2271-1","SUSE-SU-2020:2355-1","SUSE-SU-2020:3464-1","SUSE-SU-2020:3630-1","USN-4472-1"]},"timeline":[{"kind":"published","date":"2020-08-24T12:32:13.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T12:39:36.599Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":29,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T04:45:58.696Z","stale":false,"partial":false}}