CVE-2020-10733 Path traversal in PostgreSQL

High 7.3 Published Updated

An attacker with write access to the installer directory can execute arbitrary code with administrative rights via unqualified path references in the PostgreSQL Windows installer.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-10733?

CVE-2020-10733 is a high-severity path traversal vulnerability in Postgresql Postgresql, published on 16 Sep 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

The Windows installer for PostgreSQL 9.5 - 12 invokes system-provided executables that do not have fully-qualified paths. Executables in the directory where the installer loads or the current working directory take precedence over the intended executables. An attacker having permission to add files into one of those directories can use this to execute arbitrary code with the installer's administrative rights.

Weakness: CWE-426

Which versions are affected by CVE-2020-10733?

1 open source package ship an affected version, including postgresql. It affects 1 product.

PackageAffectedFixed in
postgresql BitnamiFrom 9.5.09.5.22, 9.6.18, 10.13.0, 11.8.0, 12.3.0

Products include Postgresql Postgresql.

How do I fix CVE-2020-10733?

Upgrade postgresql to a fixed version for your release line: 9.5.22, 9.6.18, 10.13.0 or 11.8.0.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2020-10733 being exploited?

There is no known exploitation of CVE-2020-10733 in the wild and no public exploit code.

All Postgresql Postgresql vulnerabilities

Sources

Also known as BIT-postgresql-2020-10733, GHSA-r2p6-249c-3h56.

Is CVE-2020-10733 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free