{"schemaVersion":3,"id":"CVE-2020-25696","aliases":["ALPINE-CVE-2020-25696","UBUNTU-CVE-2020-25696","DEBIAN-CVE-2020-25696"],"status":"published","duplicateOf":null,"title":null,"description":"A flaw was found in the psql interactive terminal of PostgreSQL in versions before 13.1, before 12.5, before 11.10, before 10.15, before 9.6.20 and before 9.5.24. If an interactive psql session uses \\gset when querying a compromised server, the attacker can execute arbitrary code as the operating system account running psql. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.","dates":{"published":"2020-11-23T21:15:47.000Z","modified":"2024-08-04T15:40:36.672Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.6,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:H/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.1,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/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":7.6,"severity":"high","vector":"AV:N/AC:H/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02698,"percentile":0.85712,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02698},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02698,"percentile":0.85712}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02698,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02698,"percentile":0.85712}]},"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-183","name":"Permissive List of Allowed Inputs","description":"The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are explicitly allowed by policy because the inputs are assumed to be safe, but the list is too permissive - that is, it allows an input that is unsafe, leading to resultant weaknesses.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/183.html"},{"id":"CWE-697","name":"Incorrect Comparison","description":"The product compares two entities in a security-relevant context, but the comparison is incorrect.","type":"weakness","status":"Incomplete","abstraction":"Pillar","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/697.html"}],"affected":[{"vendor":"alpine","product":"postgresql","name":"postgresql","label":"postgresql","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql","purlType":"apk","versions":[{"text":"≥ 9.5.0, < 11.10-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 9.5.0, < 12.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 9.5.0, < 11.10-r0 | ≥ 9.5.0, < 12.5-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.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 12.5-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.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 12.5-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"postgresql-13","name":"postgresql-13","label":"postgresql-13","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/postgresql-13","purlType":"deb","versions":[{"text":"< 13.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 13.1-1","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.15-0ubuntu0.18.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.15-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.5-0ubuntu0.20.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 12.5-0ubuntu0.20.04.1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-9.3","name":"postgresql-9.3","label":"postgresql-9.3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-9.3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-9.5","name":"postgresql-9.5","label":"postgresql-9.5","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-9.5","purlType":"deb","versions":[{"text":"< 9.5.24-0ubuntu0.16.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.5.24-0ubuntu0.16.04.1","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0","eol":{"isEol":true,"eolDate":"2022-07-01T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"9","label":"9 (Stretch)","eolFrom":"2022-07-01T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"9.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"postgresql","product":"postgresql","name":"postgresql","label":"postgresql","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 9.5.0, < 9.5.24","noFixRecorded":false,"fixedIn":null},{"text":"≥ 9.6.0, < 9.6.20","noFixRecorded":false,"fixedIn":null},{"text":"≥ 10.0, < 10.15","noFixRecorded":false,"fixedIn":null},{"text":"≥ 11.0, < 11.10","noFixRecorded":false,"fixedIn":null},{"text":"≥ 12.0, < 12.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 13.0, < 13.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 9.5.0, < 9.5.24 | ≥ 9.6.0, < 9.6.20 | ≥ 10.0, < 10.15 | ≥ 11.0, < 11.10 | ≥ 12.0, < 12.5 | ≥ 13.0, < 13.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"postgresql","label":"PostgreSQL","category":"database"}},"hubHref":"/vendor/postgresql/postgresql"}],"affectedCount":10,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1894430","label":"bugzilla.redhat.com/show_bug.cgi?id=1894430","hostname":"bugzilla.redhat.com","tags":["X Refsource MISC","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://www.postgresql.org/about/news/postgresql-131-125-1110-1015-9620-and-9524-released-2111/","label":"www.postgresql.org/about/news/postgresql-131-125-1110-1015-9620-and-9524-released-2111/","hostname":"www.postgresql.org","tags":["X Refsource MISC","REPORT","Release Notes","Vendor Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/12/msg00005.html","label":"lists.debian.org/debian-lts-announce/2020/12/msg00005.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/202012-07","label":"security.gentoo.org/glsa/202012-07","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2020-25696","label":"security.alpinelinux.org/vuln/CVE-2020-25696","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-25696","label":"ubuntu.com/security/CVE-2020-25696","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4633-1","label":"ubuntu.com/security/notices/USN-4633-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-25696","label":"www.cve.org/CVERecord?id=CVE-2020-25696","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-25696","label":"security-tracker.debian.org/tracker/CVE-2020-25696","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25696","label":"nvd.nist.gov/vuln/detail/CVE-2020-25696","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-2478-1","MGASA-2020-0432","OPENSUSE-SU-2020:2018-1","OPENSUSE-SU-2020:2019-1","OPENSUSE-SU-2020:2028-1","OPENSUSE-SU-2020:2029-1","OPENSUSE-SU-2021:0337-1","OPENSUSE-SU-2024:11184-1","OPENSUSE-SU-2024:11185-1","OPENSUSE-SU-2024:11186-1","OPENSUSE-SU-2024:11187-1","OPENSUSE-SU-2024:12387-1","OPENSUSE-SU-2024:13243-1","OPENSUSE-SU-2024:14360-1","OPENSUSE-SU-2025:15580-1","RHSA-2020:5316","RHSA-2020:5317","RHSA-2020:5401","RHSA-2020:5567","RHSA-2020:5619","RHSA-2020:5620","RHSA-2020:5638","RHSA-2020:5661","RHSA-2020:5664","RHSA-2021:0057","RHSA-2021:0161","RHSA-2021:0163","RHSA-2021:0164","RHSA-2021:0165","RHSA-2021:0166","RHSA-2021:0167","SUSE-SU-2020:3425-1","SUSE-SU-2020:3455-1","SUSE-SU-2020:3463-1","SUSE-SU-2020:3464-1","SUSE-SU-2020:3476-1","SUSE-SU-2020:3477-1","SUSE-SU-2020:3630-1","SUSE-SU-2021:0175-1","SUSE-SU-2021:0217-1","USN-4633-1"],"duplicates":[],"related":["OPENSUSE-SU-2020:2018-1","OPENSUSE-SU-2020:2019-1","OPENSUSE-SU-2020:2028-1","OPENSUSE-SU-2020:2029-1","OPENSUSE-SU-2021:0337-1","OPENSUSE-SU-2024:11184-1","OPENSUSE-SU-2024:11185-1","OPENSUSE-SU-2024:11186-1","OPENSUSE-SU-2024:11187-1","OPENSUSE-SU-2024:12387-1","OPENSUSE-SU-2024:13243-1","OPENSUSE-SU-2024:14360-1","OPENSUSE-SU-2025:15580-1","SUSE-SU-2020:3425-1","SUSE-SU-2020:3455-1","SUSE-SU-2020:3463-1","SUSE-SU-2020:3464-1","SUSE-SU-2020:3476-1","SUSE-SU-2020:3477-1","SUSE-SU-2020:3630-1","SUSE-SU-2021:0175-1","SUSE-SU-2021:0217-1","USN-4633-1"]},"timeline":[{"kind":"published","date":"2020-11-23T21:15:47.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T15:40:36.672Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T22:43:37.521Z","stale":false,"partial":false}}