Security mailing lists by PureSourceCode

CVE-2020-25696

HIGH 7.5CVSS 3.1

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.

Published
23 Nov 2020
Last modified
17 Jun 2026
Assigned by
secalert@redhat.com
NVD status
Modified
Weakness
CWE-183CWE-697
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.6 AV:N/AC:H/Au:N/C:C/I:C/A:C

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD postgresql postgresql
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
>= 9.5.0, < 9.5.24 9.5.24
NVD postgresql postgresql
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
>= 9.6.0, < 9.6.20 9.6.20
NVD postgresql postgresql
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
>= 10.0, < 10.15 10.15
NVD postgresql postgresql
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
>= 11.0, < 11.10 11.10
NVD postgresql postgresql
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
>= 12.0, < 12.5 12.5
NVD postgresql postgresql
cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
>= 13.0, < 13.1 13.1
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
= 9.0

References

History

  • 25 Nov 2026 20:32 UTC · NVD: first stored (published 23 Nov 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.