CVE-2017-8806 Path traversal in PostgreSQL-related scripts that are specific to Debian and Ubuntu
Local attackers can overwrite arbitrary files via insecure symlink handling in Debian PostgreSQL management scripts, causing denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-8806?
CVE-2017-8806 is a medium-severity path traversal vulnerability in Postgresql Postgresql, published on 13 Nov 2017. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
The Debian pg_ctlcluster, pg_createcluster, and pg_upgradecluster scripts, as distributed in the Debian postgresql-common package before 181+deb9u1 for PostgreSQL (and other packages related to Debian and Ubuntu), handled symbolic links insecurely, which could result in local denial of service by overwriting arbitrary files.
Weakness: CWE-59
Which versions are affected by CVE-2017-8806?
It affects 1 product.
Products include Postgresql Postgresql.
How do I fix CVE-2017-8806?
Apply the vendor's patch.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2017-8806 being exploited?
There is no known exploitation of CVE-2017-8806 in the wild and no public exploit code.
Other vulnerabilities in Postgresql Postgresql
Sources
Also known as DEBIAN-CVE-2017-8806, DLA-1169-1, DSA-4029-1, ECHO-4017-b212-426e, GHSA-xg92-g8h7-v7r4, MINI-5c2r-7pwm-h7pv and 6 more.