CVE & CISA-KEV Catalog

CVE-2020-25696

HIGHEPSS 85th pctl
7.5
CVSS v3
NVD

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.

How to fix

Remediation Available
postgresql-13Debian
Fixed in:13.1-1CVE-2020-25696

This Debian release reached end-of-life on 2024-08-14.

postgresql-10Ubuntu
Fixed in:10.15-0ubuntu0.18.04.1USN-4633-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

postgresql-12Ubuntu
Fixed in:12.5-0ubuntu0.20.04.1USN-4633-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

postgresql-9.5Ubuntu
Fixed in:9.5.24-0ubuntu0.16.04.1USN-4633-1

This Ubuntu release reached end-of-life on 2021-04-02.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploit Intelligence

2.70%probability of exploitation in 30 days
85thpercentile

Elevated risk: more likely to be exploited than 85% of all known CVEs.

References

Related Vulnerabilities

Other CWE-183 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2026-21915Medium6.72.2%-Fix
CVE-2020-1694Medium4.91.6%-Fix
CVE-2024-1654High7.21.3%-Fix
CVE-2023-4399Medium6.61.1%-Fix
CVE-2021-34787Medium5.31.0%-Fix
CVE-2021-40128Medium5.31.0%--

Common questions

How do I fix CVE-2020-25696?

Published advisories record a fix for 4 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2020-25696 being actively exploited?

Not that we know of. CVE-2020-25696 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 2.7% is the estimated probability that it will be exploited in the next 30 days. That is higher than 85% of all scored CVEs.

How severe is CVE-2020-25696?

CVE-2020-25696 has a CVSS v3 base score of 7.5, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2020-25696 affect?

Published advisories record a fix for postgresql-13 (Debian), postgresql-10 (Ubuntu), postgresql-12 (Ubuntu), postgresql-9.5 (Ubuntu). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2020-25696
CVE-2020-25696 severity badge

Markdown

[![CVE-2020-25696](https://tridentstack.com/cve/badge/CVE-2020-25696.svg)](https://tridentstack.com/cve/CVE-2020-25696)

HTML

<a href="https://tridentstack.com/cve/CVE-2020-25696"><img src="https://tridentstack.com/cve/badge/CVE-2020-25696.svg" alt="CVE-2020-25696"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.