---
title: "CVE-2020-25696"
canonical_url: "https://pkgseek.com/security/CVE-2020-25696"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2020-25696

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.

CVE-2020-25696 is rated HIGH (7.5), with 26 indexed affected package builds across 2 distributions.

- **Severity / Score**: HIGH (7.5)
- **Affected builds**: 26
- **Affected distros**: 2
- **Distros with fixed_in**: Oracle Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Oracle Linux | 8 | libpq | 12.4-1.el8_2 | 12.5-1.el8_3 |
| Oracle Linux | 8 | libpq-devel | 12.4-1.el8_2 | 12.5-1.el8_3 |
| Oracle Linux | 8 | pgaudit | 1.4.0-4.module+el8.1.1+5522+70e4f29e | 1.4.0-4.module+el8.3.0+9608+b210d254 |
| Oracle Linux | 8 | postgres-decoderbufs | 0.10.0-2.module+el8.1.1+5522+70e4f29e | 0.10.0-2.module+el8.3.0+9608+b210d254 |
| Oracle Linux | 8 | postgresql | 10.23-4.0.1.module+el8.9.0+90164+87901204 | 9.6.20-1.module+el8.3.0+9604+f0f52296 |
| Oracle Linux | 8 | postgresql-contrib | 10.23-4.0.1.module+el8.9.0+90164+87901204 | 9.6.20-1.module+el8.3.0+9604+f0f52296 |
| Oracle Linux | 8 | postgresql-docs | 10.23-4.0.1.module+el8.9.0+90164+87901204 | 9.6.20-1.module+el8.3.0+9604+f0f52296 |
| Oracle Linux | 8 | postgresql-plperl | 10.23-4.0.1.module+el8.9.0+90164+87901204 | 9.6.20-1.module+el8.3.0+9604+f0f52296 |
| Oracle Linux | 8 | postgresql-plpython3 | 10.23-4.0.1.module+el8.9.0+90164+87901204 | 9.6.20-1.module+el8.3.0+9604+f0f52296 |
| Oracle Linux | 8 | postgresql-pltcl | 10.23-4.0.1.module+el8.9.0+90164+87901204 | 9.6.20-1.module+el8.3.0+9604+f0f52296 |
| Oracle Linux | 8 | postgresql-server | 10.23-4.0.1.module+el8.9.0+90164+87901204 | 9.6.20-1.module+el8.3.0+9604+f0f52296 |
| Oracle Linux | 8 | postgresql-server-devel | 10.23-4.0.1.module+el8.9.0+90164+87901204 | 9.6.20-1.module+el8.3.0+9604+f0f52296 |
| Oracle Linux | 8 | postgresql-static | 10.23-4.0.1.module+el8.9.0+90164+87901204 | 9.6.20-1.module+el8.3.0+9604+f0f52296 |
| Oracle Linux | 8 | postgresql-test | 10.23-4.0.1.module+el8.9.0+90164+87901204 | 9.6.20-1.module+el8.3.0+9604+f0f52296 |
| Oracle Linux | 8 | postgresql-test-rpm-macros | 9.6.22-1.module+el8.4.0+20189+e6efae45 | 9.6.20-1.module+el8.3.0+9604+f0f52296 |
| Oracle Linux | 8 | postgresql-upgrade | 10.23-4.0.1.module+el8.9.0+90164+87901204 | 12.5-1.module+el8.3.0+9608+b210d254 |
| Oracle Linux | 8 | postgresql-upgrade-devel | 10.23-4.0.1.module+el8.9.0+90164+87901204 | 12.5-1.module+el8.3.0+9608+b210d254 |
| Ubuntu | focal | libecpg6 | 12.2-4 | 12.5-0ubuntu0.20.04.1 |
| Ubuntu | focal | libecpg-compat3 | 12.2-4 | 12.5-0ubuntu0.20.04.1 |
| Ubuntu | focal | libecpg-dev | 12.2-4 | 12.5-0ubuntu0.20.04.1 |
| Ubuntu | focal | libpgtypes3 | 12.2-4 | 12.5-0ubuntu0.20.04.1 |
| Ubuntu | focal | libpq5 | 12.2-4 | 12.5-0ubuntu0.20.04.1 |
| Ubuntu | focal | libpq-dev | 12.2-4 | 12.5-0ubuntu0.20.04.1 |
| Ubuntu | focal | postgresql-12 | 12.2-4 | 12.5-0ubuntu0.20.04.1 |
| Ubuntu | focal | postgresql-client-12 | 12.2-4 | 12.5-0ubuntu0.20.04.1 |
| Ubuntu | focal | postgresql-doc-12 | 12.2-4 | 12.5-0ubuntu0.20.04.1 |
