Vulnerabilities · 2020 · Postgresql
CVE-2020-25696
Postgresql vulnerability
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.
Affected products
Postgresql, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Postgresql runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.postgresql.org/about/news/postgresql-131-125-1110-1015-9620-and-9524-released-2111/ · Vendor Advisory
- bugzilla.redhat.com/show_bug.cgi?id=1894430 · Patch
- lists.debian.org/debian-lts-announce/2020/12/msg00005.html · Third Party Advisory
- security.gentoo.org/glsa/202012-07 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2020-25696
- cve.org/CVERecord?id=CVE-2020-25696
More vulnerabilities in Postgresql products
CVE-2025-49146CVE-2024-10979CVE-2024-10978CVE-2024-10977CVE-2024-10976CVE-2024-7348CVE-2024-4317CVE-2024-1597All 168
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.