GLSA-200701-19 : OpenLDAP: Insecure usage of /tmp during installation

medium Nessus Plugin ID 24255

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200701-19 (OpenLDAP: Insecure usage of /tmp during installation)

Tavis Ormandy of the Gentoo Linux Security Team has discovered that the file gencert.sh distributed with the Gentoo ebuild for OpenLDAP does not exit upon the existence of a directory in /tmp during installation allowing for directory traversal.
Impact :

A local attacker could create a symbolic link in /tmp and potentially overwrite arbitrary system files upon a privileged user emerging OpenLDAP.
Workaround :

There is no known workaround at this time.

Solution

All OpenLDAP users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose 'net-nds/openldap'

See Also

https://security.gentoo.org/glsa/200701-19

Plugin Details

Severity: Medium

ID: 24255

File Name: gentoo_GLSA-200701-19.nasl

Version: 1.15

Type: local

Published: 1/26/2007

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.3

CVSS v2

Risk Factor: Medium

Base Score: 4.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:openldap, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 1/23/2007

Vulnerability Publication Date: 1/23/2007

Reference Information

CVE: CVE-2007-0476

GLSA: 200701-19