CVE-2020-25696
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (2.70%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS
- 2.70% probability · 85th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-183, CWE-697
- Affected
- postgresql/postgresql · debian/debian linux
- Source
- secalert@redhat.com
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1894430Issue Tracking, Patch, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/12/msg00005.htmlMailing List, Third Party Advisory
- https://security.gentoo.org/glsa/202012-07Third Party Advisory
- https://www.postgresql.org/about/news/postgresql-131-125-1110-1015-9620-and-9524-released-2111/Release Notes, Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1894430Issue Tracking, Patch, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/12/msg00005.htmlMailing List, Third Party Advisory
- https://security.gentoo.org/glsa/202012-07Third Party Advisory
- https://www.postgresql.org/about/news/postgresql-131-125-1110-1015-9620-and-9524-released-2111/Release Notes, Vendor Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.