CVE-2020-8027 openldap uses fixed paths in /tmp

High 7.3 Published Updated

Local attackers can overwrite arbitrary files via insecure temporary file handling in openldap, potentially gaining configuration access and escalating privileges.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2020-8027?

CVE-2020-8027 is a high-severity path traversal vulnerability in SUSE Linux Enterprise Server 15-LTSS, published on 11 Feb 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A Insecure Temporary File vulnerability in openldap2 of SUSE Linux Enterprise Server 15-LTSS, SUSE Linux Enterprise Server for SAP 15; openSUSE Leap 15.1, openSUSE Leap 15.2 allows local attackers to overwrite arbitrary files and gain access to the openldap2 configuration This issue affects: SUSE Linux Enterprise Server 15-LTSS openldap2 versions prior to 2.4.46-9.37.1. SUSE Linux Enterprise Server for SAP 15 openldap2 versions prior to 2.4.46-9.37.1. openSUSE Leap 15.1 openldap2 versions prior to 2.4.46-lp151.10.18.1. openSUSE Leap 15.2 openldap2 versions prior to 2.4.46-lp152.14.9.1.

Weakness: CWE-377

Which versions are affected by CVE-2020-8027?

It affects 1 product.

Linux distribution packages (12)
openldap2 SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions2.4.46-9.37.1
openldap2 SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions2.4.46-9.37.1
openldap2 SUSE:Linux Enterprise Module for Basesystem 15 SP1All versions2.4.46-9.37.1
openldap2 SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions2.4.46-9.37.1
openldap2 SUSE:Linux Enterprise Module for Development Tools 15 SP1All versions2.4.46-9.37.1
openldap2 SUSE:Linux Enterprise Module for Development Tools 15 SP2All versions2.4.46-9.37.1
openldap2 SUSE:Linux Enterprise Module for Legacy 15 SP1All versions2.4.46-9.37.1
openldap2 SUSE:Linux Enterprise Module for Legacy 15 SP2All versions2.4.46-9.37.1
openldap2 SUSE:Linux Enterprise Server 15-LTSSAll versions2.4.46-9.37.1
openldap2 SUSE:Linux Enterprise Server for SAP Applications 15All versions2.4.46-9.37.1
openldap2 openSUSE:Leap 15.1All versions2.4.46-lp151.10.18.1
openldap2 openSUSE:Leap 15.2All versions2.4.46-lp152.14.9.1

Products include Opensuse Openldap2.

How do I fix CVE-2020-8027?

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-2020-8027 being exploited?

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

Sources

Also known as GHSA-9rfj-vjc2-f7cj, SUSE-SU-2020:2712-1, SUSE-SU-2020:2712-2, openSUSE-SU-2020:1534-1, openSUSE-SU-2020:1539-1.

Is CVE-2020-8027 in your software?

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

Check your SBOMs for free