{"id":"CVE-2020-25696","year":2020,"sequence":25696,"component":"client","score":7.5,"cvss_version":"3.0","vector":"AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","first_published":"2020-11-12","source_url":"https://www.postgresql.org/support/security/CVE-2020-25696/","facts":{"affected":{"10":"10","11":"11","12":"12","13":"13","9.5":"9.5","9.6":"9.6"},"component":"client","cvss_version":"3.0","description_en":"The \\gset meta-command, which sets psql variables based on query results, does not distinguish variables that control psql behavior. 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 . Using \\gset with a prefix not found among specially treated variables, e.g. any lowercase string, precludes the attack in an unpatched psql .\n\nThe PostgreSQL project thanks Nick Cleaton for reporting this problem.","first_published":"2020-11-12","fixed":{"10":"10.15","11":"11.10","12":"12.5","13":"13.1","9.5":"9.5.24","9.6":"9.6.20"},"id":"CVE-2020-25696","introduced":{},"published":{"10":"2020-11-12","11":"2020-11-12","12":"2020-11-12","13":"2020-11-12","9.5":"2020-11-12","9.6":"2020-11-12"},"score":7.5,"title":"psql's \\gset allows overwriting specially treated variables","url":"https://www.postgresql.org/support/security/CVE-2020-25696/","vector":"AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"},"reviewed_hash":"6a65a7884245936f6adaef8709d290d460e999dfce1ad78734fa7c9a324ed325","source_hash":"965b9e2323feab543f3cbeb74c418c3a5b43cbefc6594d2862ff0d24dcf8e6a2","text":null,"locales":["en"],"fixes":[{"major":"10","fixed_version":"10.15","introduced":null,"published_date":"2020-11-12","facts":{"fixed":"10.15","introduced":null,"published":"2020-11-12"}},{"major":"11","fixed_version":"11.10","introduced":null,"published_date":"2020-11-12","facts":{"fixed":"11.10","introduced":null,"published":"2020-11-12"}},{"major":"12","fixed_version":"12.5","introduced":null,"published_date":"2020-11-12","facts":{"fixed":"12.5","introduced":null,"published":"2020-11-12"}},{"major":"13","fixed_version":"13.1","introduced":null,"published_date":"2020-11-12","facts":{"fixed":"13.1","introduced":null,"published":"2020-11-12"}},{"major":"9.5","fixed_version":"9.5.24","introduced":null,"published_date":"2020-11-12","facts":{"fixed":"9.5.24","introduced":null,"published":"2020-11-12"}},{"major":"9.6","fixed_version":"9.6.20","introduced":null,"published_date":"2020-11-12","facts":{"fixed":"9.6.20","introduced":null,"published":"2020-11-12"}}],"legacy":[]}
